51 virtual std::shared_ptr<ModelData>
parse_model(
const std::string modelPath,
const std::string modelName =
"") = 0;
This class is a abstract parent class for model parser factories implemented in the MeLOn library.
Definition modelParser.h:108
virtual std::unique_ptr< ModelParser > create_model_parser(const MODEL_FILE_TYPE fileType=MODEL_FILE_TYPE::CSV)=0
Abstract factory function for creating a instance of an model parser corresponding to the specified f...
This class is a abstract parent class for model parser implemented in the MeLOn library.
Definition modelParser.h:40
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:126
virtual ~ModelParser()=default
Virtual desctructor to enable inheritance.
std::string _modelPath
Definition modelParser.h:60
std::string _format_folder_path(const std::string modelPath)
Applies the correct format to the path given by the user.
Definition modelParser.cpp:86
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
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:144
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...
std::string _modelName
Definition modelParser.h:61
MODEL_FILE_TYPE
Enum for representing the parsable filetypes.
Definition modelParser.h:30
@ CSV
Definition modelParser.h:31
@ XML
Definition modelParser.h:32
@ JSON
Definition modelParser.h:33
SCALER_PARAMETER
Definition scaler.h:41
SCALER_TYPE
Enum for representing the available types of scalers.
Definition scaler.h:31