1 #ifndef CONDITIONALLOADER_H_
2 #define CONDITIONALLOADER_H_
5 #include <msp/datafile/loader.h>
6 #include "libbuilder_api.h"
11 class LIBBUILDER_API ArchitectureConditional: virtual public Msp::DataFile::Loader
14 const Builder &builder;
15 std::string log_prefix;
18 ArchitectureConditional(const Builder &, const std::string &);
21 void if_arch(const std::string &);
25 class LIBBUILDER_API FeatureConditional: virtual public Msp::DataFile::Loader
28 const SourcePackage &package;
29 std::string log_prefix;
32 FeatureConditional(const SourcePackage &, const std::string &);
34 void if_feature(const std::string &);
38 class LIBBUILDER_API ConditionalLoader: public ArchitectureConditional, FeatureConditional
41 ConditionalLoader(const SourcePackage &, const std::string &);