OpenDaVINCI  4.16.0
odcore::wrapper::TimeFactory Class Reference

#include <TimeFactory.h>

Inheritance diagram for odcore::wrapper::TimeFactory:
Inheritance graph

Public Member Functions

virtual ~TimeFactory ()
 
virtual std::shared_ptr
< odcore::wrapper::Time
now ()
 

Static Public Member Functions

static TimeFactorygetInstance ()
 

Protected Member Functions

 TimeFactory ()
 

Static Protected Member Functions

static void setSingleton (TimeFactory *tf)
 

Static Protected Attributes

static TimeFactoryinstance = NULL
 
static TimeFactorycontrolledInstance = NULL
 

Detailed Description

Factory for creating wrapped times (i.e. time data structures based on Win32, POSIX, ...).

It can be used as follows:

std::shared_ptr<Time> t(TimeFactory::getInstance().now());
...

Constructor & Destructor Documentation

odcore::wrapper::TimeFactory::~TimeFactory ( )
virtual
odcore::wrapper::TimeFactory::TimeFactory ( )
protected

References instance.

Referenced by getInstance().

Member Function Documentation

TimeFactory & odcore::wrapper::TimeFactory::getInstance ( )
static
void odcore::wrapper::TimeFactory::setSingleton ( TimeFactory tf)
staticprotected

Member Data Documentation

TimeFactory * odcore::wrapper::TimeFactory::controlledInstance = NULL
staticprotected

Referenced by getInstance(), now(), and setSingleton().

TimeFactory * odcore::wrapper::TimeFactory::instance = NULL
staticprotected

Referenced by getInstance(), and TimeFactory().