Safir SDK Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PersistentDataReady.h
Go to the documentation of this file.
1 #ifndef SAFIR_DOB_PERSISTENTDATAREADY_H_INCLUDED
2 #define SAFIR_DOB_PERSISTENTDATAREADY_H_INCLUDED
3 
8 
9 #include <Safir/Dob/Service.h>
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 PersistentDataReady; //forward declaration
39  typedef boost::shared_ptr<PersistentDataReady> PersistentDataReadyPtr;
40  typedef boost::shared_ptr<const PersistentDataReady> PersistentDataReadyConstPtr;
41 
44 
49  class GENERATED_API PersistentDataReady : public Safir::Dob::Service
50  {
51  public:
52  //Constructors and Create routines
54  virtual Safir::Dob::Typesystem::ObjectPtr Clone() const;
55  static PersistentDataReadyPtr Create();
56 
58  static const Safir::Dob::Typesystem::TypeId ClassTypeId = -541049774038136621LL;
59 
60  //Type id for PersistentDataReady
61  virtual Safir::Dob::Typesystem::TypeId GetTypeId() const {return ClassTypeId;}
62 
63  //Check if anything in the object has change flags set
64  virtual bool IsChanged();
65 
66  //Recursively set all change flags in the object
67  virtual void SetChanged(const bool changed);
68 
69 
70  //Reflection part (Don't use unless you really know what you're doing!!)
74  const Safir::Dob::Typesystem::ArrayIndex index) const;
75 
76  virtual Safir::Dob::Typesystem::Int32 CalculateBlobSize() const;
77  virtual void WriteToBlob(char * blob, char * & beginningOfUnused) const;
78  explicit PersistentDataReady(char const * const blob);
79 
80  private:
81 
82 #ifdef _MSC_VER
83 #pragma warning (push)
84 #pragma warning (disable : 4251)
85 #endif
86 
87 
88 #ifdef _MSC_VER
89 #pragma warning (pop)
90 #endif
91  };
92 
93 } // Dob
94 } // Safir
95 
96 #endif
97 
boost::shared_ptr< const PersistentDataReady > PersistentDataReadyConstPtr
Definition: PersistentDataReady.h:40
This service is called by the persistency handler when the persistent data has been fed to the Dob...
Definition: PersistentDataReady.h:49
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< PersistentDataReady > PersistentDataReadyPtr
Definition: PersistentDataReady.h:38
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
The baseclass for all services.
Definition: Service.h:48
Base class for all Containers.
Definition: ContainerBase.h:41
Safir::Dob::Typesystem::ArrayContainer< PersistentDataReadyContainer > PersistentDataReadyContainerArray
Definition: PersistentDataReady.h:43
virtual Safir::Dob::Typesystem::TypeId GetTypeId() const
Get the type id of this object.
Definition: PersistentDataReady.h:61
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< PersistentDataReady > PersistentDataReadyContainer
Definition: PersistentDataReady.h:42
static bool IsChanged(const ContainerBase &container)
Check if a container is changed.
Definition: ContainerBase.h:134