#include <PackageService.hpp>
We also extend the package registration to include "short names" for packages too. For example the URI for the Meta-Object Facility is "http://www.omg.org/Mode/1.4", but we'd like to resolve queries for simply: "Model".
Public Member Functions | |
~PackageService () | |
void | registerPackage (const std::string &uri, Package *package) |
Package * | lookupPackage (const std::string &uri) const |
Static Public Member Functions | |
PackageService & | instance () |
Protected Member Functions | |
PackageService () |
|
|
|
|
|
Return the singleton instance of this class. |
|
Lookup a a package given a namespace URI. If no such URI is found, return 0. |
|
Register a package with to a namespace URI. The URI could be a long name or it could be a short name. |