33 class CoreModuleContext;
89 static const std::string& PROP_ID();
97 static const std::string& PROP_NAME();
106 static const std::string& PROP_LOCATION();
115 static const std::string& PROP_VERSION();
124 static const std::string& PROP_VENDOR();
133 static const std::string& PROP_DESCRIPTION();
142 static const std::string& PROP_AUTOLOAD_DIR();
153 static const std::string& PROP_AUTOLOADED_MODULES();
166 bool IsLoaded()
const;
206 long GetModuleId()
const;
218 std::string GetLocation()
const;
257 Any GetProperty(
const std::string& key)
const;
266 std::vector<std::string> GetPropertyKeys()
const;
280 std::vector<ServiceReferenceU> GetRegisteredServices()
const;
295 std::vector<ServiceReferenceU> GetServicesInUse()
const;
332 std::vector<ModuleResource> FindResources(
const std::string& path,
const std::string& filePattern,
bool recurse)
const;
336 friend class CoreModuleActivator;
338 friend class ServiceReferencePrivate;
361 US_Core_EXPORT std::ostream&
operator<<(std::ostream& os,
const US_PREPEND_NAMESPACE(
Module)& module);
365 US_Core_EXPORT std::ostream&
operator<<(std::ostream& os, US_PREPEND_NAMESPACE(
Module)
const * module);
ServiceReference< void > ServiceReferenceU
static void info(const char *fmt,...)
US_Core_EXPORT std::ostream & operator<<(std::ostream &os, const us::Module &module)
static std::string GetName(std::string fileName, std::string suffix)
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.