// @(#)root/xmlparser:$Id: TXMLAttr.h 20882 2007-11-19 11:31:26Z rdm $
// 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:
   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

Last update: Thu Jan 17 09:05:24 2008

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.