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

Public Member Functions

DriveCallerRead (const DataManager *pDM, MBDynParser &HP, bool)
 
- 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 1582 of file drive_.cc.

Member Function Documentation

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

Implements DriveCallerRead.

Definition at line 1588 of file drive_.cc.

References DEBUGCOUT, HighParser::GetReal(), SAFENEW, and SAFENEWWITHCONSTRUCTOR.

1589 {
1590  DriveCaller *pDC = 0;
1591 
1592  /* lettura dei dati specifici */
1593  doublereal dConst = HP.GetReal();
1594  DEBUGCOUT("Const value: " << dConst << std::endl);
1595 
1596  /* allocazione e creazione */
1597  if (dConst == 0.) {
1598  SAFENEW(pDC, NullDriveCaller);
1599 
1600  } else if (dConst == 1.) {
1601  SAFENEW(pDC, OneDriveCaller);
1602 
1603  } else {
1605  }
1606 
1607  return pDC;
1608 }
#define SAFENEW(pnt, item)
Definition: mynewmem.h:695
#define DEBUGCOUT(msg)
Definition: myassert.h:232
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
Definition: mynewmem.h:698
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: