Microflow 3D  v1.0
MF::Database::ConfigData Class Reference

The ConfigData class provides accessors for text parser objects: case parameters, program parameters and thread parameters. More...

#include <ConfigData.h>

Collaboration diagram for MF::Database::ConfigData:

Public Member Functions

 ConfigData (const char *pPathToProgramConfigFile, const char *pPathToCaseFolder, const char *pScope, bool verbose)
 
 ~ConfigData ()
 
std::shared_ptr< MF::Parser::TextParsergetTextParser_Ptr ()
 
config4cpp::Configuration * getProgramParametres_Ptr ()
 Returns pointer to text parser object. More...
 
config4cpp::Configuration * getCaseParametres_Ptr ()
 Returns pointer to program parameters parser object. More...
 
config4cpp::Configuration * getThreadParametres_Ptr ()
 Returns pointer to case parameters parser object. More...
 
int getCaseParamLength (const char *parameterName)
 
float getCaseFloatParam (const char *parameterName)
 Returns number of case parameter of name "parameterName" > 0 if parameter exists. More...
 
int getCaseIntParam (const char *parameterName)
 Returns case parameter of float type. More...
 
bool getCaseBooleanParam (const char *parameterName)
 Returns case parameter of int type. More...
 
std::string getCaseStringParam (const char *parameterName)
 Returns case parameter of boolean type. More...
 
float getCaseFloatVectorParam (const int component, const char *parameterName)
 Returns case parameter of string type. More...
 
int getCaseIntVectorParam (const int component, const char *parameterName)
 Returns case parameter of vector component of float type. More...
 
int getGeometryDefinition ()
 Returns case parameter of vector X component of int type. More...
 
int getFlowType ()
 Returns the way of GeometryDefinition of enum type: 0 - FromSTL. More...
 
int getModelType ()
 Returns the FlowType parameter of enum type: 0 - quasi compressible, 1 - incompressible Zou et al. 1995. More...
 
int getLatticeType ()
 Returns the ModelType parameter of enum type: 0 - BGK, 1 - MRT, 2 - FBGK, 3- MRT2. More...
 
int getProgramParamLength (const char *parameterName)
 Returns the LatticeType parameter of enum type: 0 - D3Q19. More...
 
float getProgramFloatParam (const char *parameterName)
 Returns number of program parameter of name "parameterName" > 0 if parameter exists. More...
 
int getProgramIntParam (const char *parameterName)
 Returns program parameter of float type. More...
 
bool getProgramBooleanParam (const char *parameterName)
 Returns program parameter of int type. More...
 
std::string getProgramStringParam (const char *parameterName)
 Returns program parameter of boolean type. More...
 
float getProgramFloatVectorParam (const int component, const char *parameterName)
 Returns program parameter of string type. More...
 
int getProgramIntVectorParam (const int component, const char *parameterName)
 Returns program parameter of vector component of float type. More...
 
int getThreadsNumber ()
 Returns program parameter of vector component of int type. More...
 
int getThreadParamLength (const int ThreadNr, const char *parameterName)
 Returns number of threads. More...
 
float getThreadFloatParam (const int ThreadNr, const char *parameterName)
 Returns thread parameter number of name "parameterName" > 0 if parameter exists. More...
 
int getThreadIntParam (const int ThreadNr, const char *parameterName)
 Returns thread parameter of float type. More...
 
bool getThreadBooleanParam (const int ThreadNr, const char *parameterName)
 Returns thread parameter of int type. More...
 
std::string getThreadStringParam (const int ThreadNr, const char *parameterName)
 Returns thread parameter of boolean type. More...
 
float getThreadFloatVectorParam (const int component, const int ThreadNr, const char *parameterName)
 Returns thread parameter of string type. More...
 
int getThreadIntVectorParam (const int component, const int ThreadNr, const char *parameterName)
 Returns thread parameter of vector component of float type. More...
 
