![]() |
Safir SDK Core
|
Container for Binary. More...
#include <Safir/Dob/Typesystem/ValueContainers.h>
Public Types | |
typedef Binary | ContainedType |
Public Member Functions | |
BinaryContainer () | |
Default constructor. | |
const Binary & | GetVal () 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. | |
![]() | |
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 | |
![]() | |
ContainerBase & | operator= (const ContainerBase &other) |
Copy assignment operator. | |
![]() | |
bool | m_bIsChanged |
The variable containing the change flag. | |
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.
Safir::Dob::Typesystem::BinaryContainer::BinaryContainer | ( | ) |
Default constructor.
Creates a null and not changed container.
|
overridevirtual |
Virtual assignment.
Copy all the members from "that" into "this". Types must be the same for this to work!
that | [in] - The object to copy into this. |
SoftwareViolationException | If the types are not of the same kind. |
Implements Safir::Dob::Typesystem::ContainerBase.
References __WFILE__.
const Binary & Safir::Dob::Typesystem::BinaryContainer::GetVal | ( | ) | const |
Get the value of the container.
NullException | The container is null. |
References __WFILE__.
|
overridevirtual |
Is the container set to null?
Implements Safir::Dob::Typesystem::ContainerBase.
|
overridevirtual |
Set the container to null.
Implements Safir::Dob::Typesystem::ContainerBase.
References Safir::Dob::Typesystem::ContainerBase::m_bIsChanged.
void Safir::Dob::Typesystem::BinaryContainer::SetVal | ( | const Binary & | value | ) |
Set the value of the container.
Null and change flags are updated accordingly.
value | [in] - The new value. |
References Safir::Dob::Typesystem::ContainerBase::m_bIsChanged.
|
friend |