]> git.tdb.fi Git - builder.git/blobdiff - source/package.h
Document a lot of classes and functions
[builder.git] / source / package.h
index e107abc273fd1f691ef7d31cc55cfd36d3197d6d..546a892ab409a58e258378868845eec4b80befa4 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <list>
 #include <string>
-#include <msp/datafile/loader.h>
+#include <msp/datafile/objectloader.h>
 #include "buildinfo.h"
 
 class Builder;
@@ -19,14 +19,11 @@ packages and the builderrc file for binary packages with no pkg-config support.
 class Package
 {
 public:
-       class Loader: public Msp::DataFile::Loader
+       class Loader: public Msp::DataFile::ObjectLoader<Package>
        {
        public:
                Loader(Package &);
-               Package &get_object() { return pkg; }
-       protected:
-               Package &pkg;
-
+       private:
                void require(const std::string &);
        };