std::string getThreadStringVectorParam (const int component, const int ThreadNr, const char *parameterName)
 Returns thread parameter of vector component of int type. More...
 
int getThreadDataVectorParamLength (const int ThreadNr, const int DataNr, const char *dataName, const char *parameterName)
 Returns thread parameter of string component of int type. More...
 
float getThreadDataFloatVectorParam (const int component, const int ThreadNr, const int DataNr, const char *dataName, const char *parameterName)
 Returns thread data parameter length > 0 if parameter exists. More...
 
int getThreadDataIntVectorParam (const int component, const int ThreadNr, const int DataNr, const char *dataName, const char *parameterName)
 Returns thread parameter of vector component of float type. More...
 

Static Public Member Functions

static std::shared_ptr< MF::Database::ConfigDataNew (const char *pPathToProgramConfigFile, const char *pPathToCaseFolder, const char *pScope, bool verbose)
 

Data Fields

std::string CaseFolder
 Path to case folder (relative to program folder). More...
 
std::string ProgramConfigFile
 Full path to program config file (relative to program folder). More...
 
std::string CaseFile
 Full path to case config file (relative to program folder). More...
 
std::string ThreadFile
 Full path to thread file (relative to program folder). More...
 
std::string GeometryFile
 Full path to geometry file (relative to program folder). More...
 

Detailed Description

The ConfigData class provides accessors for text parser objects: case parameters, program parameters and thread parameters.

That are created during parsing of files: case_params.cfg, Microflow.cfg and thread_params.cfg.

Definition at line 23 of file ConfigData.h.

Constructor & Destructor Documentation

◆ ConfigData()

MF::Database::ConfigData::ConfigData ( const char *  pPathToProgramConfigFile,
const char *  pPathToCaseFolder,
const char *  pScope,
bool  verbose 
)

Definition at line 21 of file ConfigData.cpp.

References CaseFile, CaseFolder, GeometryFile, ProgramConfigFile, and ThreadFile.

21  {
22 
23  const char* pPathToCaseFile;
24  const char* pPathToThreadFile;
25 
26  m_pScope = pScope;
27  ProgramConfigFile = pPathToProgramConfigFile;
28 
29  // MF Config file parsing
30  //-------------------------------------------------------------------------------------------------------------------------------------------------------------
31  m_pTextParser_Ptr = std::make_shared<MF::Parser::TextParser>(); //Parser object
32 
33  // Config file
34  m_pProgramParams = m_pTextParser_Ptr->ProgramConfigFileParse(pPathToProgramConfigFile, m_pScope, verbose); //Parsing of Microflow.cfg file
35 
36  if (strcmp(pPathToCaseFolder, "") == 0)
37  CaseFolder = m_pProgramParams->lookupString(m_pScope, "CaseFolder");
38  else
39  CaseFolder = pPathToCaseFolder;
40 
41  GeometryFile = (CaseFolder + m_pProgramParams->lookupString(m_pScope, "GeometryFolder") + m_pProgramParams->lookupString(m_pScope, "GeometryFileName"));
42 
43  // Case file
44  CaseFile = (CaseFolder + m_pProgramParams->lookupString(m_pScope, "CaseParametersFile")); //Path to case config file
45  pPathToCaseFile = CaseFile.c_str();
46  m_pCaseParams = m_pTextParser_Ptr->CaseConfigFileParse(pPathToCaseFile, m_pScope, verbose); //Parsing of case config file
47 
48  // Thread file
49  ThreadFile = (CaseFolder + m_pProgramParams->lookupString(m_pScope, "ThreadParametersFile")); //Path to thread config file
50  pPathToThreadFile = ThreadFile.c_str();
51  m_pThreadParams = m_pTextParser_Ptr->ThreadConfigFileParse(pPathToThreadFile, m_pScope, verbose); //Parsing of thread config file
52 
53  //-------------------------------------------------------------------------------------------------------------------------------------------------------------
54 }
std::string GeometryFile
Full path to geometry file (relative to program folder).
Definition: ConfigData.h:112
std::string CaseFile
Full path to case config file (relative to program folder).
Definition: ConfigData.h:110
std::string ThreadFile
Full path to thread file (relative to program folder).
Definition: ConfigData.h:111
std::string CaseFolder
Path to case folder (relative to program folder).
Definition: ConfigData.h:108
std::string ProgramConfigFile
Full path to program config file (relative to program folder).
Definition: ConfigData.h:109

