32 , sepLine(
"##############################################################################\n")
45 const Int_t maxbuf = 4000;
48 sprintf(buf2,
"%s%s%s",
"[", name,
"]");
51 pFile->seekg(0, ios::beg);
52 while (!
pFile->eof()) {
53 pFile->getline(buf, maxbuf);
58 if (!strncmp(buf, buf2, strlen(buf2))) {
71 Bool_t allFound = kTRUE;
72 for (Int_t i = 0; i < setSize; i++) {
86 const Text_t* context,
88 const Text_t* description)
95 *
pFile <<
"[" << name <<
"]\n";
96 if (strlen(context) > 0) {
97 *
pFile <<
"// Parameter Context: " << context <<
"\n";
99 if (strlen(author) > 0) {
100 *
pFile <<
"author: " << author <<
"\n";
102 TString t = description;
104 t = t.ReplaceAll(
"\n",
" \\\n");
105 *
pFile <<
"description: " << t <<
"\n";
107 *
pFile <<
"//-----------------------------------------------------------"
108 "-----------------\n";
114 const Int_t maxbuf = 4000;
118 Ssiz_t n = s.First(
':');
119 Ssiz_t m = s.Last(
'\\');
122 pVal = s(n + 1, m - n - 1);
124 pVal = s(n + 1, s.Length() - n - 1);
126 pVal = pVal.Strip(pVal.kLeading);
129 pFile->getline(buf, maxbuf);
140 if (pName.CompareTo(
"author") == 0) {
142 }
else if (pName.CompareTo(
"description") == 0) {
151 *
pFile <<
"author: " << t <<
"\n";
155 t = t.ReplaceAll(
"\n",
" \\\n");
156 *
pFile <<
"description: " << t <<
"\n";
Bool_t findContainer(const Text_t *name)
pointer to ascii file
ClassImp(FairEventBuilder)
const char * getDescription() const
TString sepLine
header of container output in file
void readComment(const Char_t *, FairParSet *)
std::fstream * pFile
comment line
const char * getAuthor() const
void writeComment(FairParSet *)
void writeHeader(const Text_t *, const Text_t *context="", const Text_t *author="", const Text_t *description="")
Bool_t checkAllFound(Int_t *, Int_t)
void setAuthor(const char *s)
void setDescription(const char *s)
FairDetParAsciiFileIo(std::fstream *f)