MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Drive Class Referenceabstract

#include <drive.h>

Inheritance diagram for Drive:
Collaboration diagram for Drive:

Public Types

enum  Type { UNKNOWN = -1, FILEDRIVE = 0, LASTDRIVETYPE }
 
enum  Bailout { BO_NONE = 0x0, BO_UPPER = 0x1, BO_LOWER = 0x2, BO_ANY = (BO_UPPER | BO_LOWER) }
 

Public Member Functions

 Drive (unsigned int uL, const DriveHandler *pDH)
 
virtual ~Drive (void)
 
virtual Drive::Type GetDriveType (void) const =0
 
virtual std::ostream & Restart (std::ostream &out) const =0
 
virtual void ServePending (const doublereal &t)=0
 
- 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

const DriveHandlerpDrvHdl
 
- Protected Attributes inherited from WithLabel
unsigned int uLabel
 
std::string sName
 

Static Protected Attributes

static doublereal dReturnValue = 0.
 

Detailed Description

Definition at line 89 of file drive.h.

Member Enumeration Documentation

Enumerator
BO_NONE 
BO_UPPER 
BO_LOWER 
BO_ANY 

Definition at line 101 of file drive.h.

101  {
102  BO_NONE = 0x0,
103  BO_UPPER = 0x1,
104  BO_LOWER = 0x2,
105  BO_ANY = (BO_UPPER | BO_LOWER)
106  };
Enumerator
UNKNOWN 
FILEDRIVE 
LASTDRIVETYPE 

Definition at line 92 of file drive.h.

92  {
93  UNKNOWN = -1,
94 
95  FILEDRIVE = 0,
96 
98  };

Constructor & Destructor Documentation

Drive::Drive ( unsigned int  uL,
const DriveHandler pDH 
)

Definition at line 43 of file drive.cc.

References NO_OP.

44 : WithLabel(uL), pDrvHdl(pDH)
45 {
46  NO_OP;
47 }
#define NO_OP
Definition: myassert.h:74
const DriveHandler * pDrvHdl
Definition: drive.h:109
WithLabel(unsigned int uL=0, const std::string &sN="")
Definition: withlab.cc:38
Drive::~Drive ( void  )
virtual

Definition at line 50 of file drive.cc.

References NO_OP.

50  {
51  NO_OP;
52 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

virtual Drive::Type Drive::GetDriveType ( void  ) const
pure virtual

Implemented in FileDrive.

virtual std::ostream& Drive::Restart ( std::ostream &  out) const
pure virtual
virtual void Drive::ServePending ( const doublereal t)
pure virtual

Member Data Documentation

doublereal Drive::dReturnValue = 0.
staticprotected

Definition at line 110 of file drive.h.

const DriveHandler* Drive::pDrvHdl
protected

Definition at line 109 of file drive.h.

Referenced by DriveCaller::dGet(), and DriveCaller::dGetP().


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