Safir SDK Core
|
Defines parameters for the time provider library. More...
#include <Safir/Time/LibraryParameters.h>
Public Member Functions | |
LibraryParameters () | |
virtual Safir::Dob::Typesystem::ObjectPtr | Clone () const |
Create a copy of the object. More... | |
virtual Safir::Dob::Typesystem::TypeId | GetTypeId () const |
Get the type id of this object. More... | |
virtual bool | IsChanged () |
Check if any member of this object is changed. More... | |
virtual void | SetChanged (const bool changed) |
Recursively set change flags in all members of this object. More... | |
virtual Safir::Dob::Typesystem::ContainerBase & | GetMember (const Safir::Dob::Typesystem::MemberIndex member, const Safir::Dob::Typesystem::ArrayIndex index) |
Get a reference to a member container from an object. More... | |
virtual const Safir::Dob::Typesystem::ContainerBase & | GetMember (const Safir::Dob::Typesystem::MemberIndex member, const Safir::Dob::Typesystem::ArrayIndex index) const |
Get a const reference to a member container from an object. More... | |
virtual Safir::Dob::Typesystem::Int32 | CalculateBlobSize () const |
Calculate the size of the blob-serialized form of this object. More... | |
virtual void | WriteToBlob (char *blob, char *&beginningOfUnused) const |
Write the object to a blob. More... | |
LibraryParameters (char const *const blob) | |
Public Member Functions inherited from Safir::Dob::Parametrization | |
Parametrization () | |
Parametrization (char const *const blob) | |
Public Member Functions inherited from Safir::Dob::Typesystem::Object | |
Object () | |
Default constructor. More... | |
virtual | ~Object () |
Virtual destructor. More... | |
Object (char const *const blob) | |
Create an Object from a blob. More... | |
Static Public Member Functions | |
static LibraryParametersPtr | Create () |
static std::wstring | LibraryName () |
The name of the library that is the time provider in the system. More... | |
static std::wstring | UtcTimeFunctionName () |
The name of the function that returns current UTC time. More... | |
static std::wstring | LocalTimeOffsetFunctionName () |
The name of the function that returns local time offset. More... | |
Static Public Member Functions inherited from Safir::Dob::Parametrization | |
static ParametrizationPtr | Create () |
Static Public Member Functions inherited from Safir::Dob::Typesystem::Object | |
static Dob::Typesystem::ObjectPtr | Create () |
Creates a new Object. More... | |
Static Public Attributes | |
static const Safir::Dob::Typesystem::TypeId | ClassTypeId = 6901723808460309067LL |
Type id for LibraryParameters. More... | |
Static Public Attributes inherited from Safir::Dob::Parametrization | |
static const Safir::Dob::Typesystem::TypeId | ClassTypeId = 8075666004421608370LL |
Type id for Parametrization. More... | |
Static Public Attributes inherited from Safir::Dob::Typesystem::Object | |
static const Dob::Typesystem::TypeId | ClassTypeId = 5955188366590963785LL |
The TypeId of the Object class. More... | |
Defines parameters for the time provider library.
Safir::Time::LibraryParameters::LibraryParameters | ( | ) |
|
explicit |
|
virtual |
Calculate the size of the blob-serialized form of this object.
Reimplemented from Safir::Dob::Parametrization.
|
virtual |
Create a copy of the object.
Will create a copy of the object on the heap and return a smart pointer to it. Use boost::static_pointer_cast or boost::dynamic_pointer_cast to cast it to the pointer type that you're after.
Reimplemented from Safir::Dob::Parametrization.
|
static |
|
virtual |
Get a reference to a member container from an object.
Use the methods in Members to get member indices and array sizes for use with this method.
Note: Do not use this method unless you're very sure it is the one you need!
member | [in] - The index of the member to get. |
index | [in] - The array index of the member to get. |
IllegalValueException | If the index is not in the range of the array. |
SoftwareViolationException | If the element is not an array and the index is not 0. |
Reimplemented from Safir::Dob::Parametrization.
|
virtual |
Get a const reference to a member container from an object.
Use the methods in Members to get member indices and array sizes for use with this method.
Note: Do not use this method unless you're very sure it is the one you need!
member | [in] - The index of the member to get. |
index | [in] - The array index of the member to get. |
IllegalValueException | If the index is not in the range of the array. |
SoftwareViolationException | If the element is not an array and the index is not 0. |
Reimplemented from Safir::Dob::Parametrization.
|
virtual |
Get the type id of this object.
Gets the type id of the object. Method is virtual to ensure that the right value gets returned for pointers or references.
Reimplemented from Safir::Dob::Parametrization.
|
virtual |
Check if any member of this object is changed.
This method will recursively check if any member of the object has its change flag set.
Reimplemented from Safir::Dob::Parametrization.
|
static |
The name of the library that is the time provider in the system.
If this parameter is empty the returned values will be based on boost date_time library.
|
static |
The name of the function that returns local time offset.
The named function has to return an int representing number of seconds relative to GMT
|
virtual |
Recursively set change flags in all members of this object.
changed | [in] - The value to set the change flags to |
Reimplemented from Safir::Dob::Parametrization.
|
static |
The name of the function that returns current UTC time.
The named function has to return a double representing seconds and fraction since jan 1 1970 00:00
|
virtual |
Write the object to a blob.
Note that the size of the blob is assumed to be correct! No checks are made!
blob | [in,out] - The blob to write to. |
beginningOfUnused | [in,out] - The beginning of unused dynamic blob space. |
Reimplemented from Safir::Dob::Parametrization.
|
static |
Type id for LibraryParameters.