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 #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 EntityIdResponse; //forward declaration
35  typedef boost::shared_ptr<EntityIdResponse> EntityIdResponsePtr;
36  typedef boost::shared_ptr<const EntityIdResponse> EntityIdResponseConstPtr;
37 
40 
46  {
47  public:
48  //Constructors and Create routines
50  virtual Safir::Dob::Typesystem::ObjectPtr Clone() const;
51  static EntityIdResponsePtr Create();
52 
56  static EntityIdResponsePtr CreateResponse(
57  const Safir::Dob::Typesystem::EntityId Assigned);
58 
59 
60  //Assigned
61  static Safir::Dob::Typesystem::MemberIndex AssignedMemberIndex();
67 
68 
70  static const Safir::Dob::Typesystem::TypeId ClassTypeId = -3160242026100845499LL;
71 
72  //Type id for EntityIdResponse
73  virtual Safir::Dob::Typesystem::TypeId GetTypeId() const {return ClassTypeId;}
74 
75  //Check if anything in the object has change flags set
76  virtual bool IsChanged();
77 
78  //Recursively set all change flags in the object
79  virtual void SetChanged(const bool changed);
80 
81 
82  //Reflection part (Don't use unless you really know what you're doing!!)
86  const Safir::Dob::Typesystem::ArrayIndex index) const;
87 
88  virtual Safir::Dob::Typesystem::Int32 CalculateBlobSize() const;
89  virtual void WriteToBlob(char * blob, char * & beginningOfUnused) const;
90  explicit EntityIdResponse(char const * const blob);
91 
92  private:
93 
94 #ifdef _MSC_VER
95 #pragma warning (push)
96 #pragma warning (disable : 4251)
97 #endif
98 
100 
101 #ifdef _MSC_VER
102 #pragma warning (pop)
103 #endif
104  };
105 
106 } // Dob
107 } // Safir
108 
109 #endif
110 
Container for base types.
Definition: ValueContainers.h:60
The baseclass for all success responses.
Definition: SuccessResponse.h:44
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:73
Definition: ContainerProxies.h:38
boost::shared_ptr< EntityIdResponse > EntityIdResponsePtr
Definition: EntityIdResponse.h:34
DotsC_TypeId TypeId
A unique type identifier.
Definition: Defs.h:219
#define DOTS_GENERATED_Safir_API
Definition: EntityIdResponse.h:17
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:45
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
Safir::Dob::Typesystem::ObjectContainerImpl< EntityIdResponse > EntityIdResponseContainer
Definition: EntityIdResponse.h:38
Base class for all Containers.
Definition: ContainerBase.h:41
boost::shared_ptr< const EntityIdResponse > EntityIdResponseConstPtr
Definition: EntityIdResponse.h:36
STL container for arrays of DOB-containers.
Definition: ArrayContainer.h:58
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
Safir::Dob::Typesystem::ArrayContainer< EntityIdResponseContainer > EntityIdResponseContainerArray
Definition: EntityIdResponse.h:39
static bool IsChanged(const ContainerBase &container)
Check if a container is changed.
Definition: ContainerBase.h:134