OSDN Git Service

adjust integer's signedness
[tjqt4port/tj2qt4.git] / taskjuggler / ParserNode.cpp
1 /*
2  * ParserNode.cpp - 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 #include "ParserNode.h"
14 #include "ParserElement.h"
15
16 ParserNode::ParserNode(ParserElement* pEl) :
17     parentElement(pEl),
18     elements()
19 {
20     elements.setAutoDelete(true);
21     if (pEl)
22         pEl->setNode(this);
23 }
24
25 ParserNode::~ParserNode()
26 {
27 }
28
29 const ParserElement*
30 ParserNode::getElement(const QString& key) const
31 {
32     return elements.find(key);
33 }
34