 |
MeLOn
|
Go to the documentation of this file.
51 virtual std::shared_ptr<ModelData>
parse_model(
const std::string modelPath,
const std::string modelName) = 0;
MODEL_FILE_TYPE
Enum for representing the parsable filetypes.
Definition: modelParser.h:43
virtual std::unique_ptr< ModelParser > create_model_parser(const MODEL_FILE_TYPE fileType)=0
Abstract factory function for creating a instance of an model parser corresponding to the specified f...
std::string _format_file_path(const std::string modelPath, const std::string modelName, const MODEL_FILE_TYPE fileType)
Applies the correct format to the path given by the user.
Definition: modelParser.cpp:28
@ CSV
Definition: modelParser.h:44
std::string _modelPath
Definition: modelParser.h:73
@ XML
Definition: modelParser.h:45
std::string _modelName
Definition: modelParser.h:74
SCALER_TYPE
Enum for representing the available types of scalers.
Definition: scaler.h:44
virtual ~ModelParser()=default
Virtual desctructor to enable inheritance.
@ JSON
Definition: modelParser.h:46
static SCALER_TYPE _string_to_scaler_type(const std::string scalerTypeName)
Turns a string containing the name of an scaler type in the correct enum representation.
Definition: modelParser.cpp:88
This class is a abstract parent class for model parser factories implemented in the MeLOn library.
Definition: modelParser.h:112
SCALER_PARAMETER
Definition: scaler.h:54
virtual std::shared_ptr< ModelData > parse_model(const std::string modelPath, const std::string modelName)=0
Abstract function for defining the structure of the parsing function which is used to get the model d...
static SCALER_PARAMETER _string_to_scaler_parameter(const std::string scalerParameterName)
Turns a string containing the name of an scaler type in the correct enum representation.
Definition: modelParser.cpp:106