OSDN Git Service

Automatically align underspecified tasks boundaries on project boundaries when possible.
[tjqt4port/tj2qt4.git] / taskjuggler / ParserNode.h
1 /*
2  * ParserNode.h - TaskJuggler
3  *
4  * Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@kde.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of version 2 of the GNU General Public License as
8  * published by the Free Software Foundation.
9  *
10  * $Id$
11  */
12
13 #ifndef _ParserNode_
14 #define _ParserNode_
15
16 #include <qdict.h>
17
18 class ParserElement;
19
20 class ParserNode
21 {
22 public:
23     ParserNode(ParserElement* parent = 0);
24     ~ParserNode();
25
26     void add(const ParserElement* pe, const QString& key)
27     { 
28         elements.insert(key, pe); 
29     }
30
31     const ParserElement* getElement(const QString& key) const;
32
33     ParserElement* getParentElement() const { return parentElement; }
34
35 private:
36     ParserElement* parentElement;
37     QDict<const ParserElement> elements;
38 } ;
39
40 #endif
41