33 #ifndef BESVersionInfo_h_ 34 #define BESVersionInfo_h_ 1 53 void add_version(
const string &type,
55 const string &vers ) ;
60 virtual void add_library(
const string &n,
const string &v ) ;
61 virtual void add_module(
const string &n,
const string &v ) ;
62 virtual void add_service(
const string &n,
const list<string> &vers);
69 virtual void end_response( )
71 _info->end_response( ) ;
74 virtual void add_tag(
const string &tag_name,
75 const string &tag_data,
76 map<string,string> *attrs = 0 )
78 _info->add_tag( tag_name, tag_data, attrs ) ;
80 virtual void begin_tag(
const string &tag_name,
81 map<string,string> *attrs = 0 )
83 _info->begin_tag( tag_name, attrs ) ;
85 virtual void end_tag(
const string &tag_name )
87 _info->end_tag( tag_name ) ;
94 virtual void add_space(
unsigned long num_spaces )
96 _info->add_space( num_spaces ) ;
98 virtual void add_break(
unsigned long num_breaks )
100 _info->add_break( num_breaks ) ;
114 _info->
transmit( transmitter, dhi ) ;
118 _info->
print( strm ) ;
121 virtual void dump( ostream &strm )
const ;
124 #endif // BESVersionInfo_h_
virtual void add_exception(BESError &e, const string &admin)
add exception information to this informational object
virtual void add_data_from_file(const string &key, const string &name)
add data from a file to the informational object.
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the informational object
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)=0
transmit the informational object
virtual void begin_response(const string &response_name, BESDataHandlerInterface &dhi)
begin the informational response
BESVersionInfo()
constructs a basic text information response object to write version information
informational response object
Abstract exception class for the BES with basic string message.
virtual void print(ostream &strm)
print the information from this informational object to the specified stream
virtual void add_exception(BESError &e, const string &admin)
add exception information to this informational object
virtual void dump(ostream &strm) const
dumps information about this object
Structure storing information used by the BES to handle the request.
virtual void add_data_from_file(const string &key, const string &name)
add data from a file to the informational object.
virtual void begin_response(const string &response_name, BESDataHandlerInterface &dhi)
begin the informational response
virtual void add_data(const string &s)
add data to this informational object. If buffering is not set then the information is output directl...
virtual void add_data(const string &s)
add data to this informational object. If buffering is not set then the information is output directl...
virtual void print(ostream &strm)
print the information from this informational object to the specified stream