CPackageStaticInfo.h
Go to the documentation of this file.
1 #ifndef icomp_CPackageStaticInfo_included
2 #define icomp_CPackageStaticInfo_included
3 
4 
6 
7 
8 namespace iser
9 {
10  class IArchive;
11 };
12 
13 
14 namespace icomp
15 {
16 
17 
23 {
24 public:
27  const QString& description,
28  const QString& keywords);
29 
30  void Reset();
31 
32  virtual bool SerializeMeta(iser::IArchive& archive);
33 
40  virtual void RegisterEmbeddedComponentInfo(const QByteArray& embeddedId, const IComponentStaticInfo* componentInfoPtr);
41 
42  // reimplemented (icomp::IElementStaticInfo)
43  virtual Ids GetMetaIds(int metaGroupId) const;
44  virtual const IComponentStaticInfo* GetEmbeddedComponentInfo(const QByteArray& embeddedId) const;
45 
46  // reimplemented (icomp::IComponentStaticInfo)
47  virtual const QString& GetDescription() const;
48  virtual const QString& GetKeywords() const;
49 
50 private:
51  typedef QMap<QByteArray, const IComponentStaticInfo*> EmbeddedComponentInfos;
52  EmbeddedComponentInfos m_embeddedComponentInfos;
53 
54  QString m_description;
55  QString m_keywords;
56 };
57 
58 
59 } // namespace icomp
60 
61 
62 #endif // !icomp_CPackageStaticInfo_included
63 
64 
virtual const QString & GetDescription() const
Get human readable description of this component.
virtual const QString & GetKeywords() const
Get keywords for this component.
virtual bool SerializeMeta(iser::IArchive &archive)
Static info for component package.
virtual const IComponentStaticInfo * GetEmbeddedComponentInfo(const QByteArray &embeddedId) const
Return number of interfaces for specific slot.
Represent input/output persistence archive.
Definition: IArchive.h:30
virtual Ids GetMetaIds(int metaGroupId) const
Get list of meta IDs associated with some meta key.
This interface provide static information about component meta info.
virtual void RegisterEmbeddedComponentInfo(const QByteArray &embeddedId, const IComponentStaticInfo *componentInfoPtr)
Register embedded component static info.

© 2007-2017 Witold Gantzke and Kirill Lepskiy