Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DeleteRequest.h
Go to the documentation of this file.
1 #ifndef SAFIR_UTILITIES_FOREACH_DELETEREQUEST_H_INCLUDED
2 #define SAFIR_UTILITIES_FOREACH_DELETEREQUEST_H_INCLUDED
3 
8 
9 #include <Safir/Dob/Service.h>
12 
13 #include <Safir/Utilities/Internal/VisibilityHelpers.h>
14 
15 #ifdef dots_generated_Safir_cpp_EXPORTS
16 # define DOTS_GENERATED_Safir_API SAFIR_HELPER_DLL_EXPORT
17 #else
18 # define DOTS_GENERATED_Safir_API SAFIR_HELPER_DLL_IMPORT
19 # define SAFIR_LIBRARY_NAME "dots_generated-Safir-cpp"
20 # include <Safir/Utilities/Internal/AutoLink.h>
21 #endif
22 #define DOTS_GENERATED_Safir_API_LOCAL SAFIR_HELPER_DLL_LOCAL
23 
27 namespace Safir
28 {
32 namespace Utilities
33 {
37 namespace ForEach
38 {
39 
40  class DeleteRequest; //forward declaration
41  typedef boost::shared_ptr<DeleteRequest> DeleteRequestPtr;
42  typedef boost::shared_ptr<const DeleteRequest> DeleteRequestConstPtr;
43 
46 
52  {
53  public:
54  //Constructors and Create routines
55  DeleteRequest();
56  virtual Safir::Dob::Typesystem::ObjectPtr Clone() const;
57  static DeleteRequestPtr Create();
58 
59  //ResponseType
60  static Safir::Dob::Typesystem::MemberIndex ResponseTypeMemberIndex();
66 
67 
68  //OperateOn
69  static Safir::Dob::Typesystem::MemberIndex OperateOnMemberIndex();
70  static Safir::Dob::Typesystem::ArrayIndex OperateOnArraySize();
74  const Safir::Dob::Typesystem::EntityIdContainerArray & OperateOn() const;
76 
77 
79  static const Safir::Dob::Typesystem::TypeId ClassTypeId = 3436255236723270727LL;
80 
81  //Type id for DeleteRequest
82  virtual Safir::Dob::Typesystem::TypeId GetTypeId() const {return ClassTypeId;}
83 
84  //Check if anything in the object has change flags set
85  virtual bool IsChanged();
86 
87  //Recursively set all change flags in the object
88  virtual void SetChanged(const bool changed);
89 
90 
91  //Reflection part (Don't use unless you really know what you're doing!!)
95  const Safir::Dob::Typesystem::ArrayIndex index) const;
96 
97  virtual Safir::Dob::Typesystem::Int32 CalculateBlobSize() const;
98  virtual void WriteToBlob(char * blob, char * & beginningOfUnused) const;
99  explicit DeleteRequest(char const * const blob);
100 
101  private:
102 
103 #ifdef _MSC_VER
104 #pragma warning (push)
105 #pragma warning (disable : 4251)
106 #endif
107 
110 
111 #ifdef _MSC_VER
112 #pragma warning (pop)
113 #endif
114  };
115 
116 } // ForEach
117 } // Utilities
118 } // Safir
119 
120 #endif
121 
Safir::Dob::Typesystem::ArrayContainer< DeleteRequestContainer > DeleteRequestContainerArray
Definition: DeleteRequest.h:45
Definition of deleting multiple objects using ForEach service request.
Definition: DeleteRequest.h:51
Safir::Dob::Typesystem::ObjectContainerImpl< DeleteRequest > DeleteRequestContainer
Definition: DeleteRequest.h:44
Definition: ContainerProxies.h:38
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: DeleteRequest.h:18
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
The baseclass for all services.
Definition: Service.h:43
This enumeration has no summary.
Definition: ResponseType.h:40
Base class for all Containers.
Definition: ContainerBase.h:41
boost::shared_ptr< const DeleteRequest > DeleteRequestConstPtr
Definition: DeleteRequest.h:42
STL container for arrays of DOB-containers.
Definition: ArrayContainer.h:58
boost::shared_ptr< DeleteRequest > DeleteRequestPtr
Definition: DeleteRequest.h:40
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
virtual Safir::Dob::Typesystem::TypeId GetTypeId() const
Get the type id of this object.
Definition: DeleteRequest.h:82