X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcomponent.h;h=0e1efad028d5d627b69e6e59f32c5b4d60ce7d34;hb=69cd5cc73f466181420711fb907979de58687a4c;hp=d33ca25ae47900d9f156f6c24ec73fcf5ad1c578;hpb=35f2979869bff43706f3163ec0979c7084aaa3c4;p=builder.git diff --git a/source/component.h b/source/component.h index d33ca25..0e1efad 100644 --- a/source/component.h +++ b/source/component.h @@ -5,6 +5,7 @@ #include #include #include "buildinfo.h" +#include "conditionalloader.h" #include "installmap.h" #include "package.h" @@ -19,14 +20,12 @@ their own. class Component { public: - class Loader: public Msp::DataFile::ObjectLoader + class Loader: public Msp::DataFile::ObjectLoader, public ConditionalLoader { public: Loader(Component &); private: void build_info(); - void if_arch(const std::string &); - void if_feature(const std::string &); void install_map(); void overlay(const std::string &); void require(const std::string &); @@ -48,8 +47,8 @@ protected: InstallMap install_map; std::list problems; -public: Component(SourcePackage &, const std::string &); +public: virtual ~Component() { } const SourcePackage &get_package() const { return package; }