83 string inFile =
m_config[
"infile"].as<
string>();
86 if (
m_f->m_inputfiles.count(
"csv") != 0)
90 csvIO->Import(inFile,
m_f->m_fieldPts);
92 else if (
m_f->m_inputfiles.count(
"pts") != 0)
96 ptsIO->Import(inFile,
m_f->m_fieldPts);
100 ASSERTL0(
false,
"unknown input file type");
104 for (
int j = 0; j <
m_f->m_fieldPts->GetNFields(); ++j)
106 m_f->m_variables.push_back(
m_f->m_fieldPts->GetFieldName(j));
#define ASSERTL0(condition, msg)
std::set< std::string > m_allowedFiles
List of allowed file formats.
FieldSharedPtr m_f
Field object.
std::map< std::string, ConfigOption > m_config
List of configuration values.
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
std::shared_ptr< Field > FieldSharedPtr
std::pair< ModuleType, std::string > ModuleKey
ModuleFactory & GetModuleFactory()
std::shared_ptr< CsvIO > CsvIOSharedPtr
std::shared_ptr< PtsIO > PtsIOSharedPtr