All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
LinearDCR Struct Reference
Inheritance diagram for LinearDCR:
Collaboration diagram for LinearDCR:

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

Member Function Documentation

DriveCaller * LinearDCR::Read ( const DataManager pDM,
MBDynParser HP,
bool  bDeferred 

Implements DriveCallerRead.

Definition at line 1616 of file drive_.cc.

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

1617 {
1618  NeedDM(pDM, HP, bDeferred, "linear");
1620  const DriveHandler* pDrvHdl = 0;
1621  if (pDM != 0) {
1622  pDrvHdl = pDM->pGetDrvHdl();
1623  }
1625  DriveCaller *pDC = 0;
1627  /* lettura dei dati specifici */
1628  doublereal dC0 = HP.GetReal();
1629  DEBUGCOUT("Offset: " << dC0 << std::endl);
1631  doublereal dC1 = HP.GetReal();
1632  DEBUGCOUT("Slope: " << dC1 << std::endl);
1634  /* allocazione e creazione */
1637  LinearDriveCaller(pDrvHdl, dC0, dC1));
1639  return pDC;
1640 }
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: