class Builder;
-// XXX Add lib/exe prefix/suffix fields. Some archs may need multiple alternatives, how to handle this?
+/**
+Stores information about an architecture. This includes CPU type, model and
+bitness and operating system.
+*/
class Architecture
{
public:
- class Loader: public Msp::DataFile::Loader
+ class Loader: public Msp::DataFile::ObjectLoader<Architecture>
{
- private:
- Architecture &arch;
-
public:
Loader(Architecture &);
- Architecture &get_object() { return arch; }
};
typedef std::list<Pattern> PatternList;
bool is_native() const { return native; }
bool is_cross() const { return !cross_prefix.empty(); }
- void set_cross_prefix(const std::string &);
const std::string &get_cross_prefix() const { return cross_prefix; }
const PatternList &get_shared_library_patterns() const { return sharedlib_patterns; }
void parse_specification(const std::string &);
};
-typedef std::map<std::string, Architecture> ArchMap;
-
#endif