5 #include <msp/parser/loader.h>
6 #include <msp/path/path.h>
9 #include "packageref.h"
16 class Loader: public Msp::Parser::Loader
20 Component &get_object() { return comp; }
24 void source(const std::string &);
25 void require(const std::string &);
37 Component(Package &, Type, const std::string &);
38 const Package &get_package() const { return pkg; }
39 Type get_type() const { return type; }
40 const std::string &get_name() const { return name; }
41 const PathList &get_sources() const { return sources; }
42 const BuildInfo &get_build_info() const { return build_info; }
43 bool get_install() const { return install; }
44 const std::string &get_install_headers() const { return install_headers; }
46 void create_build_info();
53 std::string install_headers;
57 typedef std::list<Component> ComponentList;