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 #include <Safir/Utilities/Internal/VisibilityHelpers.h>
15 
16 #ifdef dots_generated_Safir_cpp_EXPORTS
17 # define DOTS_GENERATED_Safir_API SAFIR_HELPER_DLL_EXPORT
18 #else
19 # define DOTS_GENERATED_Safir_API SAFIR_HELPER_DLL_IMPORT
20 # define SAFIR_LIBRARY_NAME "dots_generated-Safir-cpp"
21 # include <Safir/Utilities/Internal/AutoLink.h>
22 #endif
23 #define DOTS_GENERATED_Safir_API_LOCAL SAFIR_HELPER_DLL_LOCAL
24 
28 namespace Safir
29 {
33 namespace Dob
34 {
35 
36  class ErrorListResponse; //forward declaration
37  typedef boost::shared_ptr<ErrorListResponse> ErrorListResponsePtr;
38  typedef boost::shared_ptr<const ErrorListResponse> ErrorListResponseConstPtr;
39 
42 
48  {
49  public:
50  //Constructors and Create routines
52  virtual Safir::Dob::Typesystem::ObjectPtr Clone() const;
53  static ErrorListResponsePtr Create();
54 
58  static ErrorListResponsePtr CreateErrorListResponse(
60 
61 
62  //NumberOfErrors
63  static Safir::Dob::Typesystem::MemberIndex NumberOfErrorsMemberIndex();
69 
70 
71  //Error
72  static Safir::Dob::Typesystem::MemberIndex ErrorMemberIndex();
73  static Safir::Dob::Typesystem::ArrayIndex ErrorArraySize();
79 
80 
82  static const Safir::Dob::Typesystem::TypeId ClassTypeId = -1383676967909534058LL;
83 
84  //Type id for ErrorListResponse
85  virtual Safir::Dob::Typesystem::TypeId GetTypeId() const {return ClassTypeId;}
86 
87  //Check if anything in the object has change flags set
88  virtual bool IsChanged();
89 
90  //Recursively set all change flags in the object
91  virtual void SetChanged(const bool changed);
92 
93 
94  //Reflection part (Don't use unless you really know what you're doing!!)
98  const Safir::Dob::Typesystem::ArrayIndex index) const;
99 
100  virtual Safir::Dob::Typesystem::Int32 CalculateBlobSize() const;
101  virtual void WriteToBlob(char * blob, char * & beginningOfUnused) const;
102  explicit ErrorListResponse(char const * const blob);
103 
104  private:
105 
106 #ifdef _MSC_VER
107 #pragma warning (push)
108 #pragma warning (disable : 4251)
109 #endif
110 
111  Safir::Dob::Typesystem::Int32Container m_NumberOfErrorsMember;
113 
114 #ifdef _MSC_VER
115 #pragma warning (pop)
116 #endif
117  };
118 
119 } // Dob
120 } // Safir
121 
122 #endif
123 
Container for base types.
Definition: ValueContainers.h:60
Safir::Dob::Typesystem::ArrayContainer< ErrorListResponseContainer > ErrorListResponseContainerArray
Definition: ErrorListResponse.h:41
Definition: ContainerProxies.h:38
#define DOTS_GENERATED_Safir_API
Definition: ErrorListResponse.h:19
RFC 3164 Description: Error conditions.
Definition: Log.h:61
DotsC_TypeId TypeId
A unique type identifier.
Definition: Defs.h:219
Template class for all containers of automatically generated DOB objects.
Definition: ObjectContainer.h:185
boost::shared_ptr< ErrorListResponse > ErrorListResponsePtr
Definition: ErrorListResponse.h:36
boost::shared_ptr< Object > ObjectPtr
A smart pointer to an Object.
Definition: Object.h:41
DotsC_ArrayIndex ArrayIndex
Index into an array.
Definition: Defs.h:247
boost::shared_ptr< const ErrorListResponse > ErrorListResponseConstPtr
Definition: ErrorListResponse.h:38
Base class for all Containers.
Definition: ContainerBase.h:41
The baseclass for all error responses.
Definition: ErrorResponse.h:45
virtual Safir::Dob::Typesystem::TypeId GetTypeId() const
Get the type id of this object.
Definition: ErrorListResponse.h:85
Safir::Dob::Typesystem::ObjectContainerImpl< ErrorListResponse > ErrorListResponseContainer
Definition: ErrorListResponse.h:40
boost::shared_ptr< ResponseErrorInfo > ResponseErrorInfoPtr
Definition: ResponseErrorInfo.h:34
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:47
DotsC_Int32 Int32
32 bit integer type.
Definition: Defs.h:67
DotsC_MemberIndex MemberIndex
The index of a member in an object.
Definition: Defs.h:238
static bool IsChanged(const ContainerBase &container)
Check if a container is changed.
Definition: ContainerBase.h:134