SG++-Doxygen-Documentation
sgpp::datadriven::DataSourceFileTypeParser Class Reference

Convenience class to convert strings to sgpp::datadriven::DataSourceFileType and generate string representations for values of sgpp::datadriven::DataSourceFileType. More...

#include <DataSourceFileTypeParser.hpp>

Static Public Member Functions

static DataSourceFileType parse (const std::string &input)
 Convert strings to values sgpp::datadriven::DataSourceFileType. More...
 
static const std::string & toString (DataSourceFileType type)
 generate string representations for values of sgpp::datadriven::DataSourceFileType. More...
 

Detailed Description

Convenience class to convert strings to sgpp::datadriven::DataSourceFileType and generate string representations for values of sgpp::datadriven::DataSourceFileType.

Member Function Documentation

◆ parse()

DataSourceFileType sgpp::datadriven::DataSourceFileTypeParser::parse ( const std::string &  input)
static

Convert strings to values sgpp::datadriven::DataSourceFileType.

Throws if there is no valid representation

Parameters
inputcase insensitive string representation of a sgpp::datadriven::DataSourceFileType.
Returns
the corresponding sgpp::datadriven::DataSourceFileType.

References sgpp::datadriven::ARFF, sgpp::datadriven::CSV, and sgpp::datadriven::NONE.

Referenced by sgpp::datadriven::DataSourceBuilder::crossValidationFromConfig(), and sgpp::datadriven::DataMiningConfigParser::getDataSourceConfig().

◆ toString()

const std::string & sgpp::datadriven::DataSourceFileTypeParser::toString ( DataSourceFileType  type)
static

generate string representations for values of sgpp::datadriven::DataSourceFileType.

Parameters
typeenum value.
Returns
string representation of a sgpp::datadriven::DataSourceFileType.

References sgpp::datadriven::ARFF, sgpp::datadriven::CSV, and sgpp::datadriven::NONE.

Referenced by sgpp::datadriven::DataMiningConfigParser::getDataSourceConfig().


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