Safir SDK Core
|
Container for Binary. More...
#include <Safir/Dob/Typesystem/ValueContainers.h>
Public Types | |
typedef Binary | ContainedType |
Public Member Functions | |
BinaryContainer () | |
Default constructor. More... | |
const Binary & | GetVal () const |
Get the value of the container. More... | |
void | SetVal (const Binary &value) |
Set the value of the container. More... | |
virtual bool | IsNull () const |
Is the container set to null? More... | |
virtual void | SetNull () |
Set the container to null. More... | |
virtual void | Copy (const ContainerBase &that) |
Virtual assignment. More... | |
Public Member Functions inherited from Safir::Dob::Typesystem::ContainerBase | |
ContainerBase () | |
Default Constructor. More... | |
virtual | ~ContainerBase () |
Virtual destructor. More... | |
virtual bool | IsChanged () const |
Is the change flag set on the container? The change flag gets updated every time the contained value changes. More... | |
virtual void | SetChanged (const bool changed) |
Set the containers change flag. More... | |
Friends | |
class | Safir::Dob::Typesystem::Internal::BlobOperations |
Additional Inherited Members | |
Protected Member Functions inherited from Safir::Dob::Typesystem::ContainerBase | |
ContainerBase & | operator= (const ContainerBase &other) |
Copy assignment operator. More... | |
Protected Attributes inherited from Safir::Dob::Typesystem::ContainerBase | |
bool | m_bIsChanged |
The variable containing the change flag. More... | |
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.
|
virtual |
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__.
|
virtual |
Is the container set to null?
Implements Safir::Dob::Typesystem::ContainerBase.
|
virtual |
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 |