X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Farchitecture.h;h=3a4d7ec50d966f44d19cdc95f19d8133e3319aa6;hb=242c55b17e6608b29a77ca17a5b677e202a3ca90;hp=af586192f9ef44b4dafa9103c68ca2b797000e43;hpb=77461a8c0e2b5686b04cf15f3a9333b215813992;p=builder.git diff --git a/source/architecture.h b/source/architecture.h index af58619..3a4d7ec 100644 --- a/source/architecture.h +++ b/source/architecture.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of builder -Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions +Copyright © 2007-2009 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ @@ -19,27 +19,30 @@ class Architecture public: class Loader: public Msp::DataFile::Loader { + private: + Architecture &arch; + public: Loader(Architecture &); Architecture &get_object() { return arch; } private: - Architecture &arch; - void tool(const std::string &t, const std::string &p); }; +private: + Builder &builder; + std::string name; + bool native; + std::string prefix; + StringMap tools; + +public: Architecture(Builder &b, const std::string &n, bool a=false); void set_tool(const std::string &t, const std::string &p); std::string get_tool(const std::string &t) const; const std::string &get_name() const { return name; } bool is_native() const { return native; } const std::string &get_prefix() const { return prefix; } -private: - Builder &builder; - std::string name; - bool native; - std::string prefix; - StringMap tools; }; typedef std::map ArchMap;