]> git.tdb.fi Git - builder.git/blobdiff - source/config.h
Refactor transitive dependencies to work on all targets
[builder.git] / source / config.h
diff --git a/source/config.h b/source/config.h
deleted file mode 100644 (file)
index 9747d99..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-#ifndef CONFIG_H_
-#define CONFIG_H_
-
-#include <map>
-#include <string>
-#include <msp/parser/loader.h>
-#include <msp/path/path.h>
-#include <msp/time/timestamp.h>
-#include "option.h"
-
-typedef std::map<std::string, std::string> RawOptionMap;
-
-class Config
-{
-public:
-       struct Option
-       {
-               std::string name;
-               std::string defv;
-               std::string descr;
-               std::string value;
-
-               Option(const std::string &, const std::string &, const std::string &);
-       };
-       typedef std::map<std::string, Option> OptionMap;
-
-       void add_option(const std::string &, const std::string &, const std::string &);
-       const Option &get_option(const std::string &) const;
-       const OptionMap &get_options() const          { return options; }
-       const Msp::Time::TimeStamp &get_mtime() const { return mtime; }
-       bool is_option(const std::string &) const;
-       bool process(const RawOptionMap &);
-       void load(const Msp::Path::Path &); 
-       void save(const Msp::Path::Path &) const;
-private:
-       class Loader: public Msp::Parser::Loader
-       {
-       public:
-               Loader(Config &);
-       private:
-               Config &conf;
-               
-               void option(const std::string &, const std::string &);
-       };
-       
-       OptionMap options;
-       Msp::Time::TimeStamp mtime;
-};
-
-#endif