|
|
||||||
|
Public Member Functions |
Static Public Attributes |
Protected Member Functions |
Static Private Attributes |
List of all members
faudes::AttributeCFlags Class Reference 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 cfl_cgenerator.h.
Constructor & Destructor Documentation◆ AttributeCFlags()
Default constructor. Definition at line 69 of file cfl_cgenerator.h. ◆ ~AttributeCFlags()
Destructor. Definition at line 72 of file cfl_cgenerator.h. Member Function Documentation◆ ClrControllable()
Clear controllable flag. Definition at line 83 of file cfl_cgenerator.h. ◆ ClrForcible()
Clear forcible flag. Definition at line 116 of file cfl_cgenerator.h. ◆ ClrObservable()
Clear observable flag. Definition at line 99 of file cfl_cgenerator.h. ◆ Controllable()
Query controllablility. Definition at line 88 of file cfl_cgenerator.h. ◆ DoAssign()
Assignment method.
Definition at line 50 of file cfl_cgenerator.cpp. ◆ DoEqual()
Test equality of configuration data.
Definition at line 56 of file cfl_cgenerator.cpp. ◆ DoRead()
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 138 of file cfl_cgenerator.cpp. ◆ DoWrite()
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 67 of file cfl_cgenerator.cpp. ◆ DoXWrite()
Writes attribute to TokenWriter (XML format), see AttributeVoid for public wrappers. Label and Context argument are ignored.
Reimplemented from faudes::AttributeFlags. Definition at line 104 of file cfl_cgenerator.cpp. ◆ Forcible()
Query forcibility. Definition at line 121 of file cfl_cgenerator.h. ◆ Highlevel()
Query abstaction flag. Definition at line 137 of file cfl_cgenerator.h. ◆ IsDefault()
Test for default value. Reimplemented from faudes::AttributeFlags. Reimplemented in faudes::SimEventAttribute. Definition at line 148 of file cfl_cgenerator.h. ◆ Lowlevel()
Query abstaction flag. Definition at line 142 of file cfl_cgenerator.h. ◆ Observable()
Query observablility. Definition at line 104 of file cfl_cgenerator.h. ◆ operator!=()
Test equality of configuration data. See operator==(const Type&). This method calls the virtual method DoEqual(). Re-implementation can be done via the convenience macros FAUDES_TYPE_DECLARATION and FAUDES_TYPE_IMPLEMENTATION.
Definition at line 215 of file cfl_types.cpp. ◆ operator=()
Assign configurationdata from other object. Derived classes should implement the operator form for the assignment for each source type which allows for a non-trivial assignment. This includes the particular case were the source and destination types match exactly. In the latter case the DoAssign method should be invoked. In contrast to the Assign function, the operator form must not be reimplemented for missmatched source types: the operator form only accepts sensible source types. This allows for compiletime typeckecking. However, the downside is that when the type is not known at compiletime, configuration is not properly assigned. Re-implementation can be done via the convenience macros FAUDES_TYPE_DECLARATION and FAUDES_TYPE_IMPLEMENTATION.
Definition at line 213 of file cfl_types.cpp. ◆ operator==()
Test equality of configuration data. The operator form of the equality test is only defined for matching types, no cast will be performed. Thus, the test will be optimistic if the type is not known at compiletime. The object name or id is not considered in the test. This methoc calls the virtual method DoEqual(). Re-implementation can be done via the convenience macros FAUDES_TYPE_DECLARATION and FAUDES_TYPE_IMPLEMENTATION.
Definition at line 214 of file cfl_types.cpp. ◆ SetControllable()
Set controllable flag. Definition at line 77 of file cfl_cgenerator.h. ◆ SetForcible()
Set forcible flag. Definition at line 110 of file cfl_cgenerator.h. ◆ SetHighlevel()
Set abstraction flag. Definition at line 127 of file cfl_cgenerator.h. ◆ SetLowlevel()
Clear abstraction flag. Definition at line 132 of file cfl_cgenerator.h. ◆ SetObservable()
Set observable flag. Definition at line 94 of file cfl_cgenerator.h. Member Data Documentation◆ mAbstractionFlag
Definition at line 154 of file cfl_cgenerator.h. ◆ mAllCFlags
All flags used by CFlags. Definition at line 161 of file cfl_cgenerator.h. ◆ mControllableFlag
Definition at line 151 of file cfl_cgenerator.h. ◆ mDefCFlags
Overall default value. Definition at line 158 of file cfl_cgenerator.h. ◆ mForcibleFlag
Definition at line 153 of file cfl_cgenerator.h. ◆ mObservableFlag
Definition at line 152 of file cfl_cgenerator.h. The documentation for this class was generated from the following files: libFAUDES 2.32f --- 2024.12.22 --- c++ api documentaion by doxygen |