Safir SDK Core
Loading...
Searching...
No Matches
Safir::Dob::Typesystem::BinaryContainer Class Reference

Container for Binary. More...

#include <Safir/Dob/Typesystem/ValueContainers.h>

Inheritance diagram for Safir::Dob::Typesystem::BinaryContainer:
[legend]
Collaboration diagram for Safir::Dob::Typesystem::BinaryContainer:
[legend]

Public Types

typedef Binary ContainedType
 

Public Member Functions

 BinaryContainer ()
 Default constructor.
 
const BinaryGetVal () const
 Get the value of the container.
 
void SetVal (const Binary &value)
 Set the value of the container.
 
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.
 
- Public Member Functions inherited from Safir::Dob::Typesystem::ContainerBase
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.
 

Friends

class Safir::Dob::Typesystem::Internal::BlobOperations
 

Additional Inherited Members

- Protected Member Functions inherited from Safir::Dob::Typesystem::ContainerBase
ContainerBaseoperator= (const ContainerBase &other)
 Copy assignment operator.
 
- Protected Attributes inherited from Safir::Dob::Typesystem::ContainerBase
bool m_bIsChanged
 The variable containing the change flag.
 

Detailed Description

Container for Binary.

This is a container for Binary. It differs from the ordinary ValueContainer in that its GetVal-method returns a const reference instead of a copy of the content. These are really only meant for blob serialization to use.

Member Typedef Documentation

◆ ContainedType

Constructor & Destructor Documentation

◆ BinaryContainer()

Safir::Dob::Typesystem::BinaryContainer::BinaryContainer ( )

Default constructor.

Creates a null and not changed container.

Member Function Documentation

◆ Copy()

void Safir::Dob::Typesystem::BinaryContainer::Copy ( const ContainerBase & that)
overridevirtual

Virtual assignment.

Copy all the members from "that" into "this". Types must be the same for this to work!

Parameters
that[in] - The object to copy into this.
Exceptions
SoftwareViolationExceptionIf the types are not of the same kind.

Implements Safir::Dob::Typesystem::ContainerBase.

References __WFILE__.

◆ GetVal()

const Binary & Safir::Dob::Typesystem::BinaryContainer::GetVal ( ) const

Get the value of the container.

Returns
The value of the container.
Exceptions
NullExceptionThe container is null.

References __WFILE__.

◆ IsNull()

bool Safir::Dob::Typesystem::BinaryContainer::IsNull ( ) const
overridevirtual

Is the container set to null?

Returns
True if the container is set to null.

Implements Safir::Dob::Typesystem::ContainerBase.

◆ SetNull()

void Safir::Dob::Typesystem::BinaryContainer::SetNull ( )
overridevirtual

◆ SetVal()

void Safir::Dob::Typesystem::BinaryContainer::SetVal ( const Binary & value)

Set the value of the container.

Null and change flags are updated accordingly.

Parameters
value[in] - The new value.

References Safir::Dob::Typesystem::ContainerBase::m_bIsChanged.

Friends And Related Symbol Documentation

◆ Safir::Dob::Typesystem::Internal::BlobOperations

friend class Safir::Dob::Typesystem::Internal::BlobOperations
friend