MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
StepDCR Struct Reference
Inheritance diagram for StepDCR:
Collaboration diagram for StepDCR:

Public Member Functions

DriveCallerRead (const DataManager *pDM, MBDynParser &HP, bool bDeferred)
 
- Public Member Functions inherited from DriveCallerRead
virtual ~DriveCallerRead (void)
 

Additional Inherited Members

- Static Public Member Functions inherited from DriveCallerRead
static void ReadOutput (DriveCaller *pDC, const DataManager *pDM, MBDynParser &HP)
 
- Protected Member Functions inherited from DriveCallerRead
void NeedDM (const DataManager *pDM, MBDynParser &HP, bool bDeferred, const char *const name)
 

Detailed Description

Definition at line 1729 of file drive_.cc.

Member Function Documentation

DriveCaller * StepDCR::Read ( const DataManager pDM,
MBDynParser HP,
bool  bDeferred 
)
virtual

Implements DriveCallerRead.

Definition at line 1735 of file drive_.cc.

References DEBUGCOUT, HighParser::GetReal(), DriveCallerRead::NeedDM(), DataManager::pGetDrvHdl(), and SAFENEWWITHCONSTRUCTOR.

1736 {
1737  NeedDM(pDM, HP, bDeferred, "step");
1738 
1739  const DriveHandler* pDrvHdl = 0;
1740  if (pDM != 0) {
1741  pDrvHdl = pDM->pGetDrvHdl();
1742  }
1743 
1744  DriveCaller *pDC = 0;
1745 
1746  doublereal dStepTime = HP.GetReal();
1747  DEBUGCOUT("Initial time: " << dStepTime << std::endl);
1748 
1749  doublereal dStepValue = HP.GetReal(1.);
1750  DEBUGCOUT("Step Value: " << dStepValue << std::endl);
1751 
1752  doublereal dInitialValue = HP.GetReal();
1753  DEBUGCOUT("InitialValue: " << dInitialValue << std::endl);
1754 
1757  StepDriveCaller(pDrvHdl, dStepTime, dStepValue, dInitialValue));
1758 
1759  return pDC;
1760 }
const DriveHandler * pGetDrvHdl(void) const
Definition: dataman.h:340
#define DEBUGCOUT(msg)
Definition: myassert.h:232
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
Definition: mynewmem.h:698
void NeedDM(const DataManager *pDM, MBDynParser &HP, bool bDeferred, const char *const name)
Definition: drive_.cc:1354
double doublereal
Definition: colamd.c:52
virtual doublereal GetReal(const doublereal &dDefval=0.0)
Definition: parser.cc:1056

Here is the call graph for this function:


The documentation for this struct was generated from the following file: