|
|
||||||
|
Public Member Functions |
Public Attributes |
Static Public Attributes |
Protected Member Functions |
List of all members
faudes::AttributeFlags Class Reference
Detailed DescriptionBoolean flags Attribute. This attribute class uses a flag word to represent boolean values. The current implementation uses a long int type and hence handles up to 32 flags. Each flag is accessed by the according bit mask. The current version of libFAUDES uses bits 0,1,2 of event attributes for controllability properties (see AttributeCFlags) and the bits 31 and 32 of state attributes for the Qt based GUI project. Further versions may use the lower 8 bits of the event aflags and the higher 8 bits of state flags. You are free to use any flags for your application, but if possible try to avoid the above mentioned. For extensive use of flags, you may also consider to define a separate attribute class, perhaps with a different fType. Definition at line 207 of file cfl_attributes.h. Constructor & Destructor Documentation◆ AttributeFlags() [1/2]
Default constructor Definition at line 218 of file cfl_attributes.h. ◆ AttributeFlags() [2/2]
Copy constructor Definition at line 221 of file cfl_attributes.h. ◆ ~AttributeFlags()
Destructor Definition at line 224 of file cfl_attributes.h. Member Function Documentation◆ Clr()
Clear multiple flags Definition at line 254 of file cfl_attributes.h. ◆ DoAssign()
Assignment method.
Definition at line 114 of file cfl_attributes.cpp. ◆ DoEqual()
Test equality of configuration data.
Definition at line 122 of file cfl_attributes.cpp. ◆ DoRead()
Reads attribute from TokenReader, see Type for public wrappers. Test whether the current token is an integer with base 16. If so, read the token to the flags value. Else, dont take any tokens. The label and context arguments are ignored.
Reimplemented from faudes::AttributeVoid. Reimplemented in faudes::AttributePriority, faudes::AttributeCFlags, faudes::AttributeTimedState, faudes::AttributeTimedTrans, faudes::SimEventAttribute, faudes::AttributeSimCondition, faudes::AttributeColoredState, faudes::AttributeIosState, faudes::AttributeIosEvent, faudes::AttributeLhaState, faudes::AttributeLhaTrans, faudes::HioStateFlags, faudes::HioEventFlags, faudes::AttributeFailureTypeMap, faudes::AttributeFailureEvents, faudes::DiagLabelSet, and faudes::AttributeDiagnoserState. Definition at line 155 of file cfl_attributes.cpp. ◆ DoWrite()
Write to TokenWriter, see Type for public wrappers. If not the defult value, write the flag value as base 16 integer token. Else, do nothing. The label and context arguments are ignored.
Reimplemented from faudes::AttributeVoid. Reimplemented in faudes::AttributePriority, faudes::AttributeCFlags, faudes::AttributeTimedState, faudes::AttributeTimedTrans, faudes::SimEventAttribute, faudes::AttributeSimCondition, faudes::AttributeColoredState, faudes::AttributeIosState, faudes::AttributeIosEvent, faudes::AttributeLhaState, faudes::AttributeLhaTrans, faudes::HioStateFlags, faudes::HioEventFlags, faudes::AttributeFailureTypeMap, faudes::DiagLabelSet, faudes::AttributeFailureEvents, and faudes::AttributeDiagnoserState. Definition at line 130 of file cfl_attributes.cpp. ◆ DoXWrite()
Write to TokenWriter, see Type for public wrappers. If not the defult value, write the flags in XML format. Else, do nothing. The label and context arguments are ignored.
Reimplemented from faudes::Type. Reimplemented in faudes::AttributePriority, faudes::AttributeCFlags, faudes::AttributeColoredState, faudes::AttributeIosState, faudes::AttributeIosEvent, faudes::AttributeLhaState, faudes::AttributeLhaTrans, faudes::AttributeFailureTypeMap, faudes::DiagLabelSet, faudes::AttributeFailureEvents, and faudes::AttributeDiagnoserState. Definition at line 142 of file cfl_attributes.cpp. ◆ IsDefault()
Test for default value Reimplemented from faudes::AttributeVoid. Reimplemented in faudes::AttributeCFlags, faudes::AttributeTimedState, faudes::AttributeTimedTrans, faudes::SimEventAttribute, faudes::AttributeSimCondition, faudes::AttributePriority, faudes::AttributeColoredState, faudes::AttributeIosState, faudes::AttributeIosEvent, faudes::AttributeLhaState, faudes::AttributeLhaTrans, faudes::HioStateFlags, faudes::HioEventFlags, faudes::DiagLabelSet, faudes::AttributeFailureTypeMap, faudes::AttributeFailureEvents, and faudes::AttributeDiagnoserState. Definition at line 259 of file cfl_attributes.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 60 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 58 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 59 of file cfl_types.cpp. ◆ Set()
Set multiple flags Definition at line 249 of file cfl_attributes.h. ◆ Test()
Test a flag Definition at line 229 of file cfl_attributes.h. ◆ TestAll()
Test multible flags, combine by "and" Definition at line 234 of file cfl_attributes.h. ◆ TestNone()
Test multible flags, combine by "not or" Definition at line 244 of file cfl_attributes.h. ◆ TestSome()
Test multible flags, combine by "or" Definition at line 239 of file cfl_attributes.h. Member Data Documentation◆ mDefFlags
Definition at line 265 of file cfl_attributes.h. ◆ mFlags
Flags (public access for convenience) Definition at line 262 of file cfl_attributes.h. The documentation for this class was generated from the following files: libFAUDES 2.33c --- 2025.05.15 --- c++ api documentaion by doxygen |