Safir SDK Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PersistenceParameters.h
Go to the documentation of this file.
1 #ifndef SAFIR_DOB_PERSISTENCEPARAMETERS_H_INCLUDED
2 #define SAFIR_DOB_PERSISTENCEPARAMETERS_H_INCLUDED
3 
8 
12 
13 #ifdef _MSC_VER
14 #ifdef DOTS_GENERATED_CPP_EXPORTS
15 #define GENERATED_API __declspec(dllexport)
16 #else
17 #define GENERATED_API __declspec(dllimport)
18 #ifdef _DEBUG
19 #pragma comment( lib, "dots_generated-Safir-cppd.lib" )
20 #else
21 #pragma comment( lib, "dots_generated-Safir-cpp.lib" )
22 #endif
23 #endif
24 #endif
25 #ifdef __GNUC__
26 #define GENERATED_API
27 #endif
28 
32 namespace Safir
33 {
37 namespace Dob
38 {
39 
40  class PersistenceParameters; //forward declaration
41  typedef boost::shared_ptr<PersistenceParameters> PersistenceParametersPtr;
42  typedef boost::shared_ptr<const PersistenceParameters> PersistenceParametersConstPtr;
43 
46 
52  {
53  public:
54  //Constructors and Create routines
56  virtual Safir::Dob::Typesystem::ObjectPtr Clone() const;
57  static PersistenceParametersPtr Create();
58 
59  //SystemHasPersistence
63  static bool SystemHasPersistence();
64 
65  //Backend
70 
71  //FileStoragePath
75  static std::wstring FileStoragePath();
76 
77  //OdbcStorageConnectString
81  static std::wstring OdbcStorageConnectString();
82 
83  //XmlDataColumnSize
87  static Safir::Dob::Typesystem::Int32 XmlDataColumnSize();
88 
89  //BinaryDataColumnSize
93  static Safir::Dob::Typesystem::Int32 BinaryDataColumnSize();
94 
95  //BinarySmallDataColumnSize
99  static Safir::Dob::Typesystem::Int32 BinarySmallDataColumnSize();
100 
101  //TypeNameColumnSize
105  static Safir::Dob::Typesystem::Int32 TypeNameColumnSize();
106 
107  //StandaloneMode
114  static bool StandaloneMode();
115 
116  //TestMode
120  static bool TestMode();
121 
123  static const Safir::Dob::Typesystem::TypeId ClassTypeId = 8276373340234567943LL;
124 
125  //Type id for PersistenceParameters
126  virtual Safir::Dob::Typesystem::TypeId GetTypeId() const {return ClassTypeId;}
127 
128  //Check if anything in the object has change flags set
129  virtual bool IsChanged();
130 
131  //Recursively set all change flags in the object
132  virtual void SetChanged(const bool changed);
133 
134 
135  //Reflection part (Don't use unless you really know what you're doing!!)
138  virtual const Safir::Dob::Typesystem::ContainerBase & GetMember(const Safir::Dob::Typesystem::MemberIndex member,
139  const Safir::Dob::Typesystem::ArrayIndex index) const;
140 
141  virtual Safir::Dob::Typesystem::Int32 CalculateBlobSize() const;
142  virtual void WriteToBlob(char * blob, char * & beginningOfUnused) const;
143  explicit PersistenceParameters(char const * const blob);
144 
145  private:
146 
147 #ifdef _MSC_VER
148 #pragma warning (push)
149 #pragma warning (disable : 4251)
150 #endif
151 
152 
153 #ifdef _MSC_VER
154 #pragma warning (pop)
155 #endif
156  };
157 
158 } // Dob
159 } // Safir
160 
161 #endif
162 
Enumeration
Definition: PersistenceBackend.h:42
This class has no summary.
Definition: PersistenceParameters.h:51
boost::shared_ptr< const PersistenceParameters > PersistenceParametersConstPtr
Definition: PersistenceParameters.h:42
boost::shared_ptr< PersistenceParameters > PersistenceParametersPtr
Definition: PersistenceParameters.h:40
DotsC_TypeId TypeId
A unique type identifier.
Definition: Dob/Typesystem/Defs.h:221
Safir::Dob::Typesystem::ArrayContainer< PersistenceParametersContainer > PersistenceParametersContainerArray
Definition: PersistenceParameters.h:45
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
virtual Safir::Dob::Typesystem::TypeId GetTypeId() const
Get the type id of this object.
Definition: PersistenceParameters.h:126
Base class for all Containers.
Definition: ContainerBase.h:41
static const Safir::Dob::Typesystem::TypeId Checksum
Definition: PersistenceBackend.h:60
Safir::Dob::Typesystem::ObjectContainerImpl< PersistenceParameters > PersistenceParametersContainer
Definition: PersistenceParameters.h:44
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
static bool IsChanged(const ContainerBase &container)
Check if a container is changed.
Definition: ContainerBase.h:134