some refactoring

This commit is contained in:
Eduardo Bart
2011-07-16 21:13:53 -03:00
parent 8ef1b28546
commit 571801ae39
70 changed files with 430 additions and 1654 deletions

View File

@@ -6,4 +6,3 @@
#include "otmlparser.h"
#endif // OTML_H

View File

@@ -30,7 +30,7 @@ public:
bool hasTag() const { return !m_tag.empty(); }
bool hasChildren() const { return size() > 0; }
bool hasValue() const { return !m_value.empty(); }
bool hasNode(const std::string ctag) const { return at(ctag) != 0; }
bool hasChild(const std::string ctag) const { return at(ctag) != 0; }
void setTag(std::string tag) { m_tag = tag; }
void setLine(int line) { m_line = line; }

View File

@@ -1,7 +1,9 @@
#ifndef OTMLPARSER_H
#define OTMLPARSER_H
#include <global.h>
#include <string>
#include <vector>
#include <istream>
class OTMLNode;