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

Go to the source code of this file.

Classes

class  MinMaxDriveCaller
 
class  MinDriveCaller
 
class  MaxDriveCaller
 
struct  MinMaxDriveDCR
 

Functions

bool minmaxdrive_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

bool minmaxdrive_set ( )

Definition at line 351 of file module-minmaxdrive.cc.

References MinMaxDriveDCR::MMD_MAX, MinMaxDriveDCR::MMD_MIN, and SetDriveCallerData().

Referenced by InitDriveCallerData(), and module_init().

352 {
354 
355  if (!SetDriveCallerData("min", rf)) {
356  delete rf;
357  return false;
358  }
359 
361 
362  if (!SetDriveCallerData("max", rf)) {
363  delete rf;
364  return false;
365  }
366 
367  return true;
368 }
bool SetDriveCallerData(const char *name, DriveCallerRead *rf)
Definition: drive_.cc:1324

Here is the call graph for this function:

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 373 of file module-minmaxdrive.cc.

References minmaxdrive_set().

374 {
375  if (!minmaxdrive_set()) {
376  silent_cerr("minmaxdrive: "
377  "module_init(" << module_name << ") "
378  "failed" << std::endl);
379  return -1;
380  }
381 
382  return 0;
383 }
bool minmaxdrive_set()

Here is the call graph for this function: