Changeset 913 in Sophya for trunk/SophyaLib/SysTools/periodic.cc


Ignore:
Timestamp:
Apr 13, 2000, 5:58:41 PM (25 years ago)
Author:
ansari
Message:

Documentation + Modifs mineures (namespace, etc..) - Reza 13/4/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SysTools/periodic.cc

    r241 r913  
    99
    1010#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*/
    1118
    1219/* --Methode-- */
     20/*! Constructor with the definition of the interval (in seconds)
     21  and an optional user action */
    1322Periodic::Periodic(int dt, UsPeriodicAction act, void * usp)
    1423{
     
    2938
    3039/* --Methode-- */
     40/*! Sets the user action function and its data \c usp */
    3141void Periodic::SetAction(UsPeriodicAction act, void * usp)
    3242{
     
    3646
    3747/* --Methode-- */
     48/*! Changes the interval \c dt specified in seconds */
    3849void Periodic::SetInterval(int dt)
    3950{
     
    4455
    4556/* --Methode-- */
     57/*! Changes the interval \c dtms specified in milli-seconds */
    4658void Periodic::SetIntervalms(int dtms)
    4759{
     
    5365
    5466/* --Methode-- */
     67/*! Activate the object */
    5568void Periodic::Start(int dt)
    5669{
     
    6982
    7083/* --Methode-- */
     84/*! Deactivate the object */
    7185void Periodic::Stop()
    7286{
     
    86100
    87101/* --Methode-- */
     102/*! This method should be redefined for sub-classes of Periodic
     103  The default implementation calls the user action function */
    88104void Periodic::DoPeriodic()
    89105{
Note: See TracChangeset for help on using the changeset viewer.