1 #ifndef SG_PACKAGE_PACKAGE_HXX
2 #define SG_PACKAGE_PACKAGE_HXX
7 #include <simgear/props/props.hxx>
8 #include <simgear/misc/strutils.hxx>
10 typedef std::set<std::string> string_set;
26 * get or create an install for the package
30 bool isInstalled() const;
32 std::string id() const;
34 std::string md5() const;
36 std::string getLocalisedProp(const std::string& aName) const;
38 unsigned int revision() const;
40 Catalog* catalog() const
43 bool matches(const SGPropertyNode* aFilter) const;
45 string_list downloadUrls() const;
49 Package(const SGPropertyNode* aProps, Catalog* aCatalog);
51 void initWithProps(const SGPropertyNode* aProps);
53 std::string getLocalisedString(const SGPropertyNode* aRoot, const char* aName) const;
55 SGPropertyNode_ptr m_props;
60 typedef std::vector<Package*> PackageList;
65 } // of namespace simgear
67 #endif // of SG_PACKAGE_PACKAGE_HXX