14 #if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ >=4 )
28 {
return "FairRegistry"; }
31 {
return fData->PrintStream(os); }
34 {
if (!fData) { fData =
new FairRegistry(); }
return fData->ReadStream(is); }
64 if (i) { xptr =
new bool(
true); }
65 else { xptr =
new bool(
false); }
90 buf << (*xptr ? 1 : 0);
96 TBuffer&
operator<<(TBuffer& buf,
const char*& xptr)
112 if (buf.IsReading()) {
113 Version_t
v = buf.ReadVersion();
115 FairRegistryItem::Streamer(buf);
117 std::string str =
"";
126 char** ppchar =
new char*;
127 *ppchar =
new char[str.length() + 1];
128 strcpy(*ppchar,str.c_str());
129 (*ppchar)[str.length()] =
'\0';
130 fData =
const_cast<const char**
>(ppchar);
132 buf.WriteVersion(IsA());
133 FairRegistryItem::Streamer(buf);
144 if (buf.IsReading()) {
145 Version_t
v = buf.ReadVersion();
147 FairRegistryItem::Streamer(buf);
153 buf.WriteVersion(IsA());
154 FairRegistryItem::Streamer(buf);
162 os <<
"'" << *fData <<
"'";
172 char** ppchar =
new char*;
174 fData =
const_cast<const char**
>(ppchar);
176 if (*fData) {
delete [] *fData; }
178 char* pchar =
new char[stot.length() + 1];
179 strcpy(pchar,stot.c_str());
180 *fData =
const_cast<const char*
>(pchar);
201 char** ppc =
new char*;
202 (*ppc) =
new char [strlen(*fData)+1];
204 const char** ppcc =
const_cast<const char**
>(ppc);