ICF 3.1.1.10
Technical documentation of ICF Libraries
CComponentMetaDescriptionEncoder.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#pragma once
7
8
9// Qt includes
10#include <QtCore/QString>
11#include <QtCore/QStringList>
12#include <QtCore/QMap>
13
14
15namespace icomp
16{
17
18
23{
24public:
25 explicit CComponentMetaDescriptionEncoder(const QString& metaDescription);
26
30 const QStringList& GetMetaKeys() const;
31
35 const QStringList& GetValues(const QString& key = QString()) const;
36
40 const QStringList& GetUnassignedKeywords() const;
41
42private:
43 typedef QMap<QString, QStringList> MetaValuesMap;
44
45 MetaValuesMap m_metaValuesMap;
46 QStringList m_metaKeys;
47 QStringList m_keywords;
48 QStringList m_unassignedKeywords;
49};
50
51
52} // namespace icomp
53
54
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.
CComponentMetaDescriptionEncoder(const QString &metaDescription)
const QStringList & GetUnassignedKeywords() const
Get the keyword list.
Package with interfaces and class used for components concept.

© Witold Gantzke and Kirill Lepskiy