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

Defines an array of errors, typically used to report errors for individual members in the request. More...

#include <Safir/Dob/ErrorListResponse.h>

Inheritance diagram for Safir::Dob::ErrorListResponse:
Collaboration diagram for Safir::Dob::ErrorListResponse:

Public Member Functions

 ErrorListResponse ()
 
virtual
Safir::Dob::Typesystem::ObjectPtr 
Clone () const
 Create a copy of the object. More...
 
const
Safir::Dob::Typesystem::ContainerProxy
< Safir::Dob::Typesystem::Int32Container
NumberOfErrors () const
 The number of indecies used in the Error array. More...
 
Safir::Dob::Typesystem::ContainerProxy
< Safir::Dob::Typesystem::Int32Container
NumberOfErrors ()
 
const
Safir::Dob::ResponseErrorInfoContainerArray
Error () const
 The generated errors. More...
 
Safir::Dob::ResponseErrorInfoContainerArrayError ()
 
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...
 
 ErrorListResponse (char const *const blob)
 
- Public Member Functions inherited from Safir::Dob::ErrorResponse
 ErrorResponse ()
 
const
Safir::Dob::Typesystem::ContainerProxy
< Safir::Dob::Typesystem::StringContainer
Code () const
 The error code. More...
 
Safir::Dob::Typesystem::ContainerProxy
< Safir::Dob::Typesystem::StringContainer
Code ()
 
const
Safir::Dob::Typesystem::ContainerProxy
< Safir::Dob::Typesystem::StringContainer
AdditionalInfo () const
 Extra information when applicable. More...
 
Safir::Dob::Typesystem::ContainerProxy
< Safir::Dob::Typesystem::StringContainer
AdditionalInfo ()
 
 ErrorResponse (char const *const blob)
 
- Public Member Functions inherited from Safir::Dob::Response
 Response ()
 
 Response (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 ErrorListResponsePtr Create ()
 
static ErrorListResponsePtr CreateErrorListResponse (const Safir::Dob::ResponseErrorInfoPtr Error)
 Create an ErrorListResponse with one ResponseErrorInfo. More...
 
static
Safir::Dob::Typesystem::MemberIndex 
NumberOfErrorsMemberIndex ()
 
static
Safir::Dob::Typesystem::MemberIndex 
ErrorMemberIndex ()
 
static
Safir::Dob::Typesystem::ArrayIndex 
ErrorArraySize ()
 
- Static Public Member Functions inherited from Safir::Dob::ErrorResponse
static ErrorResponsePtr Create ()
 
static ErrorResponsePtr CreateErrorResponse (const std::wstring &Code, const std::wstring &AdditionalInfo)
 Create an ErrorListResponse with one ResponseErrorInfo. More...
 
static
Safir::Dob::Typesystem::MemberIndex 
CodeMemberIndex ()
 
static
Safir::Dob::Typesystem::Int32 
CodeMaxStringLength ()
 
static
Safir::Dob::Typesystem::MemberIndex 
AdditionalInfoMemberIndex ()
 
static
Safir::Dob::Typesystem::Int32 
AdditionalInfoMaxStringLength ()
 
- Static Public Member Functions inherited from Safir::Dob::Response
static ResponsePtr 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 = -1383676967909534058LL
 Type id for ErrorListResponse. More...
 
- Static Public Attributes inherited from Safir::Dob::ErrorResponse
static const
Safir::Dob::Typesystem::TypeId 
ClassTypeId = -7584868728779966772LL
 Type id for ErrorResponse. More...
 
- Static Public Attributes inherited from Safir::Dob::Response
static const
Safir::Dob::Typesystem::TypeId 
ClassTypeId = 2673865247625840957LL
 Type id for Response. 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

Defines an array of errors, typically used to report errors for individual members in the request.

Constructor & Destructor Documentation

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

Member Function Documentation

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

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

Returns
The needed size in bytes.

Reimplemented from Safir::Dob::ErrorResponse.

virtual Safir::Dob::Typesystem::ObjectPtr Safir::Dob::ErrorListResponse::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::ErrorResponse.

static ErrorListResponsePtr Safir::Dob::ErrorListResponse::Create ( )
static
static ErrorListResponsePtr Safir::Dob::ErrorListResponse::CreateErrorListResponse ( const Safir::Dob::ResponseErrorInfoPtr  Error)
static

Create an ErrorListResponse with one ResponseErrorInfo.

const Safir::Dob::ResponseErrorInfoContainerArray& Safir::Dob::ErrorListResponse::Error ( ) const

The generated errors.

Safir::Dob::ResponseErrorInfoContainerArray& Safir::Dob::ErrorListResponse::Error ( )
static Safir::Dob::Typesystem::ArrayIndex Safir::Dob::ErrorListResponse::ErrorArraySize ( )
static
static Safir::Dob::Typesystem::MemberIndex Safir::Dob::ErrorListResponse::ErrorMemberIndex ( )
static
virtual Safir::Dob::Typesystem::ContainerBase& Safir::Dob::ErrorListResponse::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::ErrorResponse.

virtual const Safir::Dob::Typesystem::ContainerBase& Safir::Dob::ErrorListResponse::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::ErrorResponse.

virtual Safir::Dob::Typesystem::TypeId Safir::Dob::ErrorListResponse::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::ErrorResponse.

virtual bool Safir::Dob::ErrorListResponse::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::ErrorResponse.

const Safir::Dob::Typesystem::ContainerProxy<Safir::Dob::Typesystem::Int32Container> Safir::Dob::ErrorListResponse::NumberOfErrors ( ) const

The number of indecies used in the Error array.

Safir::Dob::Typesystem::ContainerProxy<Safir::Dob::Typesystem::Int32Container> Safir::Dob::ErrorListResponse::NumberOfErrors ( )
static Safir::Dob::Typesystem::MemberIndex Safir::Dob::ErrorListResponse::NumberOfErrorsMemberIndex ( )
static
virtual void Safir::Dob::ErrorListResponse::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::ErrorResponse.

virtual void Safir::Dob::ErrorListResponse::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::ErrorResponse.

Member Data Documentation

const Safir::Dob::Typesystem::TypeId Safir::Dob::ErrorListResponse::ClassTypeId = -1383676967909534058LL
static

Type id for ErrorListResponse.