| |
libFAUDES
Sections
Index
|
faudes::AttributeVoid Class Reference#include <attributes.h>
Inherits faudes::Type. Inherited by faudes::AttributeFlags, faudes::AttributeTimedGlobal, and faudes::SimConditionAttribute.
Detailed DescriptionMinimal Attribute.Attributes are used as template parameters for faudes containers and generators and facilitate the modelling of customized properties of events, states and transitions. The AttributeVoid class defines the minimal interface of faudes attributes and therefore is the designated base class for all attribute implementations. The AttributeVoid class does not define any actual properties. See AttributeFlags for a non-trivial example. To derive a class from AttributeVoid you should reimplement the virtual interface
Constructor & Destructor Documentation
Constructor.
Destructor.
Member Function Documentation
Construct on heap. Technically not a constructor, this function creates an object with the same type Type. New() is defined as a virtual function and derived classes are meant to re-implement with the appropiate constructor. This can be done via the provided macros FAUDES_TYPE_DECLARATION and FAUDES_TYPE_IMPLEMENTATION. As with new, it is the callers reponsabilty to delete the object when no longer needed.
Reimplemented from faudes::Type. Reimplemented in faudes::AttributeFlags, faudes::AttributeCFlags, faudes::HioEventFlags, faudes::HioStateFlags, faudes::AttributeColoredState, faudes::AttributeTimedTrans, faudes::AttributeTimedState, faudes::AttributeTimedGlobal, faudes::SimConditionAttribute, and faudes::SimEventAttribute.
Cast other object to this type. Enables the run-time interface to test whether pObject is derived from this object. This feature is used e.g. in the faudes container classes to test attributes. Derived classes must reimplement this function using the appropriate dynamic cast.
Reimplemented from faudes::Type. Reimplemented in faudes::AttributeFlags, and faudes::AttributeCFlags.
Copy attribute. Virtual interface to copy members.
Reimplemented in faudes::AttributeFlags, and faudes::AttributeColoredState.
Test for default value.
Reimplemented in faudes::AttributeFlags, faudes::AttributeCFlags, faudes::HioEventFlags, faudes::HioStateFlags, faudes::AttributeColoredState, faudes::AttributeTimedTrans, faudes::AttributeTimedState, faudes::AttributeTimedGlobal, faudes::SimConditionAttribute, and faudes::SimEventAttribute.
Set to default value. Derived classes must reimplement this function for Clear to operate properly.
Skip attribute tokens. Helper method to be called after all sttribute derived classes had their chance to read their data. It skips all tokens and sections until it reaches a String or decimal Integer.
Actual read method to read attribute from tokenreader. For derived attributue classes, this method must either read all tokens that belong to the respective attribute, or none. It may throw exceptions on token mismatch within the relevant attribute, but it may not throw exceptions when it encounters tokens that possibly belong to another attribute. The latter are to be skipped by the provided Skip method. See Type::Read for public wrappers.
Reimplemented from faudes::Type. Reimplemented in faudes::AttributeFlags, faudes::AttributeCFlags, faudes::HioEventFlags, faudes::HioStateFlags, faudes::AttributeColoredState, faudes::AttributeTimedTrans, faudes::AttributeTimedState, faudes::AttributeTimedGlobal, faudes::SimConditionAttribute, and faudes::SimEventAttribute.
Actual write method to write the attribute to a TokenWriter. Reimplement this method for derived attribute classes to define the token io format. See Type::Write for public wrappers.
Reimplemented from faudes::Type. Reimplemented in faudes::AttributeFlags, faudes::AttributeCFlags, faudes::HioEventFlags, faudes::HioStateFlags, faudes::AttributeColoredState, faudes::AttributeTimedTrans, faudes::AttributeTimedState, faudes::AttributeTimedGlobal, faudes::SimConditionAttribute, and faudes::SimEventAttribute.
The documentation for this class was generated from the following files: |
libFAUDES 2.13a c++ source docu by doxygen 1.5.6