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 #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 Dob
33 {
34 
35  class PersistenceParameters; //forward declaration
36  typedef boost::shared_ptr<PersistenceParameters> PersistenceParametersPtr;
37  typedef boost::shared_ptr<const PersistenceParameters> PersistenceParametersConstPtr;
38 
41 
47  {
48  public:
49  //Constructors and Create routines
51  virtual Safir::Dob::Typesystem::ObjectPtr Clone() const;
52  static PersistenceParametersPtr Create();
53 
54  //SystemHasPersistence
58  static bool SystemHasPersistence();
59 
60  //Backend
65 
66  //FileStoragePath
70  static std::wstring FileStoragePath();
71 
72  //OdbcStorageConnectString
76  static std::wstring OdbcStorageConnectString();
77 
78  //XmlDataColumnSize
82  static Safir::Dob::Typesystem::Int32 XmlDataColumnSize();
83 
84  //BinaryDataColumnSize
88  static Safir::Dob::Typesystem::Int32 BinaryDataColumnSize();
89 
90  //BinarySmallDataColumnSize
94  static Safir::Dob::Typesystem::Int32 BinarySmallDataColumnSize();
95 
96  //TypeNameColumnSize
100  static Safir::Dob::Typesystem::Int32 TypeNameColumnSize();
101 
102  //StandaloneMode
109  static bool StandaloneMode();
110 
111  //TestMode
115  static bool TestMode();
116 
118  static const Safir::Dob::Typesystem::TypeId ClassTypeId = 8276373340234567943LL;
119 
120  //Type id for PersistenceParameters
121  virtual Safir::Dob::Typesystem::TypeId GetTypeId() const {return ClassTypeId;}
122 
123  //Check if anything in the object has change flags set
124  virtual bool IsChanged();
125 
126  //Recursively set all change flags in the object
127  virtual void SetChanged(const bool changed);
128 
129 
130  //Reflection part (Don't use unless you really know what you're doing!!)
133  virtual const Safir::Dob::Typesystem::ContainerBase & GetMember(const Safir::Dob::Typesystem::MemberIndex member,
134  const Safir::Dob::Typesystem::ArrayIndex index) const;
135 
136  virtual Safir::Dob::Typesystem::Int32 CalculateBlobSize() const;
137  virtual void WriteToBlob(char * blob, char * & beginningOfUnused) const;
138  explicit PersistenceParameters(char const * const blob);
139 
140  private:
141 
142 #ifdef _MSC_VER
143 #pragma warning (push)
144 #pragma warning (disable : 4251)
145 #endif
146 
147 
148 #ifdef _MSC_VER
149 #pragma warning (pop)
150 #endif
151  };
152 
153 } // Dob
154 } // Safir
155 
156 #endif
157 
Enumeration
Definition: PersistenceBackend.h:37
This class has no summary.
Definition: PersistenceParameters.h:46
boost::shared_ptr< const PersistenceParameters > PersistenceParametersConstPtr
Definition: PersistenceParameters.h:37
boost::shared_ptr< PersistenceParameters > PersistenceParametersPtr
Definition: PersistenceParameters.h:35
DotsC_TypeId TypeId
A unique type identifier.
Definition: Defs.h:219
Safir::Dob::Typesystem::ArrayContainer< PersistenceParametersContainer > PersistenceParametersContainerArray
Definition: PersistenceParameters.h:40
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: Defs.h:247
This class is intended to be used as baseclass for classes that only contains parameters.
Definition: Parametrization.h:43
virtual Safir::Dob::Typesystem::TypeId GetTypeId() const
Get the type id of this object.
Definition: PersistenceParameters.h:121
Base class for all Containers.
Definition: ContainerBase.h:41
static const Safir::Dob::Typesystem::TypeId Checksum
Definition: PersistenceBackend.h:55
Safir::Dob::Typesystem::ObjectContainerImpl< PersistenceParameters > PersistenceParametersContainer
Definition: PersistenceParameters.h:39
#define DOTS_GENERATED_Safir_API
Definition: PersistenceParameters.h:18
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
static bool IsChanged(const ContainerBase &container)
Check if a container is changed.
Definition: ContainerBase.h:134