◆ ~ConfigData()

MF::Database::ConfigData::~ConfigData ( )

Definition at line 12 of file ConfigData.cpp.

12  {
13 
14  //Parser object delete
15  m_pProgramParams->destroy();
16  m_pCaseParams->destroy();
17  m_pThreadParams->destroy();
18 
19 }

Member Function Documentation

◆ getCaseBooleanParam()

bool MF::Database::ConfigData::getCaseBooleanParam ( const char *  parameterName)
inline

Returns case parameter of int type.

Definition at line 43 of file ConfigData.h.

43 { return m_pCaseParams->lookupBoolean(m_pScope, parameterName); };

◆ getCaseFloatParam()

float MF::Database::ConfigData::getCaseFloatParam ( const char *  parameterName)
inline

Returns number of case parameter of name "parameterName" > 0 if parameter exists.

Definition at line 41 of file ConfigData.h.

41 { return m_pCaseParams->lookupFloat(m_pScope, parameterName); };

◆ getCaseFloatVectorParam()

float MF::Database::ConfigData::getCaseFloatVectorParam ( const int  component,
const char *  parameterName 
)
inline

Returns case parameter of string type.

Definition at line 46 of file ConfigData.h.

46 {m_pCaseParams->lookupList(m_pScope, parameterName, m_valueVector); return m_pCaseParams->stringToFloat(m_pScope, parameterName, m_valueVector[component]);};

◆ getCaseIntParam()

int MF::Database::ConfigData::getCaseIntParam ( const char *  parameterName)
inline

Returns case parameter of float type.

Definition at line 42 of file ConfigData.h.

42 { return m_pCaseParams->lookupInt(m_pScope, parameterName); };

◆ getCaseIntVectorParam()

int MF::Database::ConfigData::getCaseIntVectorParam ( const int  component,
const char *  parameterName 
)
inline

Returns case parameter of vector component of float type.

Definition at line 48 of file ConfigData.h.

48 {m_pCaseParams->lookupList(m_pScope, parameterName, m_valueVector); return m_pCaseParams->stringToInt(m_pScope, parameterName, m_valueVector[component]);};

◆ getCaseParametres_Ptr()

config4cpp::Configuration* MF::Database::ConfigData::getCaseParametres_Ptr ( )
inline

Returns pointer to program parameters parser object.

Definition at line 36 of file ConfigData.h.

36 { return m_pCaseParams; };

◆ getCaseParamLength()

int MF::Database::ConfigData::getCaseParamLength ( const char *  parameterName)
inline

Definition at line 40 of file ConfigData.h.

40 {m_pCaseParams->listLocallyScopedNames(m_pScope, "", config4cpp::Configuration::CFG_SCOPE_AND_VARS, false, parameterName, m_namesVec); return m_namesVec.length(); };

◆ getCaseStringParam()

std::string MF::Database::ConfigData::getCaseStringParam ( const char *  parameterName)
inline

Returns case parameter of boolean type.

Definition at line 44 of file ConfigData.h.

44 { return m_pCaseParams->lookupString(m_pScope, parameterName); };

◆ getFlowType()

int MF::Database::ConfigData::getFlowType ( )
inline

Returns the way of GeometryDefinition of enum type: 0 - FromSTL.

Definition at line 52 of file ConfigData.h.

52 {return m_pCaseParams->lookupEnum(m_pScope, "BasicParams.FluidFlowModel_MT", "FlowTypeClass", FlowType, 2);};

