33#ifndef BESVersionInfo_h_
34#define BESVersionInfo_h_ 1
52 void add_version(
const std::string &type,
const std::string &name,
const std::string &vers);
57 virtual void add_library(
const std::string &n,
const std::string &v);
58 virtual void add_module(
const std::string &n,
const std::string &v);
59 virtual void add_service(
const std::string &n,
const std::list<std::string> &vers);
65 virtual void end_response()
67 _info->end_response();
70 virtual void add_tag(
const std::string &tag_name,
const std::string &tag_data, std::map<std::string, std::string> *attrs = 0)
72 _info->add_tag(tag_name, tag_data, attrs);
74 virtual void begin_tag(
const std::string &tag_name, std::map<std::string, std::string> *attrs = 0)
76 _info->begin_tag(tag_name, attrs);
78 virtual void end_tag(
const std::string &tag_name)
80 _info->end_tag(tag_name);
87 virtual void add_space(
unsigned long num_spaces)
89 _info->add_space(num_spaces);
91 virtual void add_break(
unsigned long num_breaks)
93 _info->add_break(num_breaks);
107 virtual void print(std::ostream &strm)
112 virtual void dump(std::ostream &strm)
const;
Structure storing information used by the BES to handle the request.
Base exception class for the BES with basic string message.
informational response object
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)=0
transmit the informational object
virtual void add_data(const std::string &s)
add data to this informational object. If buffering is not set then the information is output directl...
virtual void begin_response(const std::string &response_name, BESDataHandlerInterface &dhi)
begin the informational response
virtual void print(std::ostream &strm)
print the information from this informational object to the specified stream
virtual void add_data_from_file(const std::string &key, const std::string &name)
add data from a file to the informational object.
virtual void add_exception(const BESError &e, const std::string &admin)
add exception information to this informational object
virtual void add_data_from_file(const std::string &key, const std::string &name)
add data from a file to the informational object.
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual void begin_response(const std::string &response_name, BESDataHandlerInterface &dhi)
begin the informational response
virtual void add_data(const std::string &s)
add data to this informational object. If buffering is not set then the information is output directl...
virtual void add_exception(const BESError &e, const std::string &admin)
add exception information to this informational object
BESVersionInfo()
constructs a basic text information response object to write version information
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the informational object
virtual void print(std::ostream &strm)
print the information from this informational object to the specified stream