#include <BESVersionInfo.h>
Inheritance diagram for BESVersionInfo:
Public Member Functions | |
BESVersionInfo () | |
constructs a basic text information response object. | |
virtual | ~BESVersionInfo () |
virtual void | beginBESVersion () |
virtual void | addBESVersion (const string &n, const string &v) |
virtual void | endBESVersion () |
virtual void | beginHandlerVersion () |
virtual void | addHandlerVersion (const string &n, const string &v) |
virtual void | endHandlerVersion () |
virtual void | begin_response (const string &response_name) |
virtual void | end_response () |
virtual void | add_tag (const string &tag_name, const string &tag_data, map< string, string > *attrs=0) |
virtual void | begin_tag (const string &tag_name, map< string, string > *attrs=0) |
virtual void | end_tag (const string &tag_name) |
virtual void | add_data (const string &s) |
add data to this informational object. If buffering is not set then the information is output directly to the output stream. | |
virtual void | add_space (unsigned long num_spaces) |
virtual void | add_break (unsigned long num_breaks) |
virtual void | add_data_from_file (const string &key, const string &name) |
add data from a file to the informational object. | |
virtual void | add_exception (BESException &e) |
add exception information to this informational object | |
virtual void | transmit (BESTransmitter *transmitter, BESDataHandlerInterface &dhi) |
transmit the informational object | |
virtual void | print (FILE *out) |
print the information from this informational object to the specified FILE descriptor | |
virtual void | dump (ostream &strm) const |
dumps information about this object | |
virtual bool | set_buffered (bool buffered) |
return whether the information is to be buffered or not. | |
virtual bool | is_buffered () |
return whether the information is to be buffered or not. | |
Protected Attributes | |
ostream * | _strm |
bool | _buffered |
bool | _response_started |
stack< string > | _tags |
string | _response_name |
Uses the default add_data and print methods, where the print method, if the response is going to a browser, sets the mime type to text.
|
constructs a basic text information response object. Uses the default BES.Info.Buffered key in the dods initialization file to determine whether the information should be buffered or not.
|
|
|
|
Implements BESInfo. Here is the call graph for this function: |
|
add data to this informational object. If buffering is not set then the information is output directly to the output stream.
Reimplemented from BESInfo. Here is the call graph for this function: |
|
add data from a file to the informational object. Adds data from a file to the informational object using the file specified by the passed key string. The key is found from the bes configuration file. If the key does not exist in the initialization file then this information is added to the informational object, no excetion is thrown. If the file does not exist then this information is added to the informational object, no exception is thrown.
Reimplemented from BESInfo. Here is the call graph for this function: |
|
add exception information to this informational object Exception information is added differently to different informational objects, such as html, xml, plain text. But, using the other methods of this class we can take care of exceptions here.
Reimplemented from BESInfo. Here is the call graph for this function: |
|
Implements BESInfo. Here is the call graph for this function: |
|
Implements BESInfo. Here is the call graph for this function: |
|
|
|
|
|
Reimplemented from BESInfo. Here is the call graph for this function: |
|
Reimplemented from BESInfo. Here is the call graph for this function: |
|
|
|
|
|
dumps information about this object Displays the pointer value of this instance along with information about this version information object
Reimplemented from BESInfo. |
|
Reimplemented from BESInfo. Here is the call graph for this function: |
|
Reimplemented from BESInfo. Here is the call graph for this function: |
|
|
|
|
|
return whether the information is to be buffered or not.
|
|
print the information from this informational object to the specified FILE descriptor If the information was not buffered then this method does nothing, otherwise the information is output to the specified FILE descriptor.
Reimplemented from BESInfo. Here is the call graph for this function: |
|
return whether the information is to be buffered or not.
|
|
transmit the informational object The derived informational object knows how it needs to be transmitted. Does it need to be sent as html? As text? As something else?
Implements BESInfo. Here is the call graph for this function: |
|
|
|
|
|
|
|
|
|
|