◆ getGeometryDefinition()

int MF::Database::ConfigData::getGeometryDefinition ( )
inline

Returns case parameter of vector X component of int type.

Definition at line 51 of file ConfigData.h.

51 {return m_pCaseParams->lookupEnum(m_pScope, "BasicParams.GeometryDefinition", "GeometryDefinitionClass", GeometryDefinition, 1);};

◆ getLatticeType()

int MF::Database::ConfigData::getLatticeType ( )
inline

Returns the ModelType parameter of enum type: 0 - BGK, 1 - MRT, 2 - FBGK, 3- MRT2.

Definition at line 54 of file ConfigData.h.

54 {return m_pCaseParams->lookupEnum(m_pScope, "BasicParams.LatticeType_La", "LatticeTypeClass", LatticeType, 1);};

◆ getModelType()

int MF::Database::ConfigData::getModelType ( )
inline

Returns the FlowType parameter of enum type: 0 - quasi compressible, 1 - incompressible Zou et al. 1995.

Definition at line 53 of file ConfigData.h.

53 {return m_pCaseParams->lookupEnum(m_pScope, "BasicParams.CollisionModel_KT", "ModelTypeClass", ModelType, 4);};

◆ getProgramBooleanParam()

bool MF::Database::ConfigData::getProgramBooleanParam ( const char *  parameterName)
inline

Returns program parameter of int type.

Definition at line 60 of file ConfigData.h.

60 { return m_pProgramParams->lookupBoolean(m_pScope, parameterName); };

◆ getProgramFloatParam()

float MF::Database::ConfigData::getProgramFloatParam ( const char *  parameterName)
inline

Returns number of program parameter of name "parameterName" > 0 if parameter exists.

Definition at line 58 of file ConfigData.h.

58 { return m_pProgramParams->lookupFloat(m_pScope, parameterName); };

◆ getProgramFloatVectorParam()

float MF::Database::ConfigData::getProgramFloatVectorParam ( const int  component,
const char *  parameterName 
)
inline

Returns program parameter of string type.

Definition at line 63 of file ConfigData.h.

63 {m_pProgramParams->lookupList(m_pScope, parameterName, m_valueVector); return m_pProgramParams->stringToFloat(m_pScope, parameterName, m_valueVector[component]);};

◆ getProgramIntParam()

int MF::Database::ConfigData::getProgramIntParam ( const char *  parameterName)
inline

Returns program parameter of float type.

Definition at line 59 of file ConfigData.h.

59 { return m_pProgramParams->lookupInt(m_pScope, parameterName); };

◆ getProgramIntVectorParam()

int MF::Database::ConfigData::getProgramIntVectorParam ( const int  component,
const char *  parameterName 
)
inline

Returns program parameter of vector component of float type.

Definition at line 65 of file ConfigData.h.

65 {m_pProgramParams->lookupList(m_pScope, parameterName, m_valueVector); return m_pProgramParams->stringToInt(m_pScope, parameterName, m_valueVector[component]);};

◆ getProgramParametres_Ptr()

config4cpp::Configuration* MF::Database::ConfigData::getProgramParametres_Ptr ( )
inline

Returns pointer to text parser object.

Definition at line 35 of file ConfigData.h.

35 { return m_pProgramParams; };

◆ getProgramParamLength()

int MF::Database::ConfigData::getProgramParamLength ( const char *  parameterName)
inline

Returns the LatticeType parameter of enum type: 0 - D3Q19.

Definition at line 57 of file ConfigData.h.

57 {m_pProgramParams->listLocallyScopedNames(m_pScope, "", config4cpp::Configuration::CFG_SCOPE_AND_VARS, false, parameterName, m_namesVec); return m_namesVec.length(); };

◆ getProgramStringParam()

std::string MF::Database::ConfigData::getProgramStringParam ( const char *  parameterName)
inline

Returns program parameter of boolean type.

