mirror of
https://github.com/edubart/otclient.git
synced 2025-10-18 05:23:26 +02:00
some refactoring
This commit is contained in:
@@ -6,4 +6,3 @@
|
||||
#include "otmlparser.h"
|
||||
|
||||
#endif // OTML_H
|
||||
|
||||
|
@@ -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; }
|
||||
|
@@ -1,7 +1,9 @@
|
||||
#ifndef OTMLPARSER_H
|
||||
#define OTMLPARSER_H
|
||||
|
||||
#include <global.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <istream>
|
||||
|
||||
class OTMLNode;
|
||||
|
||||
|
Reference in New Issue
Block a user