XML path in class ConfigFile wiped out.
This commit is contained in:
@@ -46,13 +46,6 @@ void ConfigFileCSV::parse(std::istream& is, Commands& commands)
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
void ConfigFileXML::parse(std::istream& is, Commands& commands)
|
|
||||||
{
|
|
||||||
; // ToDo: Implementation for xml files
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ConfigCommands::ConfigCommands(const std::string path, const FileType type)
|
ConfigCommands::ConfigCommands(const std::string path, const FileType type)
|
||||||
{
|
{
|
||||||
m_path = path;
|
m_path = path;
|
||||||
@@ -71,10 +64,6 @@ void ConfigCommands::setType(const FileType type)
|
|||||||
m_configfile = new ConfigFileCSV();
|
m_configfile = new ConfigFileCSV();
|
||||||
m_extension = "csv";
|
m_extension = "csv";
|
||||||
break;
|
break;
|
||||||
case XML:
|
|
||||||
m_configfile = new ConfigFileXML();
|
|
||||||
m_extension = "xml";
|
|
||||||
break;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
/** available file endings / types. */
|
/** available file endings / types. */
|
||||||
enum FileType { CSV, XML };
|
enum FileType { CSV };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief base class for config files.
|
* @brief base class for config files.
|
||||||
@@ -69,28 +69,6 @@ public:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief class for XML config files.
|
|
||||||
*/
|
|
||||||
class ConfigFileXML : public ConfigFile
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
/**
|
|
||||||
* @brief destructor.
|
|
||||||
*/
|
|
||||||
~ConfigFileXML() {}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief read input stream and stored data into commands
|
|
||||||
* @param is open input stream for reading.
|
|
||||||
* @param commands object as datastore.
|
|
||||||
*/
|
|
||||||
void parse(std::istream& is, Commands& commands);
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief class for class device.
|
* @brief class for class device.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user