Definition at line 61 of file ConfigData.h.

61 { return m_pProgramParams->lookupString(m_pScope, parameterName); };

◆ getTextParser_Ptr()

std::shared_ptr<MF::Parser::TextParser> MF::Database::ConfigData::getTextParser_Ptr ( )
inline

Definition at line 34 of file ConfigData.h.

34 { return m_pTextParser_Ptr; };

◆ getThreadBooleanParam()

bool MF::Database::ConfigData::getThreadBooleanParam ( const int  ThreadNr,
const char *  parameterName 
)
inline

Returns thread parameter of int type.

Definition at line 73 of file ConfigData.h.

References getThreadsNumber().

73 {getThreadsNumber(); m_strBuffer = m_pScope; m_strBuffer.append("."); m_strBuffer.append(m_namesVec[ThreadNr]); return m_pThreadParams->lookupBoolean(m_strBuffer.c_str(), parameterName, 0); };
int getThreadsNumber()
Returns program parameter of vector component of int type.
Definition: ConfigData.h:68

◆ getThreadDataFloatVectorParam()

float MF::Database::ConfigData::getThreadDataFloatVectorParam ( const int  component,
const int  ThreadNr,
const int  DataNr,
const char *  dataName,
const char *  parameterName 
)
inline

Returns thread data parameter length > 0 if parameter exists.

Definition at line 86 of file ConfigData.h.

References getThreadParamLength().

86 {getThreadParamLength(ThreadNr,dataName); m_strBuffer = m_pScope; m_strBuffer.append("."); m_strBuffer.append(m_namesVec[ThreadNr]); m_strBuffer.append("."); m_strBuffer.append(m_namesVec2[DataNr]); m_pThreadParams->lookupList(m_strBuffer.c_str(), parameterName, m_valueVector, {}); if (m_valueVector.length() > 0) return m_pThreadParams->stringToFloat(m_strBuffer.c_str(), parameterName, m_valueVector[component]); return 0; };
int getThreadParamLength(const int ThreadNr, const char *parameterName)
Returns number of threads.
Definition: ConfigData.h:69

◆ getThreadDataIntVectorParam()

int MF::Database::ConfigData::getThreadDataIntVectorParam ( const int  component,
const int  ThreadNr,
const int  DataNr,
const char *  dataName,
const char *  parameterName 
)
inline

Returns thread parameter of vector component of float type.

Definition at line 88 of file ConfigData.h.

References getThreadParamLength().

88 {getThreadParamLength(ThreadNr,dataName); m_strBuffer = m_pScope; m_strBuffer.append("."); m_strBuffer.append(m_namesVec[ThreadNr]); m_strBuffer.append("."); m_strBuffer.append(m_namesVec2[DataNr]); m_pThreadParams->lookupList(m_strBuffer.c_str(), parameterName, m_valueVector, {}); if (m_valueVector.length() > 0) return m_pThreadParams->stringToInt(m_strBuffer.c_str(), parameterName, m_valueVector[component]); return 0; };
int getThreadParamLength(const int ThreadNr, const char *parameterName)
Returns number of threads.
Definition: ConfigData.h:69

◆ getThreadDataVectorParamLength()

int MF::Database::ConfigData::getThreadDataVectorParamLength ( const int  ThreadNr,
const int  DataNr,
const char *  dataName,
const char *  parameterName 
)
inline

Returns thread parameter of string component of int type.

Definition at line 84 of file ConfigData.h.

References getThreadParamLength().

84 {getThreadParamLength(ThreadNr,dataName); m_strBuffer = m_pScope; m_strBuffer.append("."); m_strBuffer.append(m_namesVec[ThreadNr]); m_pThreadParams->listLocallyScopedNames(m_strBuffer.c_str(), m_namesVec2[DataNr], config4cpp::Configuration::CFG_SCOPE_AND_VARS, false, parameterName, m_namesVec3); return m_namesVec3.length(); };
int getThreadParamLength(const int ThreadNr, const char *parameterName)
Returns number of threads.
Definition: ConfigData.h:69

