|
|
||||||
|
Public Member Functions |
Static Public Member Functions |
Protected Member Functions |
List of all members
faudes::AttributeVoid Class Reference Detailed DescriptionMinimal Attribute. Attributes are used as template parameters for faudes containers and generators and facilitate the modelling of customized To derive a class from AttributeVoid you should reimplement the virtual interface
Definition at line 52 of file cfl_attributes.h.
Constructor & Destructor Documentation◆ AttributeVoid() [1/2]
Constructor. Definition at line 39 of file cfl_attributes.cpp. ◆ AttributeVoid() [2/2]
Copy Constructor. Definition at line 44 of file cfl_attributes.cpp. ◆ ~AttributeVoid()
Destructor. Definition at line 50 of file cfl_attributes.cpp. Member Function Documentation◆ Clear()
Synonym for SetDefault to match std interface. Reimplemented from faudes::Type. Reimplemented in faudes::AttributeDeviceEvent, faudes::AttributeSimplenetEvent, faudes::AttributeSimplenetInput, faudes::AttributeSimplenetOutput, faudes::AttributeSignalEvent, faudes::AttributeSignalInput, faudes::AttributeSignalOutput, faudes::DiagLabelSet, faudes::AttributeFailureTypeMap, faudes::AttributeFailureEvents, and faudes::AttributeDiagnoserState. Definition at line 85 of file cfl_attributes.h. ◆ DoAssign()
Assign attribute members. Since AttributeVoid has no members, this method does nothing. Derived classes are meant to reimplement DoAssign by first calling their base and then assigning additional member variables.
Definition at line 112 of file cfl_attributes.h. ◆ DoDWrite()
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. Definition at line 61 of file cfl_attributes.cpp. ◆ DoEqual()
Test equality of configuration data. Derived attributes should reimplement this class to compare configuration data. The base AttributeVoid returns true as a default.
Definition at line 123 of file cfl_attributes.h. ◆ DoRead()
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::AttributeCFlags, faudes::AttributeFlags, faudes::AttributeTimedGlobal, faudes::AttributeTimedState, faudes::AttributeTimedTrans, faudes::SimEventAttribute, faudes::AttributeSimCondition, faudes::AttributeColoredState, faudes::AttributeIosState, faudes::AttributeIosEvent, faudes::AttributeDeviceEvent, faudes::AttributeSimplenetInput, faudes::AttributeSimplenetOutput, faudes::AttributeSignalInput, faudes::AttributeSignalOutput, faudes::AttributeLhaGlobal, faudes::AttributeLhaState, faudes::AttributeLhaTrans, faudes::HioStateFlags, faudes::HioEventFlags, faudes::AttributeFailureTypeMap, faudes::AttributeFailureEvents, faudes::DiagLabelSet, and faudes::AttributeDiagnoserState. Definition at line 69 of file cfl_attributes.cpp. ◆ DoWrite()
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::AttributeCFlags, faudes::AttributeFlags, faudes::AttributeTimedGlobal, faudes::AttributeTimedState, faudes::AttributeTimedTrans, faudes::SimEventAttribute, faudes::AttributeSimCondition, faudes::AttributeColoredState, faudes::AttributeIosState, faudes::AttributeIosEvent, faudes::AttributeDeviceEvent, faudes::AttributeSimplenetInput, faudes::AttributeSimplenetOutput, faudes::AttributeSignalInput, faudes::AttributeSignalOutput, faudes::AttributeLhaGlobal, faudes::AttributeLhaState, faudes::AttributeLhaTrans, faudes::HioStateFlags, faudes::HioEventFlags, faudes::AttributeFailureTypeMap, faudes::DiagLabelSet, faudes::AttributeFailureEvents, and faudes::AttributeDiagnoserState. Definition at line 55 of file cfl_attributes.cpp. ◆ IsDefault()
Test for default value. Reimplemented in faudes::AttributeCFlags, faudes::AttributeFlags, faudes::AttributeTimedGlobal, faudes::AttributeTimedState, faudes::AttributeTimedTrans, faudes::SimEventAttribute, faudes::AttributeSimCondition, faudes::AttributeColoredState, faudes::AttributeIosState, faudes::AttributeIosEvent, faudes::AttributeDeviceEvent, faudes::AttributeSimplenetEvent, faudes::AttributeSimplenetInput, faudes::AttributeSimplenetOutput, faudes::AttributeSignalEvent, faudes::AttributeSignalInput, faudes::AttributeSignalOutput, faudes::AttributeLhaGlobal, faudes::AttributeLhaState, faudes::AttributeLhaTrans, faudes::HioStateFlags, faudes::HioEventFlags, faudes::DiagLabelSet, faudes::AttributeFailureTypeMap, faudes::AttributeFailureEvents, and faudes::AttributeDiagnoserState. Definition at line 74 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 391 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 340 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 375 of file cfl_types.cpp. ◆ SetDefault()
Set to default value. Derived classes must reimplement this function for Clear to operate properly. Definition at line 80 of file cfl_attributes.h. ◆ Skip()
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.
Definition at line 75 of file cfl_attributes.cpp. The documentation for this class was generated from the following files: libFAUDES 2.32f --- 2024.12.22 --- c++ api documentaion by doxygen |