// @(#)root/xmlparser:$Id$
// Author: Jose Lo   12/4/2005

/*************************************************************************
 * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TXMLAttr
#define ROOT_TXMLAttr

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TXMLAttr                                                             //
//                                                                      //
// TXMLAttr is the attribute of an Element. It contains the name (key)  //
// and the value of the attribute.                                      //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TObject
#include "TObject.h"
#endif


class TXMLAttr : public TObject {

private:
   TXMLAttr(const TXMLAttr&); // Not implemented
   TXMLAttr& operator=(const TXMLAttr&); // Not implemented

   const char *fKey;        // XML attribute key
   const char *fValue;      // XML attribute value

public:
   TXMLAttr(const char *key, const char *value) : fKey(key), fValue(value) { }
   virtual ~TXMLAttr() { }

   const char *GetName() const { return fKey; }
   const char *Key() const { return fKey; }
   const char *GetValue() const { return fValue; }

   ClassDef(TXMLAttr,0)  //XML attribute pair
};

#endif
 TXMLAttr.h:1
 TXMLAttr.h:2
 TXMLAttr.h:3
 TXMLAttr.h:4
 TXMLAttr.h:5
 TXMLAttr.h:6
 TXMLAttr.h:7
 TXMLAttr.h:8
 TXMLAttr.h:9
 TXMLAttr.h:10
 TXMLAttr.h:11
 TXMLAttr.h:12
 TXMLAttr.h:13
 TXMLAttr.h:14
 TXMLAttr.h:15
 TXMLAttr.h:16
 TXMLAttr.h:17
 TXMLAttr.h:18
 TXMLAttr.h:19
 TXMLAttr.h:20
 TXMLAttr.h:21
 TXMLAttr.h:22
 TXMLAttr.h:23
 TXMLAttr.h:24
 TXMLAttr.h:25
 TXMLAttr.h:26
 TXMLAttr.h:27
 TXMLAttr.h:28
 TXMLAttr.h:29
 TXMLAttr.h:30
 TXMLAttr.h:31
 TXMLAttr.h:32
 TXMLAttr.h:33
 TXMLAttr.h:34
 TXMLAttr.h:35
 TXMLAttr.h:36
 TXMLAttr.h:37
 TXMLAttr.h:38
 TXMLAttr.h:39
 TXMLAttr.h:40
 TXMLAttr.h:41
 TXMLAttr.h:42
 TXMLAttr.h:43
 TXMLAttr.h:44
 TXMLAttr.h:45
 TXMLAttr.h:46
 TXMLAttr.h:47
 TXMLAttr.h:48
 TXMLAttr.h:49