00001
00002
00003 #ifndef DBISTRING
00004 #define DBISTRING
00005
00028 #include <string>
00029
00030 #ifndef ROOT_Rtypes
00031 #if !defined(__CINT__) || defined(__MAKECINT__)
00032 #include "Rtypes.h"
00033 #endif
00034 #endif
00035
00036 class DbiString
00037 {
00038
00039 public:
00040
00041
00042 DbiString();
00043 DbiString(const Char_t* str);
00044 DbiString(const std::string& str);
00045 virtual ~DbiString();
00046
00047
00048 const Char_t* c_str() const { return fString.c_str(); }
00049 const std::string& GetString() const { return fString; }
00050
00051
00052 DbiString& operator<<(Int_t data);
00053 DbiString& operator<<(UInt_t data);
00054 DbiString& operator<<(Float_t data);
00055 DbiString& operator<<(Char_t data);
00056 DbiString& operator<<(const Char_t* data);
00057 DbiString& operator<<(const std::string& data);
00058 void Clear() { fString.clear(); }
00059 std::string& GetString() { return fString; }
00060
00061 private:
00062
00063
00064
00065
00067 std::string fString;
00068
00069 ClassDef(DbiString,0)
00070
00071 };
00072
00073
00074 #endif // DBISTRING
00075