MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
module-multi_step_drive.cc File Reference
#include <limits>
#include <vector>
#include <drive.h>
#include <myassert.h>
#include <except.h>
#include <dataman.h>
#include "module-multi_step_drive.h"
Include dependency graph for module-multi_step_drive.cc:

Go to the source code of this file.

Classes

class  MultiStepDrive
 
struct  MultiStepDrive::StepRecord
 
struct  MultiStepDriveDCR
 

Functions

bool multi_step_drive_set ()
 
int module_init (const char *module_name, void *pdm, void *php)
 This function registers our user defined element for the math parser. More...
 

Function Documentation

int module_init ( const char *  module_name,
void *  pdm,
void *  php 
)

This function registers our user defined element for the math parser.

It is called when the "module load" statement appears in the input file.

Definition at line 227 of file module-multi_step_drive.cc.

References switch_drive_set().

228 {
229  if (!switch_drive_set()) {
230  silent_cerr("multi_step_drive: "
231  "module_init(" << module_name << ") "
232  "failed" << std::endl);
233  return -1;
234  }
235 
236  return 0;
237 }
bool switch_drive_set()

Here is the call graph for this function:

bool multi_step_drive_set ( )

Definition at line 212 of file module-multi_step_drive.cc.

References SetDriveCallerData().

213 {
215 
216  if (!SetDriveCallerData("multi" "step", rf)) {
217  delete rf;
218  return false;
219  }
220 
221  return true;
222 }
bool SetDriveCallerData(const char *name, DriveCallerRead *rf)
Definition: drive_.cc:1324

Here is the call graph for this function: