Changeset 913 in Sophya for trunk/SophyaLib/SysTools/periodic.cc
- Timestamp:
- Apr 13, 2000, 5:58:41 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SysTools/periodic.cc
r241 r913 9 9 10 10 #include "periodic.h" 11 /*! 12 \class SOPHYA::Periodic 13 \ingroup SysTools 14 This class provide the service of calling a given function at 15 regular intervals. It can also be subclassed with the method 16 \b DoPeriodic redefined to perform a periodic action. 17 */ 11 18 12 19 /* --Methode-- */ 20 /*! Constructor with the definition of the interval (in seconds) 21 and an optional user action */ 13 22 Periodic::Periodic(int dt, UsPeriodicAction act, void * usp) 14 23 { … … 29 38 30 39 /* --Methode-- */ 40 /*! Sets the user action function and its data \c usp */ 31 41 void Periodic::SetAction(UsPeriodicAction act, void * usp) 32 42 { … … 36 46 37 47 /* --Methode-- */ 48 /*! Changes the interval \c dt specified in seconds */ 38 49 void Periodic::SetInterval(int dt) 39 50 { … … 44 55 45 56 /* --Methode-- */ 57 /*! Changes the interval \c dtms specified in milli-seconds */ 46 58 void Periodic::SetIntervalms(int dtms) 47 59 { … … 53 65 54 66 /* --Methode-- */ 67 /*! Activate the object */ 55 68 void Periodic::Start(int dt) 56 69 { … … 69 82 70 83 /* --Methode-- */ 84 /*! Deactivate the object */ 71 85 void Periodic::Stop() 72 86 { … … 86 100 87 101 /* --Methode-- */ 102 /*! This method should be redefined for sub-classes of Periodic 103 The default implementation calls the user action function */ 88 104 void Periodic::DoPeriodic() 89 105 {
Note:
See TracChangeset
for help on using the changeset viewer.