![]() |
Safir SDK Core
|
#include </home/lars/safir/safir-sdk-core/src/safir_dou/gen/cpp/include/Safir/Dob/InstanceIdPolicy.h>
Public Types | |
typedef Enumeration | ContainedType |
Public Member Functions | |
void | SetOrdinal (const Safir::Dob::Typesystem::EnumerationValue value) override |
Set the ordinal value of the enumeration container. | |
Safir::Dob::Typesystem::EnumerationValue | GetOrdinal () const override |
Get the ordinal value of the enumeration container. | |
void | SetVal (const Enumeration value) |
Enumeration | GetVal () const |
bool | operator== (const Enumeration other) const |
bool | operator!= (const Enumeration other) const |
![]() | |
constexpr | EnumerationContainerBase () |
Default Constructor. | |
bool | IsNull () const override |
Is the container set to null? | |
void | SetNull () override |
Set the container to null. | |
void | Copy (const ContainerBase &that) override |
Virtual assignment. | |
![]() | |
constexpr | ContainerBase () |
Default Constructor. | |
constexpr | ContainerBase (const ContainerBase &)=default |
Copy constructor. | |
virtual | ~ContainerBase () |
Virtual destructor. | |
virtual bool | IsChanged () const |
Is the change flag set on the container? | |
virtual void | SetChanged (const bool changed) |
Set the containers change flag. | |
Additional Inherited Members | |
![]() | |
constexpr | EnumerationContainerBase (const EnumerationContainerBase &other)=default |
Copy constructor. | |
EnumerationContainerBase & | operator= (const EnumerationContainerBase &other)=default |
Copy assignment operator. | |
![]() | |
ContainerBase & | operator= (const ContainerBase &other) |
Copy assignment operator. | |
![]() | |
bool | m_bIsNull |
The null flag for the enumeration container. | |
EnumerationValue | m_Value |
The value of the enumeration container. | |
![]() | |
bool | m_bIsChanged |
The variable containing the change flag. | |
|
overridevirtual |
Get the ordinal value of the enumeration container.
Note: Only applications that need to use "anonymous enums" should use this method. All other applications should be using the GetVal method.
NullException | The container is null. |
Implements Safir::Dob::Typesystem::EnumerationContainerBase.
References __WFILE__.
Enumeration Safir::Dob::InstanceIdPolicy::EnumerationContainer::GetVal | ( | ) | const |
bool Safir::Dob::InstanceIdPolicy::EnumerationContainer::operator!= | ( | const Enumeration | other | ) | const |
bool Safir::Dob::InstanceIdPolicy::EnumerationContainer::operator== | ( | const Enumeration | other | ) | const |
|
overridevirtual |
Set the ordinal value of the enumeration container.
Note: Only applications that need to use "anonymous enums" should use this method. All other applications should be using the SetVal method.
value | [in] - The new value. |
IllegalValueException | The value is not in the range of the enumeration. |
Implements Safir::Dob::Typesystem::EnumerationContainerBase.
References __WFILE__.
void Safir::Dob::InstanceIdPolicy::EnumerationContainer::SetVal | ( | const Enumeration | value | ) |