Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ResponseErrorInfo.h
Go to the documentation of this file.
1 #ifndef SAFIR_DOB_RESPONSEERRORINFO_H_INCLUDED
2 #define SAFIR_DOB_RESPONSEERRORINFO_H_INCLUDED
3 
8 
9 #include <Safir/Dob/Item.h>
11 
12 #include <Safir/Utilities/Internal/VisibilityHelpers.h>
13 
14 #ifdef dots_generated_Safir_cpp_EXPORTS
15 # define DOTS_GENERATED_Safir_API SAFIR_HELPER_DLL_EXPORT
16 #else
17 # define DOTS_GENERATED_Safir_API SAFIR_HELPER_DLL_IMPORT
18 # define SAFIR_LIBRARY_NAME "dots_generated-Safir-cpp"
19 # include <Safir/Utilities/Internal/AutoLink.h>
20 #endif
21 #define DOTS_GENERATED_Safir_API_LOCAL SAFIR_HELPER_DLL_LOCAL
22 
26 namespace Safir
27 {
31 namespace Dob
32 {
33 
34  class ResponseErrorInfo; //forward declaration
35  typedef boost::shared_ptr<ResponseErrorInfo> ResponseErrorInfoPtr;
36  typedef boost::shared_ptr<const ResponseErrorInfo> ResponseErrorInfoConstPtr;
37 
40 
46  {
47  public:
48  //Constructors and Create routines
50  virtual Safir::Dob::Typesystem::ObjectPtr Clone() const;
51  static ResponseErrorInfoPtr Create();
52 
56  static ResponseErrorInfoPtr CreateResponseErrorInfo(
57  const std::wstring & Code,
58  const std::wstring & Parameters);
59 
60 
64  static ResponseErrorInfoPtr CreateResponseErrorInfo(
65  const std::wstring & Code,
66  const Safir::Dob::Typesystem::Int32 Member,
67  const std::wstring & Parameters);
68 
69 
73  static ResponseErrorInfoPtr CreateResponseErrorInfo(
74  const std::wstring & Code,
75  const Safir::Dob::Typesystem::Int32 Member,
77  const std::wstring & Parameters);
78 
79 
80  //Member
81  static Safir::Dob::Typesystem::MemberIndex MemberMemberIndex();
87 
88 
89  //Index
90  static Safir::Dob::Typesystem::MemberIndex IndexMemberIndex();
96 
97 
98  //Code
99  static Safir::Dob::Typesystem::MemberIndex CodeMemberIndex();
100  static Safir::Dob::Typesystem::Int32 CodeMaxStringLength();
106 
107 
108  //Parameters
109  static Safir::Dob::Typesystem::MemberIndex ParametersMemberIndex();
110  static Safir::Dob::Typesystem::Int32 ParametersMaxStringLength();
116 
117 
119  static const Safir::Dob::Typesystem::TypeId ClassTypeId = 3197952542434689553LL;
120 
121  //Type id for ResponseErrorInfo
122  virtual Safir::Dob::Typesystem::TypeId GetTypeId() const {return ClassTypeId;}
123 
124  //Check if anything in the object has change flags set
125  virtual bool IsChanged();
126 
127  //Recursively set all change flags in the object
128  virtual void SetChanged(const bool changed);
129 
130 
131  //Reflection part (Don't use unless you really know what you're doing!!)
134  virtual const Safir::Dob::Typesystem::ContainerBase & GetMember(const Safir::Dob::Typesystem::MemberIndex member,
135  const Safir::Dob::Typesystem::ArrayIndex index) const;
136 
137  virtual Safir::Dob::Typesystem::Int32 CalculateBlobSize() const;
138  virtual void WriteToBlob(char * blob, char * & beginningOfUnused) const;
139  explicit ResponseErrorInfo(char const * const blob);
140 
141  private:
142 
143 #ifdef _MSC_VER
144 #pragma warning (push)
145 #pragma warning (disable : 4251)
146 #endif
147 
151  Safir::Dob::Typesystem::StringContainer m_ParametersMember;
152 
153 #ifdef _MSC_VER
154 #pragma warning (pop)
155 #endif
156  };
157 
158 } // Dob
159 } // Safir
160 
161 #endif
162 
Container for base types.
Definition: ValueContainers.h:60
Safir::Dob::Typesystem::ObjectContainerImpl< ResponseErrorInfo > ResponseErrorInfoContainer
Definition: ResponseErrorInfo.h:38
Safir::Dob::Typesystem::ArrayContainer< ResponseErrorInfoContainer > ResponseErrorInfoContainerArray
Definition: ResponseErrorInfo.h:39
virtual Safir::Dob::Typesystem::TypeId GetTypeId() const
Get the type id of this object.
Definition: ResponseErrorInfo.h:122
boost::shared_ptr< const ResponseErrorInfo > ResponseErrorInfoConstPtr
Definition: ResponseErrorInfo.h:36
Definition: ContainerProxies.h:38
Contains information about one of the errors found when handling a request.
Definition: ResponseErrorInfo.h:45
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
#define DOTS_GENERATED_Safir_API
Definition: ResponseErrorInfo.h:17
Container for strings (std::wstring).
Definition: ValueContainers.h:128
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
Base class for all Containers.
Definition: ContainerBase.h:41
The baseclass for all items.
Definition: Item.h:43
boost::shared_ptr< ResponseErrorInfo > ResponseErrorInfoPtr
Definition: ResponseErrorInfo.h:34
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