Mercurial > ecos
comparison host/libcdl/cdl.hxx @ 82:6736c52df507 ecos-sw-2000-04-14
Merge from eCos master repository on 2000-04-14-13:35:46-BST
| author | jlarmour |
|---|---|
| date | Tue, 18 Apr 2000 21:51:55 +0000 |
| parents | 435cced73e2f |
| children | 6ed91473a1cd |
comparison
equal
deleted
inserted
replaced
| 81:89fef2181d7d | 82:6736c52df507 |
|---|---|
| 114 friend class CdlTest; | 114 friend class CdlTest; |
| 115 friend class CdlDbParser; | 115 friend class CdlDbParser; |
| 116 | 116 |
| 117 public: | 117 public: |
| 118 | 118 |
| 119 static CdlPackagesDatabase make(std::string = "") throw(CdlInputOutputException,std::bad_alloc); | 119 static CdlPackagesDatabase make(std::string = "", CdlDiagnosticFnPtr /* error */ = 0, |
| 120 CdlDiagnosticFnPtr /* warn */ = 0) | |
| 121 throw(CdlInputOutputException,std::bad_alloc); | |
| 120 bool update(void) throw(CdlInputOutputException,std::bad_alloc); | 122 bool update(void) throw(CdlInputOutputException,std::bad_alloc); |
| 121 ~CdlPackagesDatabaseBody(); | 123 ~CdlPackagesDatabaseBody(); |
| 122 | 124 |
| 123 std::string get_component_repository() const; | 125 std::string get_component_repository() const; |
| 124 | 126 |
| 134 const std::vector<std::string>& get_targets(void) const; | 136 const std::vector<std::string>& get_targets(void) const; |
| 135 bool is_known_target(std::string) const; | 137 bool is_known_target(std::string) const; |
| 136 const std::string& get_target_description(std::string) const; | 138 const std::string& get_target_description(std::string) const; |
| 137 const std::vector<std::string>& get_target_aliases(std::string) const; | 139 const std::vector<std::string>& get_target_aliases(std::string) const; |
| 138 const std::vector<std::string>& get_target_packages(std::string) const; | 140 const std::vector<std::string>& get_target_packages(std::string) const; |
| 139 const std::string& get_target_command_prefix(std::string) const; | |
| 140 const std::vector<std::pair<std::string,std::string> >& get_target_compiler_flags(std::string) const; | |
| 141 const std::vector<std::string>& get_target_enables(std::string) const; | 141 const std::vector<std::string>& get_target_enables(std::string) const; |
| 142 const std::vector<std::string>& get_target_disables(std::string) const; | 142 const std::vector<std::string>& get_target_disables(std::string) const; |
| 143 const std::vector<std::pair<std::string,std::string> >& get_target_set_values(std::string) const; | 143 const std::vector<std::pair<std::string,std::string> >& get_target_set_values(std::string) const; |
| 144 | 144 |
| 145 const std::vector<std::string>& get_templates(void) const; | 145 const std::vector<std::string>& get_templates(void) const; |
| 161 | 161 |
| 162 private: | 162 private: |
| 163 // The only valid constructor gets invoked from the make() member function. | 163 // The only valid constructor gets invoked from the make() member function. |
| 164 // The argument should be a pathname for the component repository. The | 164 // The argument should be a pathname for the component repository. The |
| 165 // constructor is responsible for reading in the whole packages file. | 165 // constructor is responsible for reading in the whole packages file. |
| 166 CdlPackagesDatabaseBody(std::string) throw(CdlInputOutputException,std::bad_alloc); | 166 CdlPackagesDatabaseBody(std::string, CdlDiagnosticFnPtr, CdlDiagnosticFnPtr) |
| 167 throw(CdlInputOutputException,std::bad_alloc); | |
| 167 | 168 |
| 168 std::string component_repository; | 169 std::string component_repository; |
| 169 std::vector<std::string> package_names; | 170 std::vector<std::string> package_names; |
| 170 struct package_data { | 171 struct package_data { |
| 171 public: | 172 public: |
| 182 struct target_data { | 183 struct target_data { |
| 183 public: | 184 public: |
| 184 std::string description; | 185 std::string description; |
| 185 std::vector<std::string> aliases; | 186 std::vector<std::string> aliases; |
| 186 std::vector<std::string> packages; | 187 std::vector<std::string> packages; |
| 187 std::string command_prefix; | |
| 188 std::vector<std::pair<std::string,std::string> > cflags; | |
| 189 std::vector<std::string> enable; | 188 std::vector<std::string> enable; |
| 190 std::vector<std::string> disable; | 189 std::vector<std::string> disable; |
| 191 std::vector<std::pair<std::string, std::string> > set_values; | 190 std::vector<std::pair<std::string, std::string> > set_values; |
| 192 }; | 191 }; |
| 193 std::map<std::string, struct target_data> targets; | 192 std::map<std::string, struct target_data> targets; |
