File indexing completed on 2025-01-18 10:12:35
0001
0002
0003
0004
0005
0006
0007
0008
0009
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;
0025 const char *fValue;
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)
0036 };
0037
0038 #endif