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

Go to the source code of this file.

Classes

class  NodeDistDriveCaller
 
struct  NodeDistDCR
 

Functions

bool nodedistdrive_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 275 of file module-nodedistdrive.cc.

References nodedistdrive_set().

276 {
277  if (!nodedistdrive_set()) {
278  silent_cerr("nodedistdrive: "
279  "module_init(" << module_name << ") "
280  "failed" << std::endl);
281  return -1;
282  }
283 
284  return 0;
285 }
bool nodedistdrive_set()

Here is the call graph for this function:

bool nodedistdrive_set ( )

Definition at line 260 of file module-nodedistdrive.cc.

References SetDriveCallerData().

Referenced by InitDriveCallerData(), and module_init().

261 {
262  DriveCallerRead *rf = new NodeDistDCR;
263 
264  if (!SetDriveCallerData("node" "distance", rf)) {
265  delete rf;
266  return false;
267  }
268 
269  return true;
270 }
bool SetDriveCallerData(const char *name, DriveCallerRead *rf)
Definition: drive_.cc:1324

Here is the call graph for this function: