CCachedEnvironmentManager.h
Go to the documentation of this file.
1 #ifndef icomp_CCachedEnvironmentManager_included
2 #define icomp_CCachedEnvironmentManager_included
3 
4 
5 // Qt includes
6 #include <QtCore/QMap>
7 
8 // ACF includes
9 #include <iser/ISerializable.h>
11 #include <icomp/CRegistry.h>
14 
15 
16 namespace icomp
17 {
18 
19 
25  public iser::ISerializable
26 {
27 public:
29 
33  bool AddComposedComponent(const icomp::CComponentAddress& address, const icomp::IRegistry& registry);
34 
38  void InitializeStaticInfo();
39 
40  // reimplemented (icomp::IRegistriesManager)
41  virtual const icomp::IRegistry* GetRegistry(const icomp::CComponentAddress& address, const icomp::IRegistry* contextRegistryPtr = NULL) const;
42 
43  // reimplemented (iser::ISerializable)
44  virtual bool Serialize(iser::IArchive& archive);
45 
46 private:
48  typedef QMap<QByteArray, Registry> RegistriesMap;
49  struct PackageInfo
50  {
52  RegistriesMap registriesMap;
53  };
54  typedef QMap<QByteArray, PackageInfo> PackagesMap;
55 
56  PackagesMap m_packagesMap;
57 };
58 
59 
60 } // namespace icomp
61 
62 
63 #endif // !icomp_CCachedEnvironmentManager_included
64 
65 
Represents global address of component.
Provide environment manager using stored registries.
Interface representing information stored in component registry.
Definition: IRegistry.h:30
Common class for all classes which objects can be archived or restored from archive.
Definition: ISerializable.h:23
virtual const icomp::IRegistry * GetRegistry(const icomp::CComponentAddress &address, const icomp::IRegistry *contextRegistryPtr=NULL) const
Get access to stored registry.
virtual bool Serialize(iser::IArchive &archive)
Load or store state of this object as a archive stream.
Represent input/output persistence archive.
Definition: IArchive.h:30
void InitializeStaticInfo()
Initialize all static info for registries.
#define NULL
Definition: istd.h:64
bool AddComposedComponent(const icomp::CComponentAddress &address, const icomp::IRegistry &registry)
Add single registry to this manager.
Pointer wrapper providing automatic deleting pointed object during destruction.
Definition: TDelPtr.h:20

© 2007-2017 Witold Gantzke and Kirill Lepskiy