Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Safir::Dob::ResponseGeneralErrorCodes Class Reference

Declares error codes that are of general interest. More...

#include <Safir/Dob/ResponseGeneralErrorCodes.h>

Inheritance diagram for Safir::Dob::ResponseGeneralErrorCodes:
Collaboration diagram for Safir::Dob::ResponseGeneralErrorCodes:

Public Member Functions

 ResponseGeneralErrorCodes ()
 
virtual
Safir::Dob::Typesystem::ObjectPtr 
Clone () const
 Create a copy of the object. More...
 
virtual
Safir::Dob::Typesystem::TypeId 
GetTypeId () const
 Get the type id of this object. More...
 
virtual bool IsChanged ()
 Check if any member of this object is changed. More...
 
virtual void SetChanged (const bool changed)
 Recursively set change flags in all members of this object. More...
 
virtual
Safir::Dob::Typesystem::ContainerBase
GetMember (const Safir::Dob::Typesystem::MemberIndex member, const Safir::Dob::Typesystem::ArrayIndex index)
 Get a reference to a member container from an object. More...
 
virtual const
Safir::Dob::Typesystem::ContainerBase
GetMember (const Safir::Dob::Typesystem::MemberIndex member, const Safir::Dob::Typesystem::ArrayIndex index) const
 Get a const reference to a member container from an object. More...
 
virtual
Safir::Dob::Typesystem::Int32 
CalculateBlobSize () const
 Calculate the size of the blob-serialized form of this object. More...
 
virtual void WriteToBlob (char *blob, char *&beginningOfUnused) const
 Write the object to a blob. More...
 
 ResponseGeneralErrorCodes (char const *const blob)
 
- Public Member Functions inherited from Safir::Dob::Parametrization
 Parametrization ()
 
 Parametrization (char const *const blob)
 
- Public Member Functions inherited from Safir::Dob::Typesystem::Object
 Object ()
 Default constructor. More...
 
virtual ~Object ()
 Virtual destructor. More...
 
 Object (char const *const blob)
 Create an Object from a blob. More...
 

Static Public Member Functions

static ResponseGeneralErrorCodesPtr Create ()
 
static std::wstring SafirReqErr ()
 An erroneous request. More...
 
static std::wstring SafirIllCombination ()
 Illegal combination of members. More...
 
static std::wstring SafirMissingMember ()
 A mandatory member is missing. More...
 
static std::wstring SafirPresentMember ()
 A present member is not allowed to be present. More...
 
static std::wstring SafirNullMember ()
 A member is null, but is not allowed to be null. More...
 
static std::wstring SafirInternalErr ()
 An internal error occurred. More...
 
static std::wstring SafirNoPermission ()
 A request is send from someone without permission. More...
 
static std::wstring SafirRangeErr ()
 Value out of range. More...
 
static std::wstring SafirInstanceErr ()
 Instance out of range. More...
 
static std::wstring SafirNoFreeInstance ()
 No free instance exists, create request failed. More...
 
static std::wstring SafirTimeout ()
 The owner did not respond in due time. More...
 
static std::wstring SafirNotRegistered ()
 No one is registerd to handle the request. More...
 
static std::wstring SafirFormatErr ()
 The format of the supplied value is erroneous. More...
 
- Static Public Member Functions inherited from Safir::Dob::Parametrization
static ParametrizationPtr Create ()
 
- Static Public Member Functions inherited from Safir::Dob::Typesystem::Object
static Dob::Typesystem::ObjectPtr Create ()
 Creates a new Object. More...
 

Static Public Attributes

static const
Safir::Dob::Typesystem::TypeId 
ClassTypeId = -561740985511921576LL
 Type id for ResponseGeneralErrorCodes. More...
 
- Static Public Attributes inherited from Safir::Dob::Parametrization
static const
Safir::Dob::Typesystem::TypeId 
ClassTypeId = 8075666004421608370LL
 Type id for Parametrization. More...
 
- Static Public Attributes inherited from Safir::Dob::Typesystem::Object
static const
Dob::Typesystem::TypeId 
ClassTypeId = 5955188366590963785LL
 The TypeId of the Object class. More...
 

Detailed Description

Declares error codes that are of general interest.

Error codes shall be parameters, to ensure that they are spelled consitently.

Constructor & Destructor Documentation

