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

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 2771 of file drive_.cc.

Member Function Documentation

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

Implements DriveCallerRead.

Definition at line 2777 of file drive_.cc.

References MBDynParser::GetDriveCaller(), HighParser::GetReal(), HighParser::IsKeyWord(), DataManager::pGetDrvHdl(), and SAFENEWWITHCONSTRUCTOR.

2778 {
2779  const DriveHandler* pDrvHdl = 0;
2780  if (pDM != 0) {
2781  pDrvHdl = pDM->pGetDrvHdl();
2782  }
2783 
2784  DriveCaller *pDC = 0;
2785 
2786  DriveCaller *pFunc = HP.GetDriveCaller(bDeferred);
2787  DriveCaller *pTrigger = HP.GetDriveCaller(bDeferred);
2788 
2789  doublereal dVal0 = 0.;
2790  if (HP.IsKeyWord("initial" "value")) {
2791  dVal0 = HP.GetReal();
2792  }
2793 
2795  SHDriveCaller,
2796  SHDriveCaller(pDrvHdl, pFunc, pTrigger, dVal0));
2797 
2798  return pDC;
2799 }
const DriveHandler * pGetDrvHdl(void) const
Definition: dataman.h:340
virtual bool IsKeyWord(const char *sKeyWord)
Definition: parser.cc:910
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
Definition: mynewmem.h:698
DriveCaller * GetDriveCaller(bool bDeferred=false)
Definition: mbpar.cc:2033
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: