]> git.tdb.fi Git - builder.git/blobdiff - source/config.h
... and remove the debugging cout
[builder.git] / source / config.h
index 9a73880ac887f331e9eae93d0ccbd48892aff7fd..355108fb2c35bcd26f5c012c107dc4d587703212 100644 (file)
@@ -6,13 +6,19 @@
 #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;
 
+/**
+Manages configuration for a package.  A configuration may have an arbitary
+amount of options, as well as a modification time (mtime).
+*/
 class Config
 {
 public:
+       /**
+       A single configuration option.
+       */
        struct Option
        {
                std::string name;
@@ -26,6 +32,7 @@ public:
 
        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 &);