COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
coConfigXercesRoot.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 COCONFIGXERCESROOT_H
9 #define COCONFIGXERCESROOT_H
10 
11 #include <QFile>
12 #include <QHash>
13 
14 #include <config/coConfigRoot.h>
15 #include <config/coConfigEntry.h>
17 
18 #include <util/coTypes.h>
19 
20 #include <xercesc/framework/psvi/XSAnnotation.hpp>
21 #include <xercesc/framework/psvi/XSNamedMap.hpp>
22 
23 namespace XERCES_CPP_NAMESPACE
24 {
25 class DOMNode;
26 class SchemaGrammar;
27 class XercesDOMParser;
28 };
29 
30 namespace covise
31 {
32 
33 class coConfigGroup;
34 
36 {
37 
38 public:
39  coConfigXercesRoot(const QString &name, const QString &filename,
40  bool create = false, coConfigGroup *group = NULL);
41  coConfigXercesRoot(const xercesc::DOMNode *node, const QString &name,
42  const QString &filename = QString::null, coConfigGroup *group = NULL);
43 
44  virtual ~coConfigXercesRoot();
45 
46  // QHash<QString, QString>* getSchemaInfosForNode (xercesc::DOMNode* node);
47 
48  virtual coConfigRoot *clone() const;
49  virtual void merge(const coConfigRoot *with);
50 
51 private:
53 
54  void setContentsFromDom(const xercesc::DOMNode *node);
55 
56  xercesc::DOMNode *loadFile(const QString &filename);
57 
58  virtual void load(bool create = false);
59 
60  virtual void createGlobalConfig();
61  virtual void createHostConfig(const QString &hostname);
62 };
63 }
64 #endif
GLsizei GLsizei GLchar * source
Definition: khronos-glext.h:6739
Definition: coConfigGroup.h:25
GLuint const GLchar * name
Definition: khronos-glext.h:6722
void setContentsFromDom(const xercesc::DOMNode *node)
Definition: coConfigRoot.cpp:229
virtual coConfigRoot * clone() const
Definition: coConfigRoot.cpp:983
virtual void createGlobalConfig()
Definition: coConfigRoot.cpp:948
#define NULL
Definition: covise_list.h:22
bool create
Definition: coConfigRoot.h:120
Definition: coConfigRoot.h:29
Definition: coConfigXercesRoot.h:35
GLboolean GLuint group
Definition: khronos-glext.h:12389
virtual ~coConfigXercesRoot()
Definition: coConfigRoot.cpp:126
virtual void load(bool create=false)
Definition: coConfigRoot.cpp:190
coConfigXercesRoot(const QString &name, const QString &filename, bool create=false, coConfigGroup *group=NULL)
Definition: coConfigRoot.cpp:93
virtual void merge(const coConfigRoot *with)
Definition: coConfigRoot.cpp:988
virtual void createHostConfig(const QString &hostname)
Definition: coConfigRoot.cpp:960
xercesc::DOMNode * loadFile(const QString &filename)
Definition: coConfigRoot.cpp:793
QString filename
Definition: coConfigRoot.h:106