From 55e729ea32ed3af8e96b0ae86845843b518cd7f7 Mon Sep 17 00:00:00 2001 From: Roland Jax Date: Thu, 20 Nov 2014 08:19:33 +0100 Subject: [PATCH] XML path in class ConfigFile wiped out. --- src/lib/ebus/configfile.cpp | 11 ----------- src/lib/ebus/configfile.h | 24 +----------------------- 2 files changed, 1 insertion(+), 34 deletions(-) diff --git a/src/lib/ebus/configfile.cpp b/src/lib/ebus/configfile.cpp index f630bac5..1dfa0aba 100644 --- a/src/lib/ebus/configfile.cpp +++ b/src/lib/ebus/configfile.cpp @@ -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) { m_path = path; @@ -71,10 +64,6 @@ void ConfigCommands::setType(const FileType type) m_configfile = new ConfigFileCSV(); m_extension = "csv"; break; - case XML: - m_configfile = new ConfigFileXML(); - m_extension = "xml"; - break; }; }; diff --git a/src/lib/ebus/configfile.h b/src/lib/ebus/configfile.h index d800c096..03996926 100644 --- a/src/lib/ebus/configfile.h +++ b/src/lib/ebus/configfile.h @@ -25,7 +25,7 @@ #include /** available file endings / types. */ -enum FileType { CSV, XML }; +enum FileType { CSV }; /** * @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. */