FEDEM Model Database  R8.0
Source code of the FEDEM model database
Namespaces | Typedefs | Functions
FmDB.H File Reference
#include <map>
#include <vector>
#include <string>
#include <iostream>
#include "FFaLib/FFaContainers/FFaField.H"
#include "FFaLib/FFaDefinitions/FFaVersionNumber.H"
#include "FFaLib/FFaDynCalls/FFaDynCB.H"
Include dependency graph for FmDB.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 FmDB
 

Typedefs

using FmDB::FmHeadMap = std::map< int, FmRingStart * >
 

Functions

void FmDB::init ()
 
void FmDB::removeInstances ()
 
void FmDB::initHeadMap (FmHeadMap &headMap, FmFuncTree *&funcTree)
 
void FmDB::sortHeadMap (const FmHeadMap &headMap, FmHeadMap &sortedHeadMap, bool reverse=false)
 
FmModelMemberBase * FmDB::createObject (int classTypeId)
 
FmMechanism * FmDB::newMechanism ()
 
FmRingStart * FmDB::getHead (int classTypeID)
 
FmRingStart * FmDB::getHead (int classTypeID, const std::vector< int > &assemblyID, const FmHeadMap *root=NULL)
 
bool FmDB::findIDrange (const FmBase *obj, int &fromID, int &toID)
 
FmBase * FmDB::findID (int type, int IDnr, const std::vector< int > &assemblyID={})
 
FmBase * FmDB::findID (const std::string &type, int IDnr, const std::vector< int > &assemblyID={})
 
void FmDB::getAllPaths (std::vector< FFaField< std::string > * > &allPathNames, const FmSubAssembly *subAss=NULL)
 
void FmDB::translateRelativePaths (const std::string &oldModelPath, const std::string &newModelPath, const FmSubAssembly *subAss=NULL)
 
bool FmDB::purgeJointComponents ()
 
bool FmDB::updateModelVersionOnSave (bool warnOnNewVersion)
 
bool FmDB::reportAll (std::ostream &os=std::cout, bool writeMetaData=true, const FmHeadMap *headMap=NULL, const char *metaData=NULL)
 
void FmDB::reportMembers (std::ostream &os, const FmHeadMap *headMap)
 
void FmDB::displayAll (const FmHeadMap *headMap=NULL)
 
bool FmDB::eraseAll (bool showProgress=false)
 
void FmDB::forAllInDB (FFaDynCB2< bool &, FmBase * > &toBeCalled4EachHead, FFaDynCB1< FmBase * > &toBeCalled4Each, const FmHeadMap *root=NULL)
 
int FmDB::getObjectCount (int type, const FmHeadMap *root=NULL)
 
void FmDB::getQuery (std::vector< FmModelMemberBase * > &toBeFilled, FmQuery *query)
 
bool FmDB::getAllOfType (std::vector< FmModelMemberBase * > &toBeFilled, int typeID, const FmSubAssembly *subAss=NULL, const char *tag=NULL)
 
bool FmDB::hasObjectsOfType (int typeID, const FmHeadMap *root=NULL)
 
void FmDB::getFEParts (std::vector< FmPart * > &toFill, bool reverseOrder=false)
 
void FmDB::getUnsavedParts (std::vector< FmPart * > &toFill)
 
void FmDB::getAllParts (std::vector< FmPart * > &toFill, const FmSubAssembly *subAss=NULL, bool thisLevelOnly=false)
 
void FmDB::getAllBeams (std::vector< FmBeam * > &toFill, const FmSubAssembly *subAss=NULL, bool thisLevelOnly=false)
 
void FmDB::getAllLinks (std::vector< FmLink * > &toFill, const FmSubAssembly *subAss=NULL, bool thisLevelOnly=false)
 
void FmDB::getAllTriads (std::vector< FmTriad * > &toFill, const FmSubAssembly *subAss=NULL, bool thisLevelOnly=false)
 
void FmDB::getAllFunctions (std::vector< FmMathFuncBase * > &toFill, const FmSubAssembly *subAss=NULL, bool thisLevelOnly=false)
 
void FmDB::getAllSplines (std::vector< FmfSpline * > &toFill)
 
void FmDB::getAllMultiVarFuncs (std::vector< FmfMultiVarBase * > &toFill)
 
void FmDB::getAllDeviceFunctions (std::vector< FmfDeviceFunction * > &toFill)
 
void FmDB::getAllJoints (std::vector< FmJointBase * > &toFill)
 
void FmDB::getAllHPs (std::vector< FmHPBase * > &toFill)
 
void FmDB::getAllGears (std::vector< FmGear * > &toFill)
 
void FmDB::getAllRackPinions (std::vector< FmRackPinion * > &toFill)
 
void FmDB::getAllCylJoints (std::vector< FmCylJoint * > &toFill)
 