◆ getThreadFloatParam()

float MF::Database::ConfigData::getThreadFloatParam ( const int  ThreadNr,
const char *  parameterName 
)
inline

Returns thread parameter number of name "parameterName" > 0 if parameter exists.

Definition at line 71 of file ConfigData.h.

References getThreadsNumber().

71 {getThreadsNumber(); m_strBuffer = m_pScope; m_strBuffer.append("."); m_strBuffer.append(m_namesVec[ThreadNr]); return m_pThreadParams->lookupFloat(m_strBuffer.c_str(), parameterName, 0); };
int getThreadsNumber()
Returns program parameter of vector component of int type.
Definition: ConfigData.h:68

◆ getThreadFloatVectorParam()

float MF::Database::ConfigData::getThreadFloatVectorParam ( const int  component,
const int  ThreadNr,
const char *  parameterName 
)
inline

Returns thread parameter of string type.

Definition at line 77 of file ConfigData.h.

References getThreadsNumber().

77 {getThreadsNumber(); m_strBuffer = m_pScope; m_strBuffer.append("."); m_strBuffer.append(m_namesVec[ThreadNr]); m_pThreadParams->lookupList(m_strBuffer.c_str(), parameterName, m_valueVector, {}); if (m_valueVector.length() > 0) return m_pThreadParams->stringToFloat(m_strBuffer.c_str(), parameterName, m_valueVector[component]); return 0; };
int getThreadsNumber()
Returns program parameter of vector component of int type.
Definition: ConfigData.h:68

◆ getThreadIntParam()

int MF::Database::ConfigData::getThreadIntParam ( const int  ThreadNr,
const char *  parameterName 
)
inline

Returns thread parameter of float type.

Definition at line 72 of file ConfigData.h.

References getThreadsNumber().

72 {getThreadsNumber(); m_strBuffer = m_pScope; m_strBuffer.append("."); m_strBuffer.append(m_namesVec[ThreadNr]); return m_pThreadParams->lookupInt(m_strBuffer.c_str(), parameterName, 0); };
int getThreadsNumber()
Returns program parameter of vector component of int type.
Definition: ConfigData.h:68

◆ getThreadIntVectorParam()

int MF::Database::ConfigData::getThreadIntVectorParam ( const int  component,
const int  ThreadNr,
const char *  parameterName 
)
inline

Returns thread parameter of vector component of float type.

Definition at line 79 of file ConfigData.h.

References getThreadsNumber().

79 {getThreadsNumber(); m_strBuffer = m_pScope; m_strBuffer.append("."); m_strBuffer.append(m_namesVec[ThreadNr]); m_pThreadParams->lookupList(m_strBuffer.c_str(), parameterName, m_valueVector, {}); if (m_valueVector.length() > 0) return m_pThreadParams->stringToInt(m_strBuffer.c_str(), parameterName, m_valueVector[component]); return 0; };
int getThreadsNumber()
Returns program parameter of vector component of int type.
Definition: ConfigData.h:68

◆ getThreadParametres_Ptr()

config4cpp::Configuration* MF::Database::ConfigData::getThreadParametres_Ptr ( )
inline

Returns pointer to case parameters parser object.

Returns pointer to thread config file parser object.

Definition at line 37 of file ConfigData.h.

◆ getThreadParamLength()

int MF::Database::ConfigData::getThreadParamLength ( const int  ThreadNr,
const char *  parameterName 
)
inline

Returns number of threads.

Definition at line 69 of file ConfigData.h.

References getThreadsNumber().

Referenced by getThreadDataFloatVectorParam(), getThreadDataIntVectorParam(), and getThreadDataVectorParamLength().

