All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
DriveHandler::MyMeter Class Reference
Inheritance diagram for DriveHandler::MyMeter:
Collaboration diagram for DriveHandler::MyMeter:

Public Member Functions

 MyMeter (unsigned int uLabel, integer iS=1)
virtual ~MyMeter (void)
integer iGetSteps (void) const
bool bGetMeter (void) const
virtual void Set (void)
- Public Member Functions inherited from WithLabel
 WithLabel (unsigned int uL=0, const std::string &sN="")
virtual ~WithLabel (void)
void PutLabel (unsigned int uL)
void PutName (const std::string &sN)
unsigned int GetLabel (void) const
const std::string & GetName (void) const

Protected Attributes

integer iSteps
integer iCurr
- Protected Attributes inherited from WithLabel
unsigned int uLabel
std::string sName

Detailed Description

Definition at line 198 of file drive.h.

Constructor & Destructor Documentation

DriveHandler::MyMeter::MyMeter ( unsigned int  uLabel,
integer  iS = 1 

Definition at line 414 of file drive.cc.

References NO_OP.

415 : WithLabel(uLabel), iSteps(iS), iCurr(0)
416 {
417  NO_OP;
418 }
#define NO_OP
Definition: myassert.h:74
unsigned int uLabel
Definition: withlab.h:44
WithLabel(unsigned int uL=0, const std::string &sN="")
Definition: withlab.cc:38
DriveHandler::MyMeter::~MyMeter ( void  )

Definition at line 420 of file drive.cc.

References NO_OP.

421 {
422  NO_OP;
423 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

bool DriveHandler::MyMeter::bGetMeter ( void  ) const

Definition at line 331 of file drive.h.

332 {
333  return iCurr == 0;
334 }
integer DriveHandler::MyMeter::iGetSteps ( void  ) const

Definition at line 324 of file drive.h.

325 {
326  return iSteps;
327 }
void DriveHandler::MyMeter::Set ( void  )

Reimplemented in DriveHandler::MyRand.

Definition at line 338 of file drive.h.

339 {
340  if (++iCurr == iSteps) {
341  iCurr = 0;
342  }
343 }

Member Data Documentation

integer DriveHandler::MyMeter::iCurr

Definition at line 201 of file drive.h.

integer DriveHandler::MyMeter::iSteps

Definition at line 200 of file drive.h.

The documentation for this class was generated from the following files: