39 using std::ostringstream ;
46 #define BES_INFO_FILE_BUFFER_SIZE 4096
58 _strm =
new ostringstream ;
84 if( b ==
"true" || b ==
"True" || b ==
"TRUE" ||
85 b ==
"yes" || b ==
"Yes" || b ==
"YES" )
87 _strm =
new ostringstream ;
90 if( strm && strm_owned )
97 string s =
"Informational response not buffered but no stream passed" ;
136 string s =
"Not all tags were ended in info response" ;
143 map<string,string> *attrs )
145 _tags.push( tag_name ) ;
151 if(
_tags.size() == 0 ||
_tags.top() != tag_name )
153 string s = (string)
"tag " + tag_name
154 +
" already ended or not started" ;
207 +
" not found, information not available\n" ) ;
211 ifstream ifs( file.c_str() ) ;
212 int myerrno = errno ;
215 string serr = name +
" file " + file
216 +
" not found, information not available: " ;
217 char *err = strerror( myerrno ) ;
221 serr +=
"Unknown error" ;
258 ostringstream stype ;
260 add_tag(
"Type", stype.str() ) ;
262 add_tag(
"Administrator", admin ) ;
266 ostringstream sline ;
268 add_tag(
"Line", sline.str() ) ;
287 strm << ((ostringstream *)
_strm)->str() ;
302 << (
void *)
this <<
")" << endl ;
311 stack<string> temp_tags =
_tags ;
312 while( !temp_tags.empty() )
314 string tag = temp_tags.top() ;