ROOT
6.30.04
Reference Guide
All
Namespaces
Files
Pages
TXMLAttr.h
Go to the documentation of this file.
1
// @(#)root/xmlparser:$Id$
2
// Author: Jose Lo 12/4/2005
3
4
/*************************************************************************
5
* Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
12
#ifndef ROOT_TXMLAttr
13
#define ROOT_TXMLAttr
14
15
#include "
TObject.h
"
16
17
18
class
TXMLAttr :
public
TObject {
19
20
private
:
21
TXMLAttr(
const
TXMLAttr&);
// Not implemented
22
TXMLAttr& operator=(
const
TXMLAttr&);
// Not implemented
23
24
const
char
*fKey;
///< XML attribute key
25
const
char
*fValue;
///< XML attribute value
26
27
public
:
28
TXMLAttr(
const
char
*key,
const
char
*value) : fKey(key), fValue(value) { }
29
virtual
~TXMLAttr() { }
30
31
const
char
*GetName()
const
{
return
fKey; }
32
const
char
*Key()
const
{
return
fKey; }
33
const
char
*GetValue()
const
{
return
fValue; }
34
35
ClassDef(TXMLAttr,0)
//XML attribute pair
36
};
37
38
#endif
TObject.h
io
xmlparser
inc
TXMLAttr.h
Generated on Tue May 5 2020 14:02:58 for ROOT by
1.8.5