]> git.tdb.fi Git - builder.git/blobdiff - source/config.h
Split class Package into SourcePackage and BinaryPackage
[builder.git] / source / config.h
index 1b7f853b21d11312ec3cecaeea0a8e7b21ac7bc6..ba23462c00e53a63196fcb0cb08fdae72fa40d2a 100644 (file)
@@ -15,7 +15,7 @@ Distributed under the LGPL
 #include <msp/time/timestamp.h>
 #include "misc.h"
 
-class Package;
+class SourcePackage;
 
 /**
 Manages configuration for a package.  A configuration may have an arbitary
@@ -38,7 +38,7 @@ public:
        };
        typedef std::map<std::string, Option> OptionMap;
 
-       Config(Package &);
+       Config(SourcePackage &);
        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; }
@@ -56,11 +56,11 @@ private:
                Loader(Config &);
        private:
                Config &conf;
-               
+
                void option(const std::string &, const std::string &);
        };
 
-       Package         &package;
+       SourcePackage   &package;
        OptionMap       options;
        Msp::Time::TimeStamp mtime;
        bool freeze_mtime;