ROOT  6.06/09
Reference Guide
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 #ifndef ROOT_TObject
16 #include "TObject.h"
17 #endif
18 
19 
20 class TXMLAttr : public TObject {
21 
22 private:
23  TXMLAttr(const TXMLAttr&); // Not implemented
24  TXMLAttr& operator=(const TXMLAttr&); // Not implemented
25 
26  const char *fKey; ///< XML attribute key
27  const char *fValue; ///< XML attribute value
28 
29 public:
30  TXMLAttr(const char *key, const char *value) : fKey(key), fValue(value) { }
31  virtual ~TXMLAttr() { }
32 
33  const char *GetName() const { return fKey; }
34  const char *Key() const { return fKey; }
35  const char *GetValue() const { return fValue; }
36 
37  ClassDef(TXMLAttr,0) //XML attribute pair
38 };
39 
40 #endif
const char * fKey
XML attribute key.
Definition: TXMLAttr.h:26
#define ClassDef(name, id)
Definition: Rtypes.h:254
TXMLAttr(const char *key, const char *value)
Definition: TXMLAttr.h:30
TXMLAttribute is the attribute of an Element.
Definition: TXMLAttr.h:20
const char * GetValue() const
Definition: TXMLAttr.h:35
const char * Key() const
Definition: TXMLAttr.h:34
virtual ~TXMLAttr()
Definition: TXMLAttr.h:31
Mother of all ROOT objects.
Definition: TObject.h:58
TXMLAttr(const TXMLAttr &)
const char * GetName() const
Returns name of object.
Definition: TXMLAttr.h:33
TXMLAttr & operator=(const TXMLAttr &)
float value
Definition: math.cpp:443
const char * fValue
XML attribute value.
Definition: TXMLAttr.h:27