MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
GiNaCDCR Struct Reference

#include <ginacdrive.h>

Inheritance diagram for GiNaCDCR:
Collaboration diagram for GiNaCDCR:

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 89 of file ginacdrive.h.

Member Function Documentation

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

Implements DriveCallerRead.

Definition at line 121 of file ginacdrive.cc.

References IncludeParser::GetLineData(), HighParser::GetStringWithDelims(), HighParser::IsKeyWord(), MBDYN_EXCEPT_ARGS, DataManager::pGetDrvHdl(), and SAFENEWWITHCONSTRUCTOR.

122 {
123  const DriveHandler* pDrvHdl = 0;
124  if (pDM != 0) {
125  pDrvHdl = pDM->pGetDrvHdl();
126  }
127 
128  std::string var;
129  if (HP.IsKeyWord("symbol")) {
130  var = HP.GetStringWithDelims();
131  if (var.empty()) {
132  silent_cerr("unable to read ginac drive caller symbol at line "
133  << HP.GetLineData() << std::endl);
135  }
136 
137  } else {
138  var = "Var";
139  }
140 
141  std::string expression = HP.GetStringWithDelims();
142  if (expression.empty()) {
143  silent_cerr("unable to read ginac drive caller expression at line "
144  << HP.GetLineData() << std::endl);
146  }
147 
148  DriveCaller *pDC = 0;
151  GiNaCDriveCaller(pDrvHdl, var, expression));
152 
153  return pDC;
154 }
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
const DriveHandler * pGetDrvHdl(void) const
Definition: dataman.h:340
virtual bool IsKeyWord(const char *sKeyWord)
Definition: parser.cc:910
virtual const char * GetStringWithDelims(enum Delims Del=DEFAULTDELIM, bool escape=true)
Definition: parser.cc:1228
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
Definition: mynewmem.h:698
virtual HighParser::ErrOut GetLineData(void) const
Definition: parsinc.cc:697

Here is the call graph for this function:


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