Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:12:35

0001 // @(#)root/xmlparser:$Id$
0002 // Author: Jose Lo   12/4/2005
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TXMLAttr
0013 #define ROOT_TXMLAttr
0014 
0015 #include "TObject.h"
0016 
0017 
0018 class TXMLAttr : public TObject {
0019 
0020 private:
0021    TXMLAttr(const TXMLAttr&) = delete;
0022    TXMLAttr& operator=(const TXMLAttr&) = delete;
0023 
0024    const char *fKey;        ///< XML attribute key
0025    const char *fValue;      ///< XML attribute value
0026 
0027 public:
0028    TXMLAttr(const char *key, const char *value) : fKey(key), fValue(value) {}
0029    ~TXMLAttr() override {}
0030 
0031    const char *GetName() const override { return fKey; }
0032    const char *Key() const { return fKey; }
0033    const char *GetValue() const { return fValue; }
0034 
0035    ClassDefOverride(TXMLAttr,0)  //XML attribute pair
0036 };
0037 
0038 #endif