COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
coConfigEntryString.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
8 #ifndef COCONFIGENTRYSTRING_H
9 #define COCONFIGENTRYSTRING_H
10 
11 #include <QStringList>
12 #include <QTextStream>
13 #include <QLinkedList>
14 
15 class QRegExp;
16 
17 #include "coConfigConstants.h"
18 #include <util/coTypes.h>
19 
20 namespace covise
21 {
22 
23 class CONFIGEXPORT coConfigEntryString : public QString
24 {
25 
26 public:
27  coConfigEntryString(const QString &string = QString::null,
29  const QString &configName = "",
30  bool isListItem = false);
31 
32  virtual ~coConfigEntryString();
33 
34  coConfigConstants::ConfigScope getConfigScope() const;
36 
37  const QString &getConfigName() const;
38  coConfigEntryString &setConfigName(const QString &name);
39 
40  const QString &getConfigGroupName() const;
41  coConfigEntryString &setConfigGroupName(const QString &name);
42 
43  bool isListItem() const;
44  void setListItem(bool on);
45 
46 private:
47  QString configName;
48  QString configGroupName;
50  bool listItem;
51 };
52 
53 class CONFIGEXPORT coConfigEntryStringList : public QLinkedList<coConfigEntryString>
54 {
55 
56 public:
59 
60  enum ListType
61  {
62  UNKNOWN = 0,
64  PLAIN_LIST
65  };
66 
68  coConfigEntryStringList filter(const QRegExp &filter) const;
69 
70  operator QStringList();
71 
72  ListType getListType() const;
73  void setListType(ListType listType);
74 
75 private:
77 };
78 
79 QTextStream &operator<<(QTextStream &out, const coConfigEntryStringList list);
80 }
81 #endif
GLuint const GLchar * name
Definition: khronos-glext.h:6722
#define CONFIGEXPORT
Definition: coExport.h:337
coConfigConstants::ConfigScope configScope
Definition: coConfigEntryString.h:49
QString configGroupName
Definition: coConfigEntryString.h:48
bool listItem
Definition: coConfigEntryString.h:50
ListType
Definition: coConfigEntryString.h:60
ListType listType
Definition: coConfigEntryString.h:76
ConfigScope
Definition: coConfigConstants.h:24
QString configName
Definition: coConfigEntryString.h:47
Definition: coConfigEntryString.h:23
Definition: coConfigConstants.h:26
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
Definition: khronos-glext.h:7723
const int UNKNOWN
Definition: covise_shm.h:138
Definition: coConfigEntryString.h:53
Definition: coConfigEntryString.h:63
QTextStream & operator<<(QTextStream &out, const coConfigEntryStringList list)
Definition: coConfigEntryString.cpp:166