![]() |
Safir SDK Core
|
Node information for all nodes currently in the system. More...
#include </home/lars/safir/safir-sdk-core/src/safir_dou/gen/cpp/include/Safir/Dob/NodeInfo.h>
Static Public Member Functions | |
static NodeInfoPtr | Create () |
static Safir::Dob::Typesystem::MemberIndex | NodeNameMemberIndex () |
static Safir::Dob::Typesystem::Int32 | NodeNameMaxStringLength () |
static Safir::Dob::Typesystem::MemberIndex | IpAddressMemberIndex () |
static Safir::Dob::Typesystem::Int32 | IpAddressMaxStringLength () |
static Safir::Dob::Typesystem::MemberIndex | NodeTypeMemberIndex () |
static Safir::Dob::Typesystem::Int32 | NodeTypeMaxStringLength () |
static Safir::Dob::Typesystem::MemberIndex | StateMemberIndex () |
static Safir::Dob::Typesystem::MemberIndex | MemoryLevelMemberIndex () |
![]() | |
static EntityPtr | Create () |
![]() | |
static Dob::Typesystem::ObjectPtr | Create () |
Creates a new Object. | |
Static Public Attributes | |
static const Safir::Dob::Typesystem::TypeId | ClassTypeId = -7384790295819199437LL |
Type id for NodeInfo. | |
![]() | |
static const Safir::Dob::Typesystem::TypeId | ClassTypeId = -2411771300820206595LL |
Type id for Entity. | |
![]() | |
static const Dob::Typesystem::TypeId | ClassTypeId = 5955188366590963785LL |
The TypeId of the Object class. | |
Node information for all nodes currently in the system.
The instance corresponds to the node id. Note that light nodes will not be able to see other light node's instances of this class. See User's Guide for more information.
Safir::Dob::NodeInfo::NodeInfo | ( | ) |
|
explicit |
|
overridevirtual |
Create a copy of the object.
Will create a copy of the object on the heap and return a smart pointer to it. Use std::static_pointer_cast or std::dynamic_pointer_cast to cast it to the pointer type that you're after.
Reimplemented from Safir::Dob::Entity.
|
static |
|
overridevirtual |
Get a const reference to a member container from an object.
Use the methods in Members to get member indices and array sizes for use with this method.
Note: Do not use this method unless you're very sure it is the one you need!
member | [in] - The index of the member to get. |
index | [in] - The array index of the member to get. |
IllegalValueException | If the index is not in the range of the array. |
SoftwareViolationException | If the element is not an array and the index is not 0. |
Reimplemented from Safir::Dob::Entity.
|
overridevirtual |
Get a reference to a member container from an object.
Use the methods in Members to get member indices and array sizes for use with this method.
Note: Do not use this method unless you're very sure it is the one you need!
member | [in] - The index of the member to get. |
index | [in] - The array index of the member to get. |
IllegalValueException | If the index is not in the range of the array. |
SoftwareViolationException | If the element is not an array and the index is not 0. |
Reimplemented from Safir::Dob::Entity.
|
overridevirtual |
Get the type id of this object.
Gets the type id of the object. Method is virtual to ensure that the right value gets returned for pointers or references.
Reimplemented from Safir::Dob::Entity.
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainer > Safir::Dob::NodeInfo::IpAddress | ( | ) |
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainer > Safir::Dob::NodeInfo::IpAddress | ( | ) | const |
The Ip address used by the node.
|
static |
|
static |
|
overridevirtual |
Check if any member of this object is changed.
This method will recursively check if any member of the object has its change flag set.
Reimplemented from Safir::Dob::Entity.
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::MemoryLevel::EnumerationContainer > Safir::Dob::NodeInfo::MemoryLevel | ( | ) |
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::MemoryLevel::EnumerationContainer > Safir::Dob::NodeInfo::MemoryLevel | ( | ) | const |
Current shared memory usage level of the node.
This value will never be set to Full, since it is impossible to actually update entities then.
|
static |
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainer > Safir::Dob::NodeInfo::NodeName | ( | ) |
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainer > Safir::Dob::NodeInfo::NodeName | ( | ) | const |
The name of the node.
|
static |
|
static |
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainer > Safir::Dob::NodeInfo::NodeType | ( | ) |
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainer > Safir::Dob::NodeInfo::NodeType | ( | ) | const |
The node type of the node.
|
static |
|
static |
|
overridevirtual |
Recursively set change flags in all members of this object.
changed | [in] - The value to set the change flags to |
Reimplemented from Safir::Dob::Entity.
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::NodeState::EnumerationContainer > Safir::Dob::NodeInfo::State | ( | ) |
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::NodeState::EnumerationContainer > Safir::Dob::NodeInfo::State | ( | ) | const |
This is the current state of the node.
For non light nodes this will be 'Normal'. For light nodes this can be Detached, Attaching, Attached.
|
static |
|
overridevirtual |
Write the object to a blob.
handle | [in] - Handle to a blobWriter that is the destination of the serialized object. |
Reimplemented from Safir::Dob::Entity.
|
static |
Type id for NodeInfo.