69 {getThreadsNumber(); m_pThreadParams->listLocallyScopedNames(m_pScope, m_namesVec[ThreadNr], config4cpp::Configuration::CFG_SCOPE_AND_VARS, false, parameterName, m_namesVec2); return m_namesVec2.length(); };
int getThreadsNumber()
Returns program parameter of vector component of int type.
Definition: ConfigData.h:68

◆ getThreadsNumber()

int MF::Database::ConfigData::getThreadsNumber ( )
inline

Returns program parameter of vector component of int type.

Definition at line 68 of file ConfigData.h.

Referenced by getThreadBooleanParam(), getThreadFloatParam(), getThreadFloatVectorParam(), getThreadIntParam(), getThreadIntVectorParam(), getThreadParamLength(), getThreadStringParam(), and getThreadStringVectorParam().

68 {m_pThreadParams->listLocallyScopedNames(m_pScope, "", config4cpp::Configuration::CFG_SCOPE, false, "uid-Thread", m_namesVec); return m_namesVec.length();};

◆ getThreadStringParam()

std::string MF::Database::ConfigData::getThreadStringParam ( const int  ThreadNr,
const char *  parameterName 
)
inline

Returns thread parameter of boolean type.

Definition at line 74 of file ConfigData.h.

References getThreadsNumber().

74 {getThreadsNumber(); m_strBuffer = m_pScope; m_strBuffer.append("."); m_strBuffer.append(m_namesVec[ThreadNr]); return m_pThreadParams->lookupString(m_strBuffer.c_str(), parameterName, ""); };
int getThreadsNumber()
Returns program parameter of vector component of int type.
Definition: ConfigData.h:68

◆ getThreadStringVectorParam()

std::string MF::Database::ConfigData::getThreadStringVectorParam ( const int  component,
const int  ThreadNr,
const char *  parameterName 
)
inline

Returns thread parameter of vector component of int type.

Definition at line 81 of file ConfigData.h.

References getThreadsNumber().

81 {getThreadsNumber(); m_strBuffer = m_pScope; m_strBuffer.append("."); m_strBuffer.append(m_namesVec[ThreadNr]); m_pThreadParams->lookupList(m_strBuffer.c_str(), parameterName, m_valueVector, {}); if (m_valueVector.length() > 0) return m_valueVector[component]; return ""; };
int getThreadsNumber()
Returns program parameter of vector component of int type.
Definition: ConfigData.h:68

◆ New()

static std::shared_ptr<MF::Database::ConfigData> MF::Database::ConfigData::New ( const char *  pPathToProgramConfigFile,
const char *  pPathToCaseFolder,
const char *  pScope,
bool  verbose 
)
inlinestatic

Definition at line 28 of file ConfigData.h.

Referenced by main().

28  {
29  auto ConfigData_Ptr = std::make_shared<MF::Database::ConfigData>(pPathToProgramConfigFile, pPathToCaseFolder, pScope, verbose);
30  return ConfigData_Ptr;
31  };

Field Documentation

◆ CaseFile

std::string MF::Database::ConfigData::CaseFile

Full path to case config file (relative to program folder).

Definition at line 110 of file ConfigData.h.

Referenced by ConfigData().

◆ CaseFolder

std::string MF::Database::ConfigData::CaseFolder

Path to case folder (relative to program folder).

Definition at line 108 of file ConfigData.h.

Referenced by ConfigData().

◆ GeometryFile

std::string MF::Database::ConfigData::GeometryFile

Full path to geometry file (relative to program folder).

Definition at line 112 of file ConfigData.h.

Referenced by ConfigData().

◆ ProgramConfigFile

std::string MF::Database::ConfigData::ProgramConfigFile

Full path to program config file (relative to program folder).

Definition at line 109 of file ConfigData.h.

Referenced by ConfigData().

◆ ThreadFile

std::string MF::Database::ConfigData::ThreadFile

Full path to thread file (relative to program folder).

Definition at line 111 of file ConfigData.h.

Referenced by ConfigData().


The documentation for this class was generated from the following files: