You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#ifndef NODE_H |
|
#define NODE_H |
|
|
|
#include <memory> |
|
#include <vector> |
|
|
|
enum class NodeType { |
|
ROOT, |
|
TAG, |
|
TEXT |
|
}; |
|
|
|
class Node { |
|
public: |
|
Node(NodeType nodeType); |
|
virtual ~Node(); |
|
NodeType nodeType; |
|
std::shared_ptr<Node> parent; |
|
std::vector<std::shared_ptr<Node>> children; |
|
}; |
|
|
|
#endif
|
|
|