3
MediaTomb - http://www.mediatomb.cc/
5
node.h - this file is part of MediaTomb.
7
Copyright (C) 2005 Gena Batyan <bgeradz@mediatomb.cc>,
8
Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
10
Copyright (C) 2006-2008 Gena Batyan <bgeradz@mediatomb.cc>,
11
Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>,
12
Leonhard Wimmer <leo@mediatomb.cc>
14
MediaTomb is free software; you can redistribute it and/or modify
15
it under the terms of the GNU General Public License version 2
16
as published by the Free Software Foundation.
18
MediaTomb is distributed in the hope that it will be useful,
19
but WITHOUT ANY WARRANTY; without even the implied warranty of
20
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
GNU General Public License for more details.
23
You should have received a copy of the GNU General Public License
24
version 2 along with MediaTomb; if not, write to the Free Software
25
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
27
$Id: node.h 1698 2008-02-23 20:48:30Z lww $
32
#ifndef __MXML_NODE_H__
33
#define __MXML_NODE_H__
35
#include "zmmf/zmmf.h"
43
typedef enum mxml_node_types
51
class Node : public zmm::Object
54
zmm::Ref<zmm::Array<Node> > children;
55
zmm::Ref<Context> context;
56
enum mxml_node_types type;
59
enum mxml_node_types getType() { return type; }
60
virtual zmm::String print();
62
virtual void print_internal(zmm::Ref<zmm::StringBuffer> buf, int indent) = 0;
64
static zmm::String escape(zmm::String str);
70
#endif // __MXML_NODE_H__