9 #ifndef CMZN_TIMEKEEPER_HPP__    10 #define CMZN_TIMEKEEPER_HPP__    12 #include "opencmiss/zinc/timekeeper.h"    13 #include "opencmiss/zinc/context.hpp"    21 class TimenotifierRegular;
    44     cmzn_timekeeper_id id;
    52     explicit Timekeeper(cmzn_timekeeper_id in_timekeeper_id) :
    57         id(cmzn_timekeeper_access(timeKeeper.id))
    62         cmzn_timekeeper_id temp_id = cmzn_timekeeper_access(timeKeeper.id);
    65             cmzn_timekeeper_destroy(&
id);
    75             cmzn_timekeeper_destroy(&
id);
   135         return cmzn_timekeeper_get_maximum_time(
id);
   147         return cmzn_timekeeper_set_maximum_time(
id, maximumTime);
   157         return cmzn_timekeeper_get_minimum_time(
id);
   169         return cmzn_timekeeper_set_minimum_time(
id, minimumTime);
   179         return cmzn_timekeeper_get_time(
id);
   191         return cmzn_timekeeper_set_time(
id, time);
   211         return cmzn_timekeeper_get_next_callback_time(
id,
   212             static_cast<cmzn_timekeeper_play_direction>(playDirection));
   225     cmzn_timekeepermodule_id id;
   233     explicit Timekeepermodule(cmzn_timekeepermodule_id in_timekeepermodule_id) :
   234         id(in_timekeepermodule_id)
   238         id(cmzn_timekeepermodule_access(timekeeperModule.id))
   243         cmzn_timekeepermodule_id temp_id = cmzn_timekeepermodule_access(
   244             timekeeperModule.id);
   246             cmzn_timekeepermodule_destroy(&
id);
   254             cmzn_timekeepermodule_destroy(&
id);
   272     cmzn_timekeepermodule_id 
getId()
 const   284         return Timekeeper(cmzn_timekeepermodule_get_default_timekeeper(
id));
   296         return cmzn_timekeepermodule_read_description(this->
id, description);
   308         return cmzn_timekeepermodule_write_description(this->
id);
 TimenotifierRegular createTimenotifierRegular(double updateFrequency, double timeOffset)
Definition: timenotifier.hpp:325
 
double getMaximumTime()
Definition: timekeeper.hpp:133
 
int setMaximumTime(double maximumTime)
Definition: timekeeper.hpp:145
 
cmzn_timekeeper_id getId() const 
Definition: timekeeper.hpp:109
 
A derived timenotifier type which requests notifications at regular intervals. 
Definition: timenotifier.hpp:264
 
double getTime()
Definition: timekeeper.hpp:177
 
The timekeeper synchronises a current time across Zinc objects. 
Definition: timekeeper.hpp:41
 
PlayDirection
Definition: timekeeper.hpp:84
 
bool isValid() const 
Definition: timekeeper.hpp:262
 
double getNextCallbackTime(enum PlayDirection playDirection)
Definition: timekeeper.hpp:209
 
int setMinimumTime(double minimumTime)
Definition: timekeeper.hpp:167
 
Definition: timekeeper.hpp:88
 
Timekeepermodule getTimekeepermodule()
Definition: timekeeper.hpp:313
 
Definition: timekeeper.hpp:86
 
char * writeDescription()
Definition: timekeeper.hpp:306
 
int readDescription(const char *description)
Definition: timekeeper.hpp:294
 
int setTime(double time)
Definition: timekeeper.hpp:189
 
Module for finding and managing timekeepers. 
Definition: timekeeper.hpp:222
 
The OpenCMISS namespace. 
Definition: context.hpp:20
 
double getMinimumTime()
Definition: timekeeper.hpp:155
 
Definition: timekeeper.hpp:90
 
cmzn_timekeepermodule_id getId() const 
Definition: timekeeper.hpp:272
 
Timekeeper getDefaultTimekeeper()
Definition: timekeeper.hpp:282
 
bool isValid() const 
Definition: timekeeper.hpp:99