faudes::AttributeFlags Class ReferenceBoolean flags Attribute. More...
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 182 of file cfl_attributes.h. Constructor & Destructor Documentation
Default constructor. Definition at line 189 of file cfl_attributes.h.
Copy constructor. Definition at line 192 of file cfl_attributes.h.
Destructor. Definition at line 195 of file cfl_attributes.h. Member Function Documentation
Clear multiple flags. Definition at line 225 of file cfl_attributes.h.
Assignment method.
Definition at line 99 of file cfl_attributes.cpp.
Test equality of configuration data.
Definition at line 107 of file cfl_attributes.cpp.
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::AttributeCFlags, faudes::AttributeDiagnoserState, faudes::AttributeFailureEvents, faudes::AttributeFailureTypeMap, faudes::DiagLabelSet, faudes::HioEventFlags, faudes::HioStateFlags, faudes::AttributeIosEvent, faudes::AttributeIosState, faudes::AttributeColoredState, faudes::AttributePushdownState, faudes::AttributeGotoState, faudes::AttributeTimedTrans, faudes::AttributeTimedState, faudes::AttributeSimCondition, and faudes::SimEventAttribute. Definition at line 140 of file cfl_attributes.cpp.
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::AttributeCFlags, faudes::AttributeDiagnoserState, faudes::AttributeFailureEvents, faudes::AttributeFailureTypeMap, faudes::DiagLabelSet, faudes::HioEventFlags, faudes::HioStateFlags, faudes::AttributeIosEvent, faudes::AttributeIosState, faudes::AttributeColoredState, faudes::AttributePushdownState, faudes::AttributeGotoState, faudes::AttributeTimedTrans, faudes::AttributeTimedState, faudes::AttributeSimCondition, and faudes::SimEventAttribute. Definition at line 115 of file cfl_attributes.cpp.
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::AttributeCFlags, faudes::AttributeDiagnoserState, faudes::AttributeFailureEvents, faudes::AttributeFailureTypeMap, faudes::DiagLabelSet, faudes::AttributeIosEvent, faudes::AttributeIosState, faudes::AttributeColoredState, and faudes::AttributePushdownState. Definition at line 127 of file cfl_attributes.cpp.
Test for default value. Reimplemented from faudes::AttributeVoid. Reimplemented in faudes::AttributeCFlags, faudes::AttributeDiagnoserState, faudes::AttributeFailureEvents, faudes::AttributeFailureTypeMap, faudes::DiagLabelSet, faudes::HioEventFlags, faudes::HioStateFlags, faudes::AttributeIosEvent, faudes::AttributeIosState, faudes::AttributeColoredState, faudes::AttributePushdownState, faudes::AttributeGotoState, faudes::AttributeTimedTrans, faudes::AttributeTimedState, faudes::AttributeSimCondition, and faudes::SimEventAttribute. Definition at line 230 of file cfl_attributes.h.
Set multiple flags. Definition at line 220 of file cfl_attributes.h.
Test a flag. Definition at line 200 of file cfl_attributes.h.
Test multible flags, combine by "and". Definition at line 205 of file cfl_attributes.h.
Test multible flags, combine by "not or". Definition at line 215 of file cfl_attributes.h.
Test multible flags, combine by "or". Definition at line 210 of file cfl_attributes.h. Member Data Documentation
Definition at line 236 of file cfl_attributes.h. Flags (public access for convenience). Definition at line 230 of file cfl_attributes.h. The documentation for this class was generated from the following files: libFAUDES 2.23h --- 2014.04.03 --- c++ api documentaion by doxygen |