|
FEDEM Model Database
R8.0
Source code of the FEDEM model database
|
Template class for field representation in the FEDEM model database. More...
#include <FFaField.H>


Public Member Functions | |
| FFaField () | |
| Empty default constructor. More... | |
| virtual | ~FFaField () |
| Empty destructor. More... | |
| ValueT & | operator= (const ValueT &data) |
| Assignment operator. More... | |
| const ValueT & | getValue () const |
| Returns a const reference to myData. More... | |
| ValueT & | getValue () |
| Returns a reference to myData (for update). More... | |
| bool | setValue (const ValueT &newData, bool checkChanged=true) |
| Assigns a new value to the field. More... | |
| bool | setDefaultValue (const ValueT &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) 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 | read (std::istream &is) override |
| Reads the field value from an input stream. More... | |
| void | write (std::ostream &os) const |
| void | read (std::istream &is, FmBlockPortReference &v) const |
Protected Member Functions inherited from FFaFieldBase | |
| FFaFieldBase () | |
| Empty default constructor. More... | |
| virtual | ~FFaFieldBase () |
| Empty destructor. More... | |
Protected Attributes | |
| ValueT | myData |
| Current field value. More... | |
| ValueT | myDefaultValue |
| Default field value. More... | |
Private Member Functions | |
| void | read (std::istream &is, ValueT &v) const |
| Reads the field value from an input stream. More... | |
| void | read (const std::string &sval, ValueT &v) const |
| Reads the field value from a std::string. 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... | |
Template class for field representation in the FEDEM model database.
The class type of the field value must have the logical operators defined (i.e., "==", "<" and ">") as well as the assignment operator.
Empty destructor.
|
inlineoverrideprotectedvirtual |
Copies another database field into *this.
Implements FFaFieldBase.
Reimplemented in FFaObsoleteField< double >, FFaObsoleteField< int >, FFaObsoleteField< FaVec3 >, FFaObsoleteField< bool >, FFaNoCopyField< int >, and FFaNoCopyField< FmBlockPortReference >.
|
inline |
Returns a reference to myData (for update).
|
inline |
Returns a const reference to myData.
|
inlineoverridevirtual |
Returns true, if this is a numerical data field.
Implements FFaFieldBase.
|
inlinefinalvirtual |
Returns true, if the field value equals its default value.
Implements FFaFieldBase.
|
inlinevirtual |
Returns true, if this field should be printed.
Implements FFaFieldBase.
Reimplemented in FFaObsoleteField< double >, FFaObsoleteField< int >, FFaObsoleteField< FaVec3 >, FFaObsoleteField< bool >, FFaNoPrintField< unsigned long >, FFaNoPrintField< double >, FFaNoPrintField< int >, and FFaNoPrintField< bool >.
|
inlineoverridevirtual |
Returns true, if this field should be printed.
Implements FFaFieldBase.
Reimplemented in FFaObsoleteField< double >, FFaObsoleteField< int >, FFaObsoleteField< FaVec3 >, FFaObsoleteField< bool >, FFaNoPrintField< unsigned long >, FFaNoPrintField< double >, FFaNoPrintField< int >, and FFaNoPrintField< bool >.
|
inline |
Assignment operator.
|
inlineprivate |
Reads the field value from a std::string.
|
inlineoverrideprotectedvirtual |
Reads the field value from an input stream.
Implements FFaFieldBase.
Reimplemented in FFaObsoleteField< double >, FFaObsoleteField< int >, FFaObsoleteField< FaVec3 >, FFaObsoleteField< bool >, FFaNoPrintField< unsigned long >, FFaNoPrintField< double >, FFaNoPrintField< int >, and FFaNoPrintField< bool >.
|
inlineprotected |
|
inlineprivate |
Reads the field value from an input stream.
|
inlinefinalvirtual |
Resets the field value to its default value.
Implements FFaFieldBase.
|
inline |
Assigns the default value of the field.
| [in] | defaultVal | The new default field value to be assigned |
| [in] | checkChanged | If true, notify if defaultVal differs from myDefaultValue |
|
inline |
|
inlinefinalvirtual |
Updates the default value of the field.
Implements FFaFieldBase.
|
inlineprotectedvirtual |
Specialized IO methods for FFaField.
Implements FFaFieldBase.
Reimplemented in FFaObsoleteField< double >, FFaObsoleteField< int >, FFaObsoleteField< FaVec3 >, FFaObsoleteField< bool >, FFaNoPrintField< unsigned long >, FFaNoPrintField< double >, FFaNoPrintField< int >, and FFaNoPrintField< bool >.
|
inlineoverrideprotectedvirtual |
Writes the field name and value to an output stream.
Implements FFaFieldBase.
Reimplemented in FFaObsoleteField< double >, FFaObsoleteField< int >, FFaObsoleteField< FaVec3 >, FFaObsoleteField< bool >, FFaNoPrintField< unsigned long >, FFaNoPrintField< double >, FFaNoPrintField< int >, and FFaNoPrintField< bool >.
|
protected |
Current field value.
|
protected |
Default field value.