Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LibraryParameters.h
Go to the documentation of this file.
1 #ifndef SAFIR_TIME_LIBRARYPARAMETERS_H_INCLUDED
2 #define SAFIR_TIME_LIBRARYPARAMETERS_H_INCLUDED
3 
8 
10 
11 #include <Safir/Utilities/Internal/VisibilityHelpers.h>
12 
13 #ifdef dots_generated_Safir_cpp_EXPORTS
14 # define DOTS_GENERATED_Safir_API SAFIR_HELPER_DLL_EXPORT
15 #else
16 # define DOTS_GENERATED_Safir_API SAFIR_HELPER_DLL_IMPORT
17 # define SAFIR_LIBRARY_NAME "dots_generated-Safir-cpp"
18 # include <Safir/Utilities/Internal/AutoLink.h>
19 #endif
20 #define DOTS_GENERATED_Safir_API_LOCAL SAFIR_HELPER_DLL_LOCAL
21 
25 namespace Safir
26 {
30 namespace Time
31 {
32 
33  class LibraryParameters; //forward declaration
34  typedef boost::shared_ptr<LibraryParameters> LibraryParametersPtr;
35  typedef boost::shared_ptr<const LibraryParameters> LibraryParametersConstPtr;
36 
39 
45  {
46  public:
47  //Constructors and Create routines
49  virtual Safir::Dob::Typesystem::ObjectPtr Clone() const;
50  static LibraryParametersPtr Create();
51 
52  //LibraryName
57  static std::wstring LibraryName();
58 
59  //UtcTimeFunctionName
64  static std::wstring UtcTimeFunctionName();
65 
66  //LocalTimeOffsetFunctionName
71  static std::wstring LocalTimeOffsetFunctionName();
72 
74  static const Safir::Dob::Typesystem::TypeId ClassTypeId = 6901723808460309067LL;
75 
76  //Type id for LibraryParameters
77  virtual Safir::Dob::Typesystem::TypeId GetTypeId() const {return ClassTypeId;}
78 
79  //Check if anything in the object has change flags set
80  virtual bool IsChanged();
81 
82  //Recursively set all change flags in the object
83  virtual void SetChanged(const bool changed);
84 
85 
86  //Reflection part (Don't use unless you really know what you're doing!!)
90  const Safir::Dob::Typesystem::ArrayIndex index) const;
91 
92  virtual Safir::Dob::Typesystem::Int32 CalculateBlobSize() const;
93  virtual void WriteToBlob(char * blob, char * & beginningOfUnused) const;
94  explicit LibraryParameters(char const * const blob);
95 
96  private:
97 
98 #ifdef _MSC_VER
99 #pragma warning (push)
100 #pragma warning (disable : 4251)
101 #endif
102 
103 
104 #ifdef _MSC_VER
105 #pragma warning (pop)
106 #endif
107  };
108 
109 } // Time
110 } // Safir
111 
112 #endif
113 
boost::shared_ptr< const LibraryParameters > LibraryParametersConstPtr
Definition: LibraryParameters.h:35
virtual Safir::Dob::Typesystem::TypeId GetTypeId() const
Get the type id of this object.
Definition: LibraryParameters.h:77
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
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::ArrayContainer< LibraryParametersContainer > LibraryParametersContainerArray
Definition: LibraryParameters.h:38
This class is intended to be used as baseclass for classes that only contains parameters.
Definition: Parametrization.h:43
Base class for all Containers.
Definition: ContainerBase.h:41
Safir::Dob::Typesystem::ObjectContainerImpl< LibraryParameters > LibraryParametersContainer
Definition: LibraryParameters.h:37
boost::shared_ptr< LibraryParameters > LibraryParametersPtr
Definition: LibraryParameters.h:33
#define DOTS_GENERATED_Safir_API
Definition: LibraryParameters.h:16
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
Defines parameters for the time provider library.
Definition: LibraryParameters.h:44