void FmDB::getAllCamJoints (std::vector< FmCamJoint * > &toFill)
 
void FmDB::getAllRevJoints (std::vector< FmRevJoint * > &toFill)
 
void FmDB::getAllBallJoints (std::vector< FmBallJoint * > &toFill)
 
void FmDB::getAllFreeJoints (std::vector< FmFreeJoint * > &toFill)
 
void FmDB::getAllRigidJoints (std::vector< FmRigidJoint * > &toFill)
 
void FmDB::getAllPrismJoints (std::vector< FmPrismJoint * > &toFill)
 
void FmDB::getAllControlLines (std::vector< FmCtrlLine * > &toFill)
 
void FmDB::getAllLoads (std::vector< FmLoad * > &toFill)
 
void FmDB::getAllAxialSprings (std::vector< FmAxialSpring * > &toFill)
 
void FmDB::getAllJointSprings (std::vector< FmJointSpring * > &toFill)
 
void FmDB::getAllSpringChars (std::vector< FmSpringChar * > &toFill)
 
void FmDB::getAllAxialDampers (std::vector< FmAxialDamper * > &toFill)
 
void FmDB::getAllJointDampers (std::vector< FmJointDamper * > &toFill)
 
void FmDB::getAllSensors (std::vector< FmSensorBase * > &toFill)
 
void FmDB::getAllEngines (std::vector< FmEngine * > &engines)
 
void FmDB::getAllExternalCtrlSys (std::vector< FmExternalCtrlSys * > &toFill)
 
void FmDB::getAllRefPlanes (std::vector< FmRefPlane * > &toFill)
 
void FmDB::getAllStickers (std::vector< FmSticker * > &toFill)
 
void FmDB::getAllControlOutput (std::vector< FmcOutput * > &toFill)
 
void FmDB::getAllControlInput (std::vector< FmcInput * > &toFill)
 
void FmDB::getAllControlElements (std::vector< FmCtrlInputElementBase * > &toFill)
 
void FmDB::getAllBladeDesigns (std::vector< FmBladeDesign * > &toFill)
 
void FmDB::getAllSimulationEvents (std::vector< FmSimulationEvent * > &toFill, bool reverseOrder=false)
 
bool FmDB::readAll (const std::string &name, char ignoreFileVersion=0)
 
int FmDB::readFMF (std::istream &is)
 
void FmDB::unknownKeyword (const char *keyWord, const FmBase *obj)
 
FmGlobalViewSettings * FmDB::getActiveViewSettings (bool createIfNone=true)
 
FmAnalysis * FmDB::getActiveAnalysis (bool createIfNone=true)
 
FmModesOptions * FmDB::getModesOptions (bool createIfNone=true)
 
FmGageOptions * FmDB::getGageOptions (bool createIfNone=true)
 
FmFppOptions * FmDB::getFppOptions (bool createIfNone=true)
 
FmModelExpOptions * FmDB::getModelExportOptions (bool createIfNone=true)
 
FmVesselMotion * FmDB::getActiveRAO ()
 
double FmDB::getPositionTolerance ()
 
double FmDB::getParallelTolerance ()
 
void FmDB::setParallelTolerance (double eps)
 
const FaVec3 & FmDB::getGrav ()
 
void FmDB::drawGVector ()
 
FaMat34 FmDB::getSeaCS ()
 
bool FmDB::useSeaCS ()
 
void FmDB::drawSea ()
 
FmLink * FmDB::getEarthLink ()
 
FmSensorBase * FmDB::getTimeSensor (bool createIfNone=true)
 
FmSeaState * FmDB::getSeaStateObject (bool createIfNone=true)
 
FmAirState * FmDB::getAirStateObject (bool createIfNone=true)
 
FmMechanism * FmDB::getMechanismObject (bool createIfNone=true)
 
FmTurbine * FmDB::getTurbineObject (int ID=0)
 
void FmDB::emergencyExitSave ()
 
void FmDB::eraseAllStickers ()
 
void FmDB::eraseAllControlObjects ()
 
bool FmDB::hasObjects (int typeID, const FmHeadMap *root=NULL)
 
const FFaVersionNumber & FmDB::getModelFileVer ()
 
const FmHeadMap * FmDB::getHeadMap (const FmSubAssembly *subAss=NULL)
 
FmSubAssembly * FmDB::getSubAssembly (const std::vector< int > &assemblyID)
 
FmModelMemberBase * FmDB::findObject (int baseID)
 
bool FmDB::insertInBaseIDMap (FmModelMemberBase *pt)
 
void FmDB::removeFromBaseIDMap (FmModelMemberBase *pt)
 
int FmDB::getFreeBaseID ()
 
void FmDB::resolveObject (FmBase *obj)
 
void FmDB::initAfterResolveObject (FmBase *obj)