24 class CoreModuleContext;
31 class ServiceReference;
324 std::vector<ModuleResource>
FindResources(
const std::string& path,
const std::string& filePattern,
bool recurse)
const;
328 friend class CoreModuleActivator;
330 friend class ServiceReferencePrivate;
336 void Init(CoreModuleContext* coreCtx,
ModuleInfo* info);
#define MITKCPPMICROSERVICES_EXPORT
An Any class represents a general type and is capable of storing any type, supporting type-safe extra...
Here we handle all the modules that are loaded in the framework.
Represents a resource (text file, image, etc.) embedded in a CppMicroServices module.
Version identifier for CppMicroServices modules.
Represents a CppMicroServices module.
std::string GetName() const
Returns the name of this module as specified by the US_CREATE_MODULE CMake macro. The module name tog...
std::vector< ModuleResource > FindResources(const std::string &path, const std::string &filePattern, bool recurse) const
Returns resources in this module.
ModuleResource GetResource(const std::string &path) const
Returns the resource at the specified path in this module. The specified path is always relative to t...
static const std::string & PROP_ID()
Returns the property key for looking up this module's id. The property value is of type long.
static const std::string & PROP_VENDOR()
Returns the property key with a value of module.vendor for looking up this module's vendor informatio...
long GetModuleId() const
Returns this module's unique identifier. This module is assigned a unique identifier by the framework...
std::vector< std::string > GetPropertyKeys() const
Returns a list of top-level property keys for this module.
static const std::string & PROP_AUTOLOAD_DIR()
Returns the property key with a value of module.autoload_dir for looking up this module's auto-load d...
std::string GetLocation() const
Returns this module's location.
bool IsLoaded() const
Returns this module's current state.
static const std::string & PROP_LOCATION()
Returns the property key for looking up this module's location in the file system....
Any GetProperty(const std::string &key) const
Returns the value of the specified property for this module. The method returns an empty Any if the p...
static const std::string & PROP_NAME()
Returns the property key for looking up this module's name. The property value is of type std::string...
static const std::string & PROP_AUTOLOADED_MODULES()
Returns the property key with a value of module.autoloaded_modules for looking up this module's auto-...
std::vector< ServiceReferenceU > GetRegisteredServices() const
Returns this module's ServiceReference list for all services it has registered or an empty list if th...
ModuleContext * GetModuleContext() const
Returns this module's ModuleContext. The returned ModuleContext can be used by the caller to act on b...
std::vector< ServiceReferenceU > GetServicesInUse() const
Returns this module's ServiceReference list for all services it is using or returns an empty list if ...
ModuleVersion GetVersion() const
Returns the version of this module as specified by the US_INITIALIZE_MODULE CMake macro....
static const std::string & PROP_VERSION()
Returns the property key with a value of module.version for looking up this module's version identifi...
static const std::string & PROP_DESCRIPTION()
Returns the property key with a value of module.description for looking up this module's description....
ServiceReference< void > ServiceReferenceU
MITKCPPMICROSERVICES_EXPORT std::ostream & operator<<(std::ostream &os, const us::Module &module)
Stream output operator for Module references.
This class is not intended to be used directly. It is exported to support the CppMicroServices module...