Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
Comment.h
1
/*
2
* $Id$
3
* xom::Comment class interface
4
*
5
* This file is part of OTAWA
6
* Copyright (c) 2009, IRIT UPS.
7
*
8
* OTAWA is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
12
*
13
* OTAWA is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with OTAWA; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21
*/
22
#ifndef ELM_XOM_COMMMENT_H_
23
#define ELM_XOM_COMMMENT_H_
24
25
#include <elm/xom/Node.h>
26
27
namespace
elm
{
namespace
xom {
28
29
// Comment class
30
class
Comment
:
public
Node
{
31
friend
class
NodeFactory
;
32
protected
:
33
Comment
(
void
*
node
);
34
public
:
35
Comment
(
const
Comment
*comment);
36
Comment
(
String
data);
37
void
setValue
(
String
data);
38
String
getText
(
void
);
39
40
// Node overload
41
virtual
Node
*
copy
(
void
);
42
virtual
Node
*
getChild
(
int
index);
43
virtual
int
getChildCount
(
void
);
44
virtual
String
getValue
(
void
);
45
virtual
String
toXML
(
void
);
46
};
47
48
} }
// elm::xom
49
50
#endif
/* ELM_XOM_H_ */
elm::xom::Node::node
void * node
Definition:
Node.h:60
elm::xom::NodeFactory
Definition:
NodeFactory.h:27
elm::xom::Comment::setValue
void setValue(String data)
Definition:
xom_Comment.cpp:72
elm::xom::String
Definition:
String.h:35
elm::xom::Comment::toXML
virtual String toXML(void)
Definition:
xom_Comment.cpp:109
elm::xom::Comment::copy
virtual Node * copy(void)
Definition:
xom_Comment.cpp:63
elm::xom::Comment::getChild
virtual Node * getChild(int index)
Definition:
xom_Comment.cpp:88
elm
Definition:
adapter.h:26
elm::xom::Comment::getValue
virtual String getValue(void)
Definition:
xom_Comment.cpp:102
elm::xom::Comment::Comment
Comment(void *node)
Definition:
xom_Comment.cpp:40
elm::xom::Comment
Definition:
Comment.h:30
elm::xom::Comment::getText
String getText(void)
Definition:
xom_Comment.cpp:81
elm::xom::Comment::getChildCount
virtual int getChildCount(void)
Definition:
xom_Comment.cpp:95
elm::xom::Node
Definition:
Node.h:40
include
elm
xom
Comment.h
Generated on Fri Jul 23 2021 11:32:45 for Elm by
1.8.17