FEDEM Model Database  R8.0
Source code of the FEDEM model database
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
FFaObsoleteField< T > Class Template Reference

Subclass used for conversion of obsolete fields in old model files. More...

#include <FFaField.H>

Inheritance diagram for FFaObsoleteField< T >:
Inheritance graph
[legend]
Collaboration diagram for FFaObsoleteField< T >:
Collaboration graph
[legend]

Public Member Functions

 FFaObsoleteField ()
 Default constructor. More...
 
bool wasOnFile () const
 Returns true if this field was found in the model field. More...
 
bool isPrintable () const final
 Returns false, since this field should never be printed. More...
 
- Public Member Functions inherited from FFaField< T >
 FFaField ()
 Empty default constructor. More...
 
virtual ~FFaField ()
 Empty destructor. More...
 
T & operator= (const T &data)
 Assignment operator. More...
 
const T & getValue () const
 Returns a const reference to myData. More...
 
T & getValue ()
 Returns a reference to myData (for update). More...
 
bool setValue (const T &newData, bool checkChanged=true)
 Assigns a new value to the field. More...
 
bool setDefaultValue (const T &defaultVal, bool checkChanged=true)
 Assigns the default value of the field. More...
 
void reset () final
 Resets the field value to its default value. More...
 
void updateDefault () final
 Updates the default value of the field. More...
 
bool isDefault () const final
 Returns true, if the field value equals its default value. More...
 
bool isDataField () const override
 Returns true, if this is a numerical data field. More...
 
bool isPrintable () const override
 Returns true, if this field should be printed. More...
 
bool isPrintable () const
 Returns true, if this field should be printed. More...
 
- Public Member Functions inherited from FFaFieldBase
virtual void calculateChecksum (FFaCheckSum *) const
 Calculates the checksum of the field valiue. More...
 

Protected Member Functions

FFaFieldBase * copy (const FFaFieldBase *field, bool defaultValueToo) final
 Copies another database field into *this. More...
 
void write (std::ostream &) const final
 Overridden to do nothing. More...
 
void read (std::istream &is) final
 Overridden to set the isRead flag. More...
 
- Protected Member Functions inherited from FFaField< T >
FFaFieldBase * copy (const FFaFieldBase *field, bool defaultValueToo) override
 Copies another database field into *this. More...
 
void write (std::ostream &os) const override
 Writes the field name and value to an output stream. More...
 
void write (std::ostream &os) const
 
void read (std::istream &is) override
 Reads the field value from an input stream. More...
 
void read (std::istream &is, FmBlockPortReference &v) const
 
- Protected Member Functions inherited from FFaFieldBase
 FFaFieldBase ()
 Empty default constructor. More...
 
virtual ~FFaFieldBase ()
 Empty destructor. More...
 

Private Attributes

bool isRead
 Flag telling if this field was found in the model file. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from FFaFieldBase
static void writeString (std::ostream &os, const std::string &str, const char *pfx=NULL)
 Writes the string value str to the output stream os. More...
 
static void readString (std::istream &is, std::string &str)
 Reads a string value from an input stream. More...
 
static void readStrings (std::istream &os, Strings &str)
 Reads a list of string values from an input stream. More...
 
static bool readInt (std::istream &is, int &val, bool silence=false)
 Reads an integer value from an input stream. More...
 
- Protected Attributes inherited from FFaField< T >
T myData
 Current field value. More...
 
T myDefaultValue
 Default field value. More...
 

Detailed Description

template<class T>
class FFaObsoleteField< T >

Subclass used for conversion of obsolete fields in old model files.

Constructor & Destructor Documentation

◆ FFaObsoleteField()

template<class T >
FFaObsoleteField< T >::FFaObsoleteField ( )
inline

Default constructor.

Member Function Documentation

◆ copy()

template<class T >
FFaFieldBase* FFaObsoleteField< T >::copy ( const FFaFieldBase *  field,
bool  defaultValues 
)
inlinefinalprotectedvirtual

Copies another database field into *this.

Implements FFaFieldBase.

◆ isPrintable()

template<class T >
bool FFaObsoleteField< T >::isPrintable ( ) const
inlinefinalvirtual

Returns false, since this field should never be printed.

Implements FFaFieldBase.

◆ read()

template<class T >
void FFaObsoleteField< T >::read ( std::istream &  is)
inlinefinalprotectedvirtual

Overridden to set the isRead flag.

Implements FFaFieldBase.

◆ wasOnFile()

template<class T >
bool FFaObsoleteField< T >::wasOnFile ( ) const
inline

Returns true if this field was found in the model field.

◆ write()

template<class T >
void FFaObsoleteField< T >::write ( std::ostream &  ) const
inlinefinalprotectedvirtual

Overridden to do nothing.

Implements FFaFieldBase.

Member Data Documentation

◆ isRead

template<class T >
bool FFaObsoleteField< T >::isRead
private

Flag telling if this field was found in the model file.


The documentation for this class was generated from the following file: