| |
libFAUDES
Sections
Index
|
faudes::AttributeCFlags Class Reference#include <cgenerator.h>
Inherits faudes::AttributeFlags. Inherited by faudes::SimEventAttribute.
Detailed DescriptionAttribute class to model event controllability properties.This attribute is meant to be an event attribute and can distinguish between controllable, observable, forcible and abstraction events. It is based on faudes::AttributeFlags and uses the lower four bits in the flag word to store the respective boolean values. The AttributeCFlags class adds convenience functions to access these bits and a default-value that corresponds to observable and neiter controllable nor forcible.
Presuming that only controllability flags are uses (different from default), the token representation is by an Option String consisting of the initials Definition at line 56 of file cgenerator.h.
Constructor & Destructor Documentation
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::AttributeFlags. Reimplemented in faudes::SimEventAttribute. Definition at line 40 of file cgenerator.cpp.
Construct on heap. Technically not a constructor, this function creates an object with the same type Type and the same configuration. Copy() is defined as a virtual function and derived classes are meant to re-implement with the appropiate copy 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::AttributeFlags. Reimplemented in faudes::SimEventAttribute. Definition at line 40 of file cgenerator.cpp.
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. Re-implementation can be done via the convenience macros FAUDES_TYPE_DECLARATION and FAUDES_TYPE_IMPLEMENTATION.
Reimplemented from faudes::AttributeFlags. Reimplemented in faudes::SimEventAttribute. Definition at line 40 of file cgenerator.cpp.
Assign configuration data from other object. Derived classes should reimplement this method to first try to cast the source to the respective class. If successful, the protected function DoAssign is invoked to perform the actual assignment. If the cast fails, the Assign method of the parent class is called. Thus, faudes objects are up- and downcatsted for assignment, maintaining as much of the source data as digestable by the destination object. On the downside, there is no sensible typechecking at compile-time. Re-implementation can be done via the convenience macros FAUDES_TYPE_DECLARATION and FAUDES_TYPE_IMPLEMENTATION.
Reimplemented from faudes::AttributeFlags. Reimplemented in faudes::SimEventAttribute. Definition at line 40 of file cgenerator.cpp.
Test equality of configuration data. Derived classes should reimplement this method to return true if both actual types and configuration data match. The object name is not consired in the test. This method calls the virtual method DoEqual(). Re-implementation can be done via the convenience macros FAUDES_TYPE_DECLARATION and FAUDES_TYPE_IMPLEMENTATION.
Reimplemented from faudes::AttributeFlags. Reimplemented in faudes::SimEventAttribute. Definition at line 40 of file cgenerator.cpp.
Definition at line 40 of file cgenerator.cpp.
Definition at line 40 of file cgenerator.cpp.
Definition at line 40 of file cgenerator.cpp.
Test for default value.
Reimplemented from faudes::AttributeFlags. Reimplemented in faudes::SimEventAttribute. Definition at line 143 of file cgenerator.h.
Assignment method.
Definition at line 43 of file cgenerator.cpp.
Test equality of configuration data.
Definition at line 51 of file cgenerator.cpp.
Reads attribute from TokenReader, see AttributeVoid for public wrappers. Reads a single token if it can be interpreted as AttributeCFlag, that is, if it is a respective option string or hex number. Label and Context argument are ignored. No token mismatch exceptions are thrown on error.
Reimplemented from faudes::AttributeFlags. Reimplemented in faudes::SimEventAttribute. Definition at line 96 of file cgenerator.cpp.
Writes attribute to TokenWriter, see AttributeVoid for public wrappers. Label and Context argument are ignored.
Reimplemented from faudes::AttributeFlags. Reimplemented in faudes::SimEventAttribute. Definition at line 62 of file cgenerator.cpp.
Member Data Documentation
Definition at line 146 of file cgenerator.h.
Definition at line 147 of file cgenerator.h.
Definition at line 148 of file cgenerator.h.
Definition at line 149 of file cgenerator.h.
The documentation for this class was generated from the following files: |
libFAUDES 2.14g --- 2009-12-3 --- c++ source docu by doxygen 1.5.6