Safir SDK Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ResponseGeneralErrorCodes.h
Go to the documentation of this file.
1 #ifndef SAFIR_DOB_RESPONSEGENERALERRORCODES_H_INCLUDED
2 #define SAFIR_DOB_RESPONSEGENERALERRORCODES_H_INCLUDED
3 
8 
10 
11 #ifdef _MSC_VER
12 #ifdef DOTS_GENERATED_CPP_EXPORTS
13 #define GENERATED_API __declspec(dllexport)
14 #else
15 #define GENERATED_API __declspec(dllimport)
16 #ifdef _DEBUG
17 #pragma comment( lib, "dots_generated-Safir-cppd.lib" )
18 #else
19 #pragma comment( lib, "dots_generated-Safir-cpp.lib" )
20 #endif
21 #endif
22 #endif
23 #ifdef __GNUC__
24 #define GENERATED_API
25 #endif
26 
30 namespace Safir
31 {
35 namespace Dob
36 {
37 
38  class ResponseGeneralErrorCodes; //forward declaration
39  typedef boost::shared_ptr<ResponseGeneralErrorCodes> ResponseGeneralErrorCodesPtr;
40  typedef boost::shared_ptr<const ResponseGeneralErrorCodes> ResponseGeneralErrorCodesConstPtr;
41 
44 
50  {
51  public:
52  //Constructors and Create routines
54  virtual Safir::Dob::Typesystem::ObjectPtr Clone() const;
55  static ResponseGeneralErrorCodesPtr Create();
56 
57  //SafirReqErr
61  static std::wstring SafirReqErr();
62 
63  //SafirIllCombination
67  static std::wstring SafirIllCombination();
68 
69  //SafirMissingMember
73  static std::wstring SafirMissingMember();
74 
75  //SafirPresentMember
79  static std::wstring SafirPresentMember();
80 
81  //SafirNullMember
85  static std::wstring SafirNullMember();
86 
87  //SafirInternalErr
91  static std::wstring SafirInternalErr();
92 
93  //SafirNoPermission
97  static std::wstring SafirNoPermission();
98 
99  //SafirRangeErr
103  static std::wstring SafirRangeErr();
104 
105  //SafirInstanceErr
109  static std::wstring SafirInstanceErr();
110 
111  //SafirNoFreeInstance
115  static std::wstring SafirNoFreeInstance();
116 
117  //SafirTimeout
121  static std::wstring SafirTimeout();
122 
123  //SafirNotRegistered
127  static std::wstring SafirNotRegistered();
128 
129  //SafirFormatErr
133  static std::wstring SafirFormatErr();
134 
136  static const Safir::Dob::Typesystem::TypeId ClassTypeId = -561740985511921576LL;
137 
138  //Type id for ResponseGeneralErrorCodes
139  virtual Safir::Dob::Typesystem::TypeId GetTypeId() const {return ClassTypeId;}
140 
141  //Check if anything in the object has change flags set
142  virtual bool IsChanged();
143 
144  //Recursively set all change flags in the object
145  virtual void SetChanged(const bool changed);
146 
147 
148  //Reflection part (Don't use unless you really know what you're doing!!)
151  virtual const Safir::Dob::Typesystem::ContainerBase & GetMember(const Safir::Dob::Typesystem::MemberIndex member,
152  const Safir::Dob::Typesystem::ArrayIndex index) const;
153 
154  virtual Safir::Dob::Typesystem::Int32 CalculateBlobSize() const;
155  virtual void WriteToBlob(char * blob, char * & beginningOfUnused) const;
156  explicit ResponseGeneralErrorCodes(char const * const blob);
157 
158  private:
159 
160 #ifdef _MSC_VER
161 #pragma warning (push)
162 #pragma warning (disable : 4251)
163 #endif
164 
165 
166 #ifdef _MSC_VER
167 #pragma warning (pop)
168 #endif
169  };
170 
171 } // Dob
172 } // Safir
173 
174 #endif
175 
Declares error codes that are of general interest.
Definition: ResponseGeneralErrorCodes.h:49
virtual Safir::Dob::Typesystem::TypeId GetTypeId() const
Get the type id of this object.
Definition: ResponseGeneralErrorCodes.h:139
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< 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
This class is intended to be used as baseclass for classes that only contains parameters.
Definition: Parametrization.h:48
Base class for all Containers.
Definition: ContainerBase.h:41
Safir::Dob::Typesystem::ArrayContainer< ResponseGeneralErrorCodesContainer > ResponseGeneralErrorCodesContainerArray
Definition: ResponseGeneralErrorCodes.h:43
boost::shared_ptr< ResponseGeneralErrorCodes > ResponseGeneralErrorCodesPtr
Definition: ResponseGeneralErrorCodes.h:38
boost::shared_ptr< const ResponseGeneralErrorCodes > ResponseGeneralErrorCodesConstPtr
Definition: ResponseGeneralErrorCodes.h:40
STL container for arrays of DOB-containers.
Definition: ArrayContainer.h:58
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
Safir::Dob::Typesystem::ObjectContainerImpl< ResponseGeneralErrorCodes > ResponseGeneralErrorCodesContainer
Definition: ResponseGeneralErrorCodes.h:42
static bool IsChanged(const ContainerBase &container)
Check if a container is changed.
Definition: ContainerBase.h:134