Safir::Dob::ResponseGeneralErrorCodes::ResponseGeneralErrorCodes ( )
Safir::Dob::ResponseGeneralErrorCodes::ResponseGeneralErrorCodes ( char const *const  blob)
explicit

Member Function Documentation

virtual Safir::Dob::Typesystem::Int32 Safir::Dob::ResponseGeneralErrorCodes::CalculateBlobSize ( ) const
virtual

Calculate the size of the blob-serialized form of this object.

Returns
The needed size in bytes.

Reimplemented from Safir::Dob::Parametrization.

virtual Safir::Dob::Typesystem::ObjectPtr Safir::Dob::ResponseGeneralErrorCodes::Clone ( ) const
virtual

Create a copy of the object.

Will create a copy of the object on the heap and return a smart pointer to it. Use boost::static_pointer_cast or boost::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::Parametrization.

static ResponseGeneralErrorCodesPtr Safir::Dob::ResponseGeneralErrorCodes::Create ( )
static
virtual Safir::Dob::Typesystem::ContainerBase& Safir::Dob::ResponseGeneralErrorCodes::GetMember ( const Safir::Dob::Typesystem::MemberIndex  member,
const Safir::Dob::Typesystem::ArrayIndex  index 
)
virtual

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::Parametrization.

virtual const Safir::Dob::Typesystem::ContainerBase& Safir::Dob::ResponseGeneralErrorCodes::GetMember ( const Safir::Dob::Typesystem::MemberIndex  member,
const Safir::Dob::Typesystem::ArrayIndex  index 
) const
virtual

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::Parametrization.

virtual Safir::Dob::Typesystem::TypeId Safir::Dob::ResponseGeneralErrorCodes::GetTypeId ( ) const
virtual

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::Parametrization.

virtual bool Safir::Dob::ResponseGeneralErrorCodes::IsChanged ( )
virtual

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::Parametrization.

static std::wstring Safir::Dob::ResponseGeneralErrorCodes::SafirFormatErr ( )
static

The format of the supplied value is erroneous.

static std::wstring Safir::Dob::ResponseGeneralErrorCodes::SafirIllCombination ( )
static

Illegal combination of members.

static std::wstring Safir::Dob::ResponseGeneralErrorCodes::SafirInstanceErr ( )
static

Instance out of range.

static std::wstring Safir::Dob::ResponseGeneralErrorCodes::SafirInternalErr ( )
static

An internal error occurred.

static std::wstring Safir::Dob::ResponseGeneralErrorCodes::SafirMissingMember ( )
static

A mandatory member is missing.

static std::wstring Safir::Dob::ResponseGeneralErrorCodes::SafirNoFreeInstance ( )
static

No free instance exists, create request failed.

static std::wstring Safir::Dob::ResponseGeneralErrorCodes::SafirNoPermission ( )
static

A request is send from someone without permission.

static std::wstring Safir::Dob::ResponseGeneralErrorCodes::SafirNotRegistered ( )
static

No one is registerd to handle the request.

static std::wstring Safir::Dob::ResponseGeneralErrorCodes::SafirNullMember ( )
static

A member is null, but is not allowed to be null.

static std::wstring Safir::Dob::ResponseGeneralErrorCodes::SafirPresentMember ( )
static

A present member is not allowed to be present.

static std::wstring Safir::Dob::ResponseGeneralErrorCodes::SafirRangeErr ( )
static

Value out of range.

static std::wstring Safir::Dob::ResponseGeneralErrorCodes::SafirReqErr ( )
static

An erroneous request.

static std::wstring Safir::Dob::ResponseGeneralErrorCodes::SafirTimeout ( )
static

The owner did not respond in due time.

virtual void Safir::Dob::ResponseGeneralErrorCodes::SetChanged ( const bool  changed)
virtual

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::Parametrization.

virtual void Safir::Dob::ResponseGeneralErrorCodes::WriteToBlob ( char *  blob,
char *&  beginningOfUnused 
) const
virtual

Write the object to a blob.

Note that the size of the blob is assumed to be correct! No checks are made!

Parameters
blob[in,out] - The blob to write to.
beginningOfUnused[in,out] - The beginning of unused dynamic blob space.

Reimplemented from Safir::Dob::Parametrization.

Member Data Documentation

const Safir::Dob::Typesystem::TypeId Safir::Dob::ResponseGeneralErrorCodes::ClassTypeId = -561740985511921576LL
static