Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
EntityIdResponse.h
Go to the documentation of this file.
1 #ifndef SAFIR_DOB_ENTITYIDRESPONSE_H_INCLUDED
2 #define SAFIR_DOB_ENTITYIDRESPONSE_H_INCLUDED
3 
8 
11 
12 #ifdef _MSC_VER
13 #ifdef DOTS_GENERATED_CPP_EXPORTS
14 #define GENERATED_API __declspec(dllexport)
15 #else
16 #define GENERATED_API __declspec(dllimport)
17 #ifdef _DEBUG
18 #pragma comment( lib, "dots_generated-Safir-cppd.lib" )
19 #else
20 #pragma comment( lib, "dots_generated-Safir-cpp.lib" )
21 #endif
22 #endif
23 #endif
24 #ifdef __GNUC__
25 #define GENERATED_API
26 #endif
27 
31 namespace Safir
32 {
36 namespace Dob
37 {
38 
39  class EntityIdResponse; //forward declaration
40  typedef boost::shared_ptr<EntityIdResponse> EntityIdResponsePtr;
41  typedef boost::shared_ptr<const EntityIdResponse> EntityIdResponseConstPtr;
42 
45 
50  class GENERATED_API EntityIdResponse : public Safir::Dob::SuccessResponse
51  {
52  public:
53  //Constructors and Create routines
55  virtual Safir::Dob::Typesystem::ObjectPtr Clone() const;
56  static EntityIdResponsePtr Create();
57 
61  static EntityIdResponsePtr CreateResponse(
62  const Safir::Dob::Typesystem::EntityId Assigned);
63 
64 
65  //Assigned
66  static Safir::Dob::Typesystem::MemberIndex AssignedMemberIndex();
72 
73 
75  static const Safir::Dob::Typesystem::TypeId ClassTypeId = -3160242026100845499LL;
76 
77  //Type id for EntityIdResponse
78  virtual Safir::Dob::Typesystem::TypeId GetTypeId() const {return ClassTypeId;}
79 
80  //Check if anything in the object has change flags set
81  virtual bool IsChanged();
82 
83  //Recursively set all change flags in the object
84  virtual void SetChanged(const bool changed);
85 
86 
87  //Reflection part (Don't use unless you really know what you're doing!!)
91  const Safir::Dob::Typesystem::ArrayIndex index) const;
92 
93  virtual Safir::Dob::Typesystem::Int32 CalculateBlobSize() const;
94  virtual void WriteToBlob(char * blob, char * & beginningOfUnused) const;
95  explicit EntityIdResponse(char const * const blob);
96 
97  private:
98 
99 #ifdef _MSC_VER
100 #pragma warning (push)
101 #pragma warning (disable : 4251)
102 #endif
103 
105 
106 #ifdef _MSC_VER
107 #pragma warning (pop)
108 #endif
109  };
110 
111 } // Dob
112 } // Safir
113 
114 #endif
115 
Container for base types.
Definition: ValueContainers.h:60
The baseclass for all success responses.
Definition: SuccessResponse.h:49
Class containing the identity of an entity.
Definition: EntityId.h:41
virtual Safir::Dob::Typesystem::TypeId GetTypeId() const
Get the type id of this object.
Definition: EntityIdResponse.h:78
Definition: ContainerProxies.h:38
boost::shared_ptr< EntityIdResponse > EntityIdResponsePtr
Definition: EntityIdResponse.h:39
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
Standard response for handlers registered as HandlerDecidesInstanceId, containing the instance that t...
Definition: EntityIdResponse.h:50
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
Safir::Dob::Typesystem::ObjectContainerImpl< EntityIdResponse > EntityIdResponseContainer
Definition: EntityIdResponse.h:43
Base class for all Containers.
Definition: ContainerBase.h:41
boost::shared_ptr< const EntityIdResponse > EntityIdResponseConstPtr
Definition: EntityIdResponse.h:41
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::ArrayContainer< EntityIdResponseContainer > EntityIdResponseContainerArray
Definition: EntityIdResponse.h:44
static bool IsChanged(const ContainerBase &container)
Check if a container is changed.
Definition: ContainerBase.h:134