CComponentMetaDescriptionEncoder.h
Go to the documentation of this file.
1 #ifndef icomp_CComponentMetaDescriptionEncoder_included
2 #define icomp_CComponentMetaDescriptionEncoder_included
3 
4 
5 // Qt includes
6 #include <QtCore/QString>
7 #include <QtCore/QStringList>
8 #include <QtCore/QMap>
9 
10 
11 namespace icomp
12 {
13 
14 
19 {
20 public:
21  explicit CComponentMetaDescriptionEncoder(const QString& metaDescription);
22 
26  const QStringList& GetMetaKeys() const;
27 
31  const QStringList& GetValues(const QString& key = QString()) const;
32 
36  const QStringList& GetUnassignedKeywords() const;
37 
38 private:
39  typedef QMap<QString, QStringList> MetaValuesMap;
40 
41  MetaValuesMap m_metaValuesMap;
42  QStringList m_metaKeys;
43  QStringList m_keywords;
44  QStringList m_unassignedKeywords;
45 };
46 
47 
48 } // namespace icomp
49 
50 
51 #endif // !icomp_CComponentMetaDescriptionEncoder_included
52 
53 
const QStringList & GetUnassignedKeywords() const
Get the keyword list.
CComponentMetaDescriptionEncoder(const QString &metaDescription)
Class to decode/encode the component category into human readable text.
const QStringList & GetValues(const QString &key=QString()) const
Get value list for the given key.
const QStringList & GetMetaKeys() const
Get meta keys using in the meta-description.

© 2007-2017 Witold Gantzke and Kirill Lepskiy