MBDyn-1.7.3
|
#include "mbconfig.h"
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <fstream>
#include "userelem.h"
#include "socketstream_out_elem.h"
#include "socketstreamdrive.h"
#include "bufmod.h"
#include "drive_.h"
#include "module-flightgear.h"
Go to the source code of this file.
Functions | |
int | module_init (const char *module_name, void *pdm, void *php) |
This function registers our user defined element for the math parser. More... | |
void | buildFieldsDescriptionFG (void) |
void | readFGStructuresFromFile (const char *filePath, std::string currentVersionLabel, FieldsDescriptionFG &fieldsDescriptionFG, int ¤tVersion) |
void | printOptionsOnTextFile (const char *fileName, FieldsDescriptionFG &fieldsDescriptionFG) |
void | buildFGBufCast (std::vector< BufCast * > &data, FieldsDescriptionFG &fieldsDescriptionFGInUse) |
BufCast * | buildOneFGBufCast (size_t &offset, TypeMap_t &swapmap, const std::type_info &fieldType) |
void buildFGBufCast | ( | std::vector< BufCast * > & | data, |
FieldsDescriptionFG & | fieldsDescriptionFGInUse | ||
) |
Definition at line 312 of file module-flightgear.cc.
References bIsLittleEndian(), buildOneFGBufCast(), and SwapMapInit().
Referenced by FlightGearStreamOutputReader::buildFGStreamContentModifier(), and FlightGearFileDriveReader::buildFGStreamDriveModifier().
void buildFieldsDescriptionFG | ( | void | ) |
Definition at line 91 of file module-flightgear.cc.
References fieldsDescriptionFGNetCtrls, fieldsDescriptionFGNetFDM, and readFGStructuresFromFile().
Referenced by module_init().
BufCast* buildOneFGBufCast | ( | size_t & | offset, |
TypeMap_t & | swapmap, | ||
const std::type_info & | fieldType | ||
) |
Definition at line 328 of file module-flightgear.cc.
Referenced by buildFGBufCast().
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 59 of file module-flightgear.cc.
References buildFieldsDescriptionFG(), pHP, setFileDriveCallerType(), SetFileDriveContentType(), and SetStreamOutputContentType().
void printOptionsOnTextFile | ( | const char * | fileName, |
FieldsDescriptionFG & | fieldsDescriptionFG | ||
) |
Definition at line 292 of file module-flightgear.cc.
References MBDYN_EXCEPT_ARGS.
Referenced by FlightGearStreamOutputReader::Read(), and FlightGearFileDriveReader::Read().
void readFGStructuresFromFile | ( | const char * | filePath, |
std::string | currentVersionLabel, | ||
FieldsDescriptionFG & | fieldsDescriptionFG, | ||
int & | currentVersion | ||
) |
Definition at line 97 of file module-flightgear.cc.
References MBDYN_EXCEPT_ARGS.
Referenced by buildFieldsDescriptionFG().
int FGNetCtrlsCurVersion |
Definition at line 56 of file module-flightgear.cc.
Referenced by FlightGearStreamOutputReader::setDefaultValues().
FGNetCtrlsWordSet fGNetCtrlsWordSet |
Definition at line 51 of file module-flightgear.cc.
Referenced by FlightGearStreamOutputReader::Read(), FlightGearFileDriveCallerTypeReader::Read(), and FlightGearStreamOutputReader::setDefaultValues().
int FGNetFDMCurVersion |
Definition at line 55 of file module-flightgear.cc.
Referenced by FlightGearStreamOutputReader::setDefaultValues().
FGNetFDMWordSet fGNetFDMWordSet |
Definition at line 50 of file module-flightgear.cc.
Referenced by FlightGearStreamOutputReader::Read(), FlightGearFileDriveCallerTypeReader::Read(), and FlightGearStreamOutputReader::setDefaultValues().
FieldsDescriptionFG fieldsDescriptionFGNetCtrls |
Definition at line 54 of file module-flightgear.cc.
Referenced by FlightGearFileDriveReader::buildFGStreamDriveModifier(), buildFieldsDescriptionFG(), FGNetCtrlsWordSet::IsWord(), FlightGearStreamOutputReader::Read(), FlightGearFileDriveReader::Read(), and FlightGearFileDriveCallerTypeReader::Read().
FieldsDescriptionFG fieldsDescriptionFGNetFDM |