Class CTimeGate

Nested Relationships

Nested Types

Class Documentation

class CTimeGate

Public Types

enum eTimeSyncMode

Values:

enumerator none
enumerator realtime
enumerator replay

Public Functions

CTimeGate()
~CTimeGate()
void Start(enum eTimeSyncMode sync_mode_)
void Stop()
const std::string &GetName() const
long long GetMicroSeconds()
long long GetNanoSeconds()
bool SetNanoSeconds(long long time_)
bool IsSynchronized()
bool IsMaster()
void SleepForNanoseconds(long long duration_nsecs_)
void GetStatus(int &error_, std::string *status_message_)
bool IsValid()
inline eTimeSyncMode GetSyncMode()

Protected Functions

bool LoadModule(const std::string &interface_name_, STimeDllInterface &interface_)

Protected Attributes

std::string m_time_sync_modname
std::atomic<bool> m_is_initialized_rt
std::atomic<bool> m_is_initialized_replay
std::atomic<bool> m_successfully_loaded_rt
std::atomic<bool> m_successfully_loaded_replay
eTimeSyncMode m_sync_mode
STimeDllInterface m_time_sync_rt
STimeDllInterface m_time_sync_replay

Protected Static Attributes

static std::atomic<bool> m_created
struct STimeDllInterface

Public Functions

inline STimeDllInterface()

Public Members

void *module_handle
std::string module_name
etime_initialize etime_initialize_ptr
etime_finalize etime_finalize_ptr
etime_get_nanoseconds etime_get_nanoseconds_ptr
etime_set_nanoseconds etime_set_nanoseconds_ptr
etime_is_synchronized etime_is_synchronized_ptr
etime_is_master etime_is_master_ptr
etime_sleep_for_nanoseconds etime_sleep_for_nanoseconds_ptr
etime_get_status etime_get_status_ptr