Safir SDK Core
|
Proxy class for a "previous" entity. More...
#include <Safir/Dob/PreviousEntityProxy.h>
Public Member Functions | |
const Dob::Typesystem::TypeId | GetTypeId () const |
Get type id. More... | |
const Dob::Typesystem::InstanceId | GetInstanceId () const |
Get instance id. More... | |
const Dob::Typesystem::EntityId | GetEntityId () const |
Get entity id. More... | |
const Dob::EntityPtr | GetEntity () const |
Get entity. More... | |
const Dob::EntityPtr | GetEntityWithChangeInfo () const |
Get entity with change information. More... | |
const Dob::Typesystem::HandlerId | GetOwner () const |
Get owner handler id. More... | |
const Dob::ConnectionInfoPtr | GetOwnerConnectionInfo () const |
Get info about the connection to which the owner handler is related. More... | |
PreviousEntityProxy (Internal::PreviousEntityProxyImpl *pImpl) | |
Retrieve binary blob | |
const char * | GetBlob () const |
Get binary blob of the received entity without changeflags set. More... | |
const char * | GetBlobWithChangeInfo () const |
Get binary blob with change information. More... | |
Trace and Debug stuff | |
const Dob::Typesystem::HandlerId | GetOwnerWithStringRepresentation () const |
Get owner handler id that also contains the string representation. More... | |
Retrieve timestamps. (Extended info for applications with special need) | |
Note that timestamps is only available for types configured with this option. | |
const Dob::Typesystem::Int64 | GetTimestamp () const |
Retrieves the timestamp for the latest create, update or delete. More... | |
const Dob::Typesystem::Int64 | GetTimestamp (const Dob::Typesystem::MemberIndex member) const |
Retrieves the timestamp for the given top member. More... | |
Proxy class for a "previous" entity.
|
explicit |
const char* Safir::Dob::PreviousEntityProxy::GetBlob | ( | ) | const |
Get binary blob of the received entity without changeflags set.
This method will give you a pointer to the underlying representation of the object. Note that this pointer is only valid while the PreviousEntityProxy is in scope. If you want to keep the blob you must copy it using methods in Safir::Dob::Typesystem.
This method is mainly useful if all you want to do with a received object is to write it to a database or pass it over a C-interface to a library or plugin.
As an example, if you want to copy the bytes into a std::vector<char> you could do it like this "v = std::vector<char>(blob,blob+Safir::Dob::Typesystem::BlobOperations.GetSize())"
const char* Safir::Dob::PreviousEntityProxy::GetBlobWithChangeInfo | ( | ) | const |
Get binary blob with change information.
Retrieves the entity with change flags set to indicate which members have changed since the last subscription response.
const Dob::EntityPtr Safir::Dob::PreviousEntityProxy::GetEntity | ( | ) | const |
Get entity.
Retrieves a smart pointer to the entity.
No change flags will be set in the returned entity.
const Dob::Typesystem::EntityId Safir::Dob::PreviousEntityProxy::GetEntityId | ( | ) | const |
const Dob::EntityPtr Safir::Dob::PreviousEntityProxy::GetEntityWithChangeInfo | ( | ) | const |
Get entity with change information.
Retrieves the entity with change flags set to indicate which members have changed since the last subscription response.
const Dob::Typesystem::InstanceId Safir::Dob::PreviousEntityProxy::GetInstanceId | ( | ) | const |
const Dob::Typesystem::HandlerId Safir::Dob::PreviousEntityProxy::GetOwner | ( | ) | const |
Get owner handler id.
Retrieves the handler id of the handler that owns (has created) this entity instance.
const Dob::ConnectionInfoPtr Safir::Dob::PreviousEntityProxy::GetOwnerConnectionInfo | ( | ) | const |
Get info about the connection to which the owner handler is related.
const Dob::Typesystem::HandlerId Safir::Dob::PreviousEntityProxy::GetOwnerWithStringRepresentation | ( | ) | const |
Get owner handler id that also contains the string representation.
Mainly for trace and debug purposes.
const Dob::Typesystem::Int64 Safir::Dob::PreviousEntityProxy::GetTimestamp | ( | ) | const |
Retrieves the timestamp for the latest create, update or delete.
Note that this operation is only valid for Injectable types.
const Dob::Typesystem::Int64 Safir::Dob::PreviousEntityProxy::GetTimestamp | ( | const Dob::Typesystem::MemberIndex | member | ) | const |
Retrieves the timestamp for the given top member.
Note that this operation is only valid for Injectable types.
[in] | member | Top level member index. |
const Dob::Typesystem::TypeId Safir::Dob::PreviousEntityProxy::GetTypeId | ( | ) | const |