48 I_ASSIGN(m_registryLoaderCompPtr,
"RegistryLoader",
"Loader used to read registry",
true,
"RegistryLoader");
49 I_ASSIGN(m_configFilePathCompPtr,
"ConfigFilePath",
"Path of packages configuration file will be loaded, if enabled",
false,
"ConfigFilePath");
50 I_ASSIGN(m_ignoreRealPackagesAttrPtr,
"AreRealPackagesIgnored",
"If set to true, all real packages will be ignored",
true,
false);
58 virtual bool LoadPackages(
const QString& configFilePath = QString())
override;
83 struct RealPackageInfo
91 typedef QMap<QByteArray, RealPackageInfo> RealPackagesMap;
92 RealPackagesMap m_realPackagesMap;
94 typedef QMap<QByteArray, QString> ComponentIdToRegistryFileMap;
95 struct CompositePackageInfo
98 ComponentIdToRegistryFileMap componentIdToRegistryFileMap;
104 typedef QMap<QByteArray, CompositePackageInfo> CompositePackagesMap;
105 CompositePackagesMap m_compositePackagesMap;
108 typedef QMap<QString, RegistryPtr> RegistriesMap;
110 mutable RegistriesMap m_registriesMap;
112 mutable PathList m_usedConfigFilesList;
113 mutable PathList m_usedPackageDirsList;
114 mutable PathList m_usedPackageFilesList;
115 mutable PathList m_usedRegistryFilesList;
119 I_ATTR(
bool, m_ignoreRealPackagesAttrPtr);
Represents global address of component.
QSet< CComponentAddress > ComponentAddresses
QSet< QString > PathList
List of pathes.
Allow access to registries defined by composed components.
Interface representing information stored in component registry.
Interface for a ACF registry loader.
Common interface for any file system item name (e.g directory, file or URL path)
Interface providing loading and saving of data objects.
Template wrapper adding comprehensive logging functionality to components.
Manages registries and composed component.
void RegisterPackagesDir(const QString &subDir, int definitionLevel)
virtual PathList GetConfigurationPathList(PathType pathType) const override
Get list of files used for configuration.
virtual ComponentAddresses GetComponentAddresses(int typeFlag=CTF_ALL) const override
Get addresses of known components.
virtual void OnComponentCreated() override
Called when component is created.
bool LoadConfigFile(const QString &configFile, int definitionLevel)
virtual int GetPackageType(const QByteArray &packageId) const override
Get type of package as defined in PackageType.
ilog::CLoggerComponentBase BaseClass
virtual QString GetRegistryPath(const icomp::CComponentAddress &address) const override
Get registry file path, if it is composed registry.
void RegisterPackageFile(const QString &file, int definitionLevel)
virtual bool LoadPackages(const QString &configFilePath=QString()) override
Configure environment for specified file path.
bool CheckAndMarkPath(PathList &pathList, const QDir &directory, const QString &path, QString &resultPath) const
virtual const icomp::IRegistry * GetRegistryFromFile(const QString &path) const override
Get an ACF registry from a given file.
virtual const icomp::IRegistry * GetRegistry(const icomp::CComponentAddress &address, const icomp::IRegistry *contextRegistryPtr=NULL) const override
Get access to stored registry.
@ MI_CANNOT_CREATE_ELEMENT
virtual int GetPackageDefinitionLevel(const QByteArray &packageId) const override
Get level of package definition in configuration.
virtual QString GetPackagePath(const QByteArray &packageId) const override
Get directory path of specified component package.
Pointer wrapper providing automatic deleting pointed object during destruction.
Package contains implementation for the management of ACF environment.