Safir SDK Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ErrorListResponse.h
Go to the documentation of this file.
1 #ifndef SAFIR_DOB_ERRORLISTRESPONSE_H_INCLUDED
2 #define SAFIR_DOB_ERRORLISTRESPONSE_H_INCLUDED
3 
8 
13 
14 #ifdef _MSC_VER
15 #ifdef DOTS_GENERATED_CPP_EXPORTS
16 #define GENERATED_API __declspec(dllexport)
17 #else
18 #define GENERATED_API __declspec(dllimport)
19 #ifdef _DEBUG
20 #pragma comment( lib, "dots_generated-Safir-cppd.lib" )
21 #else
22 #pragma comment( lib, "dots_generated-Safir-cpp.lib" )
23 #endif
24 #endif
25 #endif
26 #ifdef __GNUC__
27 #define GENERATED_API
28 #endif
29 
33 namespace Safir
34 {
38 namespace Dob
39 {
40 
41  class ErrorListResponse; //forward declaration
42  typedef boost::shared_ptr<ErrorListResponse> ErrorListResponsePtr;
43  typedef boost::shared_ptr<const ErrorListResponse> ErrorListResponseConstPtr;
44 
47 
52  class GENERATED_API ErrorListResponse : public Safir::Dob::ErrorResponse
53  {
54  public:
55  //Constructors and Create routines
57  virtual Safir::Dob::Typesystem::ObjectPtr Clone() const;
58  static ErrorListResponsePtr Create();
59 
63  static ErrorListResponsePtr CreateErrorListResponse(
65 
66 
67  //NumberOfErrors
68  static Safir::Dob::Typesystem::MemberIndex NumberOfErrorsMemberIndex();
74 
75 
76  //Error
77  static Safir::Dob::Typesystem::MemberIndex ErrorMemberIndex();
78  static Safir::Dob::Typesystem::ArrayIndex ErrorArraySize();
84 
85 
87  static const Safir::Dob::Typesystem::TypeId ClassTypeId = -1383676967909534058LL;
88 
89  //Type id for ErrorListResponse
90  virtual Safir::Dob::Typesystem::TypeId GetTypeId() const {return ClassTypeId;}
91 
92  //Check if anything in the object has change flags set
93  virtual bool IsChanged();
94 
95  //Recursively set all change flags in the object
96  virtual void SetChanged(const bool changed);
97 
98 
99  //Reflection part (Don't use unless you really know what you're doing!!)
102  virtual const Safir::Dob::Typesystem::ContainerBase & GetMember(const Safir::Dob::Typesystem::MemberIndex member,
103  const Safir::Dob::Typesystem::ArrayIndex index) const;
104 
105  virtual Safir::Dob::Typesystem::Int32 CalculateBlobSize() const;
106  virtual void WriteToBlob(char * blob, char * & beginningOfUnused) const;
107  explicit ErrorListResponse(char const * const blob);
108 
109  private:
110 
111 #ifdef _MSC_VER
112 #pragma warning (push)
113 #pragma warning (disable : 4251)
114 #endif
115 
116  Safir::Dob::Typesystem::Int32Container m_NumberOfErrorsMember;
118 
119 #ifdef _MSC_VER
120 #pragma warning (pop)
121 #endif
122  };
123 
124 } // Dob
125 } // Safir
126 
127 #endif
128 
Container for base types.
Definition: ValueContainers.h:60
Safir::Dob::Typesystem::ArrayContainer< ErrorListResponseContainer > ErrorListResponseContainerArray
Definition: ErrorListResponse.h:46
Definition: ContainerProxies.h:38
RFC 3164 Description: Error conditions.
Definition: Log.h:65
DotsC_TypeId TypeId
A unique type identifier.
Definition: Dob/Typesystem/Defs.h:221
Template class for all containers of automatically generated DOB objects.
Definition: ObjectContainer.h:185
boost::shared_ptr< ErrorListResponse > ErrorListResponsePtr
Definition: ErrorListResponse.h:41
boost::shared_ptr< Object > ObjectPtr
A smart pointer to an Object.
Definition: Object.h:41
DotsC_ArrayIndex ArrayIndex
Index into an array.
Definition: Dob/Typesystem/Defs.h:249
boost::shared_ptr< const ErrorListResponse > ErrorListResponseConstPtr
Definition: ErrorListResponse.h:43
Base class for all Containers.
Definition: ContainerBase.h:41
The baseclass for all error responses.
Definition: ErrorResponse.h:50
virtual Safir::Dob::Typesystem::TypeId GetTypeId() const
Get the type id of this object.
Definition: ErrorListResponse.h:90
Safir::Dob::Typesystem::ObjectContainerImpl< ErrorListResponse > ErrorListResponseContainer
Definition: ErrorListResponse.h:45
boost::shared_ptr< ResponseErrorInfo > ResponseErrorInfoPtr
Definition: ResponseErrorInfo.h:39
STL container for arrays of DOB-containers.
Definition: ArrayContainer.h:58
Defines an array of errors, typically used to report errors for individual members in the request...
Definition: ErrorListResponse.h:52
DotsC_Int32 Int32
32 bit integer type.
Definition: Dob/Typesystem/Defs.h:69
DotsC_MemberIndex MemberIndex
The index of a member in an object.
Definition: Dob/Typesystem/Defs.h:240
static bool IsChanged(const ContainerBase &container)
Check if a container is changed.
Definition: ContainerBase.h:134