![]() |
Safir SDK Core
|
The base class for all DOB objects. More...
#include <Safir/Dob/Typesystem/Object.h>
Public Member Functions | |
Object () | |
Default constructor. | |
virtual | ~Object () |
Virtual destructor. | |
virtual Dob::Typesystem::ObjectPtr | Clone () const |
Create a copy of the object. | |
virtual Dob::Typesystem::TypeId | GetTypeId () const |
Get the type id of this object. | |
virtual bool | IsChanged () |
Check if any member of this object is changed. | |
virtual void | SetChanged (const bool changed) |
Recursively set change flags in all members of this object. | |
Reflection part. | |
These methods allow applications to manipulate the members of objects without having been compiled against it. There should be no reason for most applications to use these methods. | |
virtual ContainerBase & | GetMember (const Dob::Typesystem::MemberIndex member, const Dob::Typesystem::ArrayIndex index) |
Get a reference to a member container from an object. | |
virtual const ContainerBase & | GetMember (const Dob::Typesystem::MemberIndex member, const Dob::Typesystem::ArrayIndex index) const |
Get a const reference to a member container from an object. | |
Blob serialization/deserialization part. | |
These functions are for internal use only! Their names and functionality are likely to change in the near future! | |
Object (Safir::Dob::Typesystem::Int64 handle) | |
Create an Object from a blob. | |
virtual void | WriteToBlob (Safir::Dob::Typesystem::Int64 handle) const |
Write the object to a blob. | |
Static Public Member Functions | |
static Dob::Typesystem::ObjectPtr | Create () |
Creates a new Object. | |
Static Public Attributes | |
static const Dob::Typesystem::TypeId | ClassTypeId = 5955188366590963785LL |
The TypeId of the Object class. | |
The base class for all DOB objects.
This class is the base class for all automatically generated DOB classes.
Safir::Dob::Typesystem::Object::Object | ( | ) |
Default constructor.
|
virtual |
Virtual destructor.
Needed to ensure proper destruction of Object pointers.
|
explicit |
Create an Object from a blob.
handle | [in] - Handle to a blobReader to deserialize. |
|
virtual |
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 in Safir::Application::BackdoorCommand, Safir::Control::Command, Safir::Control::ConnectionStatisticsAllNodesResponse, Safir::Control::ConnectionStatisticsItem, Safir::Control::ConnectionStatisticsResponse, Safir::Control::GetConnectionStatistics, Safir::Control::GetConnectionStatisticsAllNodes, Safir::Control::Parameters, Safir::Control::Status, Safir::Dob::ConnectionInfo, Safir::Dob::CreateRoutineParameters, Safir::Dob::Entity, Safir::Dob::EntityIdResponse, Safir::Dob::ErrorListResponse, Safir::Dob::ErrorResponse, Safir::Dob::Item, Safir::Dob::Message, Safir::Dob::MirroredNodeInfo, Safir::Dob::NodeInfo, Safir::Dob::NodeParameters, Safir::Dob::NodeType, Safir::Dob::Parametrization, Safir::Dob::PersistenceParameters, Safir::Dob::PersistentDataReady, Safir::Dob::PersistentDataStatus, Safir::Dob::ProcessInfo, Safir::Dob::QueueParameters, Safir::Dob::QueueRule, Safir::Dob::Response, Safir::Dob::ResponseErrorInfo, Safir::Dob::ResponseGeneralErrorCodes, Safir::Dob::Service, Safir::Dob::Struct, Safir::Dob::SuccessResponse, Safir::Dob::ThisNodeParameters, Safir::Time::LibraryParameters, Safir::Utilities::ForEach::BriefResponse, Safir::Utilities::ForEach::DeleteAllRequest, Safir::Utilities::ForEach::DeleteRequest, Safir::Utilities::ForEach::FullResponse, Safir::Utilities::ForEach::UpdateRequest, Safir::Websocket::Parameters, Safir::Websocket::Typesystem::ClassType, Safir::Websocket::Typesystem::EnumType, Safir::Websocket::Typesystem::Member, and Safir::Websocket::Typesystem::TypeHierarchy.
|
static |
|
virtual |
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 in Safir::Application::BackdoorCommand, Safir::Control::Command, Safir::Control::ConnectionStatisticsAllNodesResponse, Safir::Control::ConnectionStatisticsItem, Safir::Control::ConnectionStatisticsResponse, Safir::Control::GetConnectionStatistics, Safir::Control::GetConnectionStatisticsAllNodes, Safir::Control::Parameters, Safir::Control::Status, Safir::Dob::ConnectionInfo, Safir::Dob::CreateRoutineParameters, Safir::Dob::Entity, Safir::Dob::EntityIdResponse, Safir::Dob::ErrorListResponse, Safir::Dob::ErrorResponse, Safir::Dob::Item, Safir::Dob::Message, Safir::Dob::MirroredNodeInfo, Safir::Dob::NodeInfo, Safir::Dob::NodeParameters, Safir::Dob::NodeType, Safir::Dob::Parametrization, Safir::Dob::PersistenceParameters, Safir::Dob::PersistentDataReady, Safir::Dob::PersistentDataStatus, Safir::Dob::ProcessInfo, Safir::Dob::QueueParameters, Safir::Dob::QueueRule, Safir::Dob::Response, Safir::Dob::ResponseErrorInfo, Safir::Dob::ResponseGeneralErrorCodes, Safir::Dob::Service, Safir::Dob::Struct, Safir::Dob::SuccessResponse, Safir::Dob::ThisNodeParameters, Safir::Time::LibraryParameters, Safir::Utilities::ForEach::BriefResponse, Safir::Utilities::ForEach::DeleteAllRequest, Safir::Utilities::ForEach::DeleteRequest, Safir::Utilities::ForEach::FullResponse, Safir::Utilities::ForEach::UpdateRequest, Safir::Websocket::Parameters, Safir::Websocket::Typesystem::ClassType, Safir::Websocket::Typesystem::EnumType, Safir::Websocket::Typesystem::Member, and Safir::Websocket::Typesystem::TypeHierarchy.
|
virtual |
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 in Safir::Application::BackdoorCommand, Safir::Control::Command, Safir::Control::ConnectionStatisticsAllNodesResponse, Safir::Control::ConnectionStatisticsItem, Safir::Control::ConnectionStatisticsResponse, Safir::Control::GetConnectionStatistics, Safir::Control::GetConnectionStatisticsAllNodes, Safir::Control::Parameters, Safir::Control::Status, Safir::Dob::ConnectionInfo, Safir::Dob::CreateRoutineParameters, Safir::Dob::Entity, Safir::Dob::EntityIdResponse, Safir::Dob::ErrorListResponse, Safir::Dob::ErrorResponse, Safir::Dob::Item, Safir::Dob::Message, Safir::Dob::MirroredNodeInfo, Safir::Dob::NodeInfo, Safir::Dob::NodeParameters, Safir::Dob::NodeType, Safir::Dob::Parametrization, Safir::Dob::PersistenceParameters, Safir::Dob::PersistentDataReady, Safir::Dob::PersistentDataStatus, Safir::Dob::ProcessInfo, Safir::Dob::QueueParameters, Safir::Dob::QueueRule, Safir::Dob::Response, Safir::Dob::ResponseErrorInfo, Safir::Dob::ResponseGeneralErrorCodes, Safir::Dob::Service, Safir::Dob::Struct, Safir::Dob::SuccessResponse, Safir::Dob::ThisNodeParameters, Safir::Time::LibraryParameters, Safir::Utilities::ForEach::BriefResponse, Safir::Utilities::ForEach::DeleteAllRequest, Safir::Utilities::ForEach::DeleteRequest, Safir::Utilities::ForEach::FullResponse, Safir::Utilities::ForEach::UpdateRequest, Safir::Websocket::Parameters, Safir::Websocket::Typesystem::ClassType, Safir::Websocket::Typesystem::EnumType, Safir::Websocket::Typesystem::Member, and Safir::Websocket::Typesystem::TypeHierarchy.
|
virtual |
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 in Safir::Application::BackdoorCommand, Safir::Control::Command, Safir::Control::ConnectionStatisticsAllNodesResponse, Safir::Control::ConnectionStatisticsItem, Safir::Control::ConnectionStatisticsResponse, Safir::Control::GetConnectionStatistics, Safir::Control::GetConnectionStatisticsAllNodes, Safir::Control::Parameters, Safir::Control::Status, Safir::Dob::ConnectionInfo, Safir::Dob::CreateRoutineParameters, Safir::Dob::Entity, Safir::Dob::EntityIdResponse, Safir::Dob::ErrorListResponse, Safir::Dob::ErrorResponse, Safir::Dob::Item, Safir::Dob::Message, Safir::Dob::MirroredNodeInfo, Safir::Dob::NodeInfo, Safir::Dob::NodeParameters, Safir::Dob::NodeType, Safir::Dob::Parametrization, Safir::Dob::PersistenceParameters, Safir::Dob::PersistentDataReady, Safir::Dob::PersistentDataStatus, Safir::Dob::ProcessInfo, Safir::Dob::QueueParameters, Safir::Dob::QueueRule, Safir::Dob::Response, Safir::Dob::ResponseErrorInfo, Safir::Dob::ResponseGeneralErrorCodes, Safir::Dob::Service, Safir::Dob::Struct, Safir::Dob::SuccessResponse, Safir::Dob::ThisNodeParameters, Safir::Time::LibraryParameters, Safir::Utilities::ForEach::BriefResponse, Safir::Utilities::ForEach::DeleteAllRequest, Safir::Utilities::ForEach::DeleteRequest, Safir::Utilities::ForEach::FullResponse, Safir::Utilities::ForEach::UpdateRequest, Safir::Websocket::Parameters, Safir::Websocket::Typesystem::ClassType, Safir::Websocket::Typesystem::EnumType, Safir::Websocket::Typesystem::Member, and Safir::Websocket::Typesystem::TypeHierarchy.
|
virtual |
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 in Safir::Application::BackdoorCommand, Safir::Control::Command, Safir::Control::ConnectionStatisticsAllNodesResponse, Safir::Control::ConnectionStatisticsItem, Safir::Control::ConnectionStatisticsResponse, Safir::Control::GetConnectionStatistics, Safir::Control::GetConnectionStatisticsAllNodes, Safir::Control::Parameters, Safir::Control::Status, Safir::Dob::ConnectionInfo, Safir::Dob::CreateRoutineParameters, Safir::Dob::Entity, Safir::Dob::EntityIdResponse, Safir::Dob::ErrorListResponse, Safir::Dob::ErrorResponse, Safir::Dob::Item, Safir::Dob::Message, Safir::Dob::MirroredNodeInfo, Safir::Dob::NodeInfo, Safir::Dob::NodeParameters, Safir::Dob::NodeType, Safir::Dob::Parametrization, Safir::Dob::PersistenceParameters, Safir::Dob::PersistentDataReady, Safir::Dob::PersistentDataStatus, Safir::Dob::ProcessInfo, Safir::Dob::QueueParameters, Safir::Dob::QueueRule, Safir::Dob::Response, Safir::Dob::ResponseErrorInfo, Safir::Dob::ResponseGeneralErrorCodes, Safir::Dob::Service, Safir::Dob::Struct, Safir::Dob::SuccessResponse, Safir::Dob::ThisNodeParameters, Safir::Time::LibraryParameters, Safir::Utilities::ForEach::BriefResponse, Safir::Utilities::ForEach::DeleteAllRequest, Safir::Utilities::ForEach::DeleteRequest, Safir::Utilities::ForEach::FullResponse, Safir::Utilities::ForEach::UpdateRequest, Safir::Websocket::Parameters, Safir::Websocket::Typesystem::ClassType, Safir::Websocket::Typesystem::EnumType, Safir::Websocket::Typesystem::Member, and Safir::Websocket::Typesystem::TypeHierarchy.
|
virtual |
Recursively set change flags in all members of this object.
changed | [in] - The value to set the change flags to |
Reimplemented in Safir::Application::BackdoorCommand, Safir::Control::Command, Safir::Control::ConnectionStatisticsAllNodesResponse, Safir::Control::ConnectionStatisticsItem, Safir::Control::ConnectionStatisticsResponse, Safir::Control::GetConnectionStatistics, Safir::Control::GetConnectionStatisticsAllNodes, Safir::Control::Parameters, Safir::Control::Status, Safir::Dob::ConnectionInfo, Safir::Dob::CreateRoutineParameters, Safir::Dob::Entity, Safir::Dob::EntityIdResponse, Safir::Dob::ErrorListResponse, Safir::Dob::ErrorResponse, Safir::Dob::Item, Safir::Dob::Message, Safir::Dob::MirroredNodeInfo, Safir::Dob::NodeInfo, Safir::Dob::NodeParameters, Safir::Dob::NodeType, Safir::Dob::Parametrization, Safir::Dob::PersistenceParameters, Safir::Dob::PersistentDataReady, Safir::Dob::PersistentDataStatus, Safir::Dob::ProcessInfo, Safir::Dob::QueueParameters, Safir::Dob::QueueRule, Safir::Dob::Response, Safir::Dob::ResponseErrorInfo, Safir::Dob::ResponseGeneralErrorCodes, Safir::Dob::Service, Safir::Dob::Struct, Safir::Dob::SuccessResponse, Safir::Dob::ThisNodeParameters, Safir::Time::LibraryParameters, Safir::Utilities::ForEach::BriefResponse, Safir::Utilities::ForEach::DeleteAllRequest, Safir::Utilities::ForEach::DeleteRequest, Safir::Utilities::ForEach::FullResponse, Safir::Utilities::ForEach::UpdateRequest, Safir::Websocket::Parameters, Safir::Websocket::Typesystem::ClassType, Safir::Websocket::Typesystem::EnumType, Safir::Websocket::Typesystem::Member, and Safir::Websocket::Typesystem::TypeHierarchy.
|
virtual |
Write the object to a blob.
handle | [in] - Handle to a blobWriter that is the destination of the serialized object. |
Reimplemented in Safir::Application::BackdoorCommand, Safir::Control::Command, Safir::Control::ConnectionStatisticsAllNodesResponse, Safir::Control::ConnectionStatisticsItem, Safir::Control::ConnectionStatisticsResponse, Safir::Control::GetConnectionStatistics, Safir::Control::GetConnectionStatisticsAllNodes, Safir::Control::Parameters, Safir::Control::Status, Safir::Dob::ConnectionInfo, Safir::Dob::CreateRoutineParameters, Safir::Dob::Entity, Safir::Dob::EntityIdResponse, Safir::Dob::ErrorListResponse, Safir::Dob::ErrorResponse, Safir::Dob::Item, Safir::Dob::Message, Safir::Dob::MirroredNodeInfo, Safir::Dob::NodeInfo, Safir::Dob::NodeParameters, Safir::Dob::NodeType, Safir::Dob::Parametrization, Safir::Dob::PersistenceParameters, Safir::Dob::PersistentDataReady, Safir::Dob::PersistentDataStatus, Safir::Dob::ProcessInfo, Safir::Dob::QueueParameters, Safir::Dob::QueueRule, Safir::Dob::Response, Safir::Dob::ResponseErrorInfo, Safir::Dob::ResponseGeneralErrorCodes, Safir::Dob::Service, Safir::Dob::Struct, Safir::Dob::SuccessResponse, Safir::Dob::ThisNodeParameters, Safir::Time::LibraryParameters, Safir::Utilities::ForEach::BriefResponse, Safir::Utilities::ForEach::DeleteAllRequest, Safir::Utilities::ForEach::DeleteRequest, Safir::Utilities::ForEach::FullResponse, Safir::Utilities::ForEach::UpdateRequest, Safir::Websocket::Parameters, Safir::Websocket::Typesystem::ClassType, Safir::Websocket::Typesystem::EnumType, Safir::Websocket::Typesystem::Member, and Safir::Websocket::Typesystem::TypeHierarchy.
|
static |
The TypeId of the Object class.