Safir SDK Core
Loading...
Searching...
No Matches
Safir::Websocket::Typesystem::Member Class Reference

Represents a class member in a Dob type. More...

#include </home/lars/safir/safir-sdk-core/src/safir_dou/gen/cpp/include/Safir/Websocket/Typesystem/Member.h>

Inheritance diagram for Safir::Websocket::Typesystem::Member:
[legend]
Collaboration diagram for Safir::Websocket::Typesystem::Member:
[legend]

Public Member Functions

 Member ()
 
Safir::Dob::Typesystem::ObjectPtr Clone () const override
 Create a copy of the object.
 
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainerSummary () const
 Member summary.
 
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainerSummary ()
 
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainerName () const
 Name of member.
 
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainerName ()
 
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainerType () const
 Fully qualified type name.
 
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainerType ()
 
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainerDictionaryKeyType () const
 If member is dictionry this is the fully qualified dictionary key type.
 
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainerDictionaryKeyType ()
 
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::Int32ContainerArraySize () const
 If member is array this is the arraySize.
 
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::Int32ContainerArraySize ()
 
Safir::Dob::Typesystem::TypeId GetTypeId () const override
 Get the type id of this object.
 
bool IsChanged () override
 Check if any member of this object is changed.
 
void SetChanged (const bool changed) override
 Recursively set change flags in all members of this object.
 
Safir::Dob::Typesystem::ContainerBaseGetMember (const Safir::Dob::Typesystem::MemberIndex member, const Safir::Dob::Typesystem::ArrayIndex index) override
 Get a reference to a member container from an object.
 
const Safir::Dob::Typesystem::ContainerBaseGetMember (const Safir::Dob::Typesystem::MemberIndex member, const Safir::Dob::Typesystem::ArrayIndex index) const override
 Get a const reference to a member container from an object.
 
void WriteToBlob (Safir::Dob::Typesystem::Int64 handle) const override
 Write the object to a blob.
 
 Member (Safir::Dob::Typesystem::Int64 handle)
 
- Public Member Functions inherited from Safir::Dob::Item
 Item ()
 
 Item (Safir::Dob::Typesystem::Int64 handle)
 
- Public Member Functions inherited from Safir::Dob::Typesystem::Object
 Object ()
 Default constructor.
 
virtual ~Object ()
 Virtual destructor.
 
 Object (Safir::Dob::Typesystem::Int64 handle)
 Create an Object from a blob.
 

Static Public Member Functions

static MemberPtr Create ()
 
static Safir::Dob::Typesystem::MemberIndex SummaryMemberIndex ()
 
static Safir::Dob::Typesystem::Int32 SummaryMaxStringLength ()
 
static Safir::Dob::Typesystem::MemberIndex NameMemberIndex ()
 
static Safir::Dob::Typesystem::Int32 NameMaxStringLength ()
 
static Safir::Dob::Typesystem::MemberIndex TypeMemberIndex ()
 
static Safir::Dob::Typesystem::Int32 TypeMaxStringLength ()
 
static Safir::Dob::Typesystem::MemberIndex DictionaryKeyTypeMemberIndex ()
 
static Safir::Dob::Typesystem::Int32 DictionaryKeyTypeMaxStringLength ()
 
static Safir::Dob::Typesystem::MemberIndex ArraySizeMemberIndex ()
 
- Static Public Member Functions inherited from Safir::Dob::Item
static ItemPtr Create ()
 
- Static Public Member Functions inherited from Safir::Dob::Typesystem::Object
static Dob::Typesystem::ObjectPtr Create ()
 Creates a new Object.
 

Static Public Attributes

static const Safir::Dob::Typesystem::TypeId ClassTypeId = -587796916060072239LL
 Type id for Member.
 
- Static Public Attributes inherited from Safir::Dob::Item
static const Safir::Dob::Typesystem::TypeId ClassTypeId = 6050262633936372658LL
 Type id for Item.
 
- Static Public Attributes inherited from Safir::Dob::Typesystem::Object
static const Dob::Typesystem::TypeId ClassTypeId = 5955188366590963785LL
 The TypeId of the Object class.
 

Detailed Description

Represents a class member in a Dob type.

Constructor & Destructor Documentation

◆ Member() [1/2]

Safir::Websocket::Typesystem::Member::Member ( )

◆ Member() [2/2]

Safir::Websocket::Typesystem::Member::Member ( Safir::Dob::Typesystem::Int64 handle)
explicit

Member Function Documentation

◆ ArraySize() [1/2]

Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::Int32Container > Safir::Websocket::Typesystem::Member::ArraySize ( )

◆ ArraySize() [2/2]

const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::Int32Container > Safir::Websocket::Typesystem::Member::ArraySize ( ) const

If member is array this is the arraySize.

If member is sequence this value is set to -1.

◆ ArraySizeMemberIndex()

static Safir::Dob::Typesystem::MemberIndex Safir::Websocket::Typesystem::Member::ArraySizeMemberIndex ( )
static

◆ Clone()

Safir::Dob::Typesystem::ObjectPtr Safir::Websocket::Typesystem::Member::Clone ( ) const
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.

Returns
A smart pointer to the copy of the object.

Reimplemented from Safir::Dob::Item.

◆ Create()

static MemberPtr Safir::Websocket::Typesystem::Member::Create ( )
static

◆ DictionaryKeyType() [1/2]

Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainer > Safir::Websocket::Typesystem::Member::DictionaryKeyType ( )

◆ DictionaryKeyType() [2/2]

const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainer > Safir::Websocket::Typesystem::Member::DictionaryKeyType ( ) const

If member is dictionry this is the fully qualified dictionary key type.

◆ DictionaryKeyTypeMaxStringLength()

static Safir::Dob::Typesystem::Int32 Safir::Websocket::Typesystem::Member::DictionaryKeyTypeMaxStringLength ( )
static

◆ DictionaryKeyTypeMemberIndex()

static Safir::Dob::Typesystem::MemberIndex Safir::Websocket::Typesystem::Member::DictionaryKeyTypeMemberIndex ( )
static

◆ GetMember() [1/2]

const Safir::Dob::Typesystem::ContainerBase & Safir::Websocket::Typesystem::Member::GetMember ( const Safir::Dob::Typesystem::MemberIndex member,
const Safir::Dob::Typesystem::ArrayIndex index ) const
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!

Parameters
member[in] - The index of the member to get.
index[in] - The array index of the member to get.
Returns
A const reference to the member container.
Exceptions
IllegalValueExceptionIf the index is not in the range of the array.
SoftwareViolationExceptionIf the element is not an array and the index is not 0.

Reimplemented from Safir::Dob::Item.

◆ GetMember() [2/2]

Safir::Dob::Typesystem::ContainerBase & Safir::Websocket::Typesystem::Member::GetMember ( const Safir::Dob::Typesystem::MemberIndex member,
const Safir::Dob::Typesystem::ArrayIndex index )
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!

Parameters
member[in] - The index of the member to get.
index[in] - The array index of the member to get.
Returns
A reference to the member container.
Exceptions
IllegalValueExceptionIf the index is not in the range of the array.
SoftwareViolationExceptionIf the element is not an array and the index is not 0.

Reimplemented from Safir::Dob::Item.

◆ GetTypeId()

Safir::Dob::Typesystem::TypeId Safir::Websocket::Typesystem::Member::GetTypeId ( ) const
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.

Note
this method is overridden by all auto-generated classes.
Returns
The TypeId of the object.

Reimplemented from Safir::Dob::Item.

◆ IsChanged()

bool Safir::Websocket::Typesystem::Member::IsChanged ( )
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.

Note
this method is overridden by all auto-generated classes.
Returns
True if any member has changed.

Reimplemented from Safir::Dob::Item.

◆ Name() [1/2]

Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainer > Safir::Websocket::Typesystem::Member::Name ( )

◆ Name() [2/2]

const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainer > Safir::Websocket::Typesystem::Member::Name ( ) const

Name of member.

◆ NameMaxStringLength()

static Safir::Dob::Typesystem::Int32 Safir::Websocket::Typesystem::Member::NameMaxStringLength ( )
static

◆ NameMemberIndex()

static Safir::Dob::Typesystem::MemberIndex Safir::Websocket::Typesystem::Member::NameMemberIndex ( )
static

◆ SetChanged()

void Safir::Websocket::Typesystem::Member::SetChanged ( const bool changed)
overridevirtual

Recursively set change flags in all members of this object.

Note
this method is overridden by all auto-generated classes.
Parameters
changed[in] - The value to set the change flags to

Reimplemented from Safir::Dob::Item.

◆ Summary() [1/2]

Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainer > Safir::Websocket::Typesystem::Member::Summary ( )

◆ Summary() [2/2]

const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainer > Safir::Websocket::Typesystem::Member::Summary ( ) const

Member summary.

◆ SummaryMaxStringLength()

static Safir::Dob::Typesystem::Int32 Safir::Websocket::Typesystem::Member::SummaryMaxStringLength ( )
static

◆ SummaryMemberIndex()

static Safir::Dob::Typesystem::MemberIndex Safir::Websocket::Typesystem::Member::SummaryMemberIndex ( )
static

◆ Type() [1/2]

Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainer > Safir::Websocket::Typesystem::Member::Type ( )

◆ Type() [2/2]

const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainer > Safir::Websocket::Typesystem::Member::Type ( ) const

Fully qualified type name.

Can be String, Int32, Safir.Dob.Entity etc.

◆ TypeMaxStringLength()

static Safir::Dob::Typesystem::Int32 Safir::Websocket::Typesystem::Member::TypeMaxStringLength ( )
static

◆ TypeMemberIndex()

static Safir::Dob::Typesystem::MemberIndex Safir::Websocket::Typesystem::Member::TypeMemberIndex ( )
static

◆ WriteToBlob()

void Safir::Websocket::Typesystem::Member::WriteToBlob ( Safir::Dob::Typesystem::Int64 handle) const
overridevirtual

Write the object to a blob.

Parameters
handle[in] - Handle to a blobWriter that is the destination of the serialized object.

Reimplemented from Safir::Dob::Item.

Member Data Documentation

◆ ClassTypeId

const Safir::Dob::Typesystem::TypeId Safir::Websocket::Typesystem::Member::ClassTypeId = -587796916060072239LL
static

Type id for Member.