#include <BESTextInfo.h>
Inheritance diagram for BESTextInfo:
Public Member Functions | |
BESTextInfo (bool ishttp=false) | |
constructs a basic text information response object. | |
BESTextInfo (const string &key, bool ishttp=false) | |
constructs a basic text information response object. | |
virtual | ~BESTextInfo () |
virtual void | begin_response (const string &response_name) |
begin the informational response | |
virtual void | add_tag (const string &tag_name, const string &tag_data, map< string, string > *attrs=0) |
add tagged information to the inforamtional response | |
virtual void | begin_tag (const string &tag_name, map< string, string > *attrs=0) |
begin a tagged part of the information, information to follow | |
virtual void | end_tag (const string &tag_name) |
end a tagged part of the informational response | |
virtual void | add_data (const string &s) |
add string data to the informational response | |
virtual void | add_space (unsigned long num_spaces) |
add a space to the informational response | |
virtual void | add_break (unsigned long num_breaks) |
add a line break to the information | |
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 text information as text | |
virtual void | dump (ostream &strm) const |
dumps information about this object | |
virtual void | end_response () |
virtual void | add_exception (BESException &e) |
add exception information to this informational object | |
virtual void | print (FILE *out) |
print the information from this informational object to the specified FILE descriptor | |
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. | |
Static Public Member Functions | |
static BESInfo * | BuildTextInfo (const string &info_type) |
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. Text informational objects can also be sent as html with an html header. We need to know this if the informationl is not buffered. If it isn't buffered then we need to send that text header.
|
|
constructs a basic text information response object. Uses the default specified key in the bes configuration file to determine whether the information should be buffered or not. Text informational objects can also be sent as html with an html header. We need to know this if the informationl is not buffered. If it isn't buffered then we need to send that text header.
|
|
|
|
add a line break to the information
Implements BESInfo. |
|
add string data to the informational response
Reimplemented from BESInfo. |
|
add data from a file to the informational object This method simply adds a .TXT to the end of the key and passes the request on up to the BESInfo parent class.
Reimplemented from BESInfo. |
|
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 in BESSilentInfo, and BESVersionInfo. |
|
add a space to the informational response
Implements BESInfo. |
|
add tagged information to the inforamtional response
Implements BESInfo. |
|
begin the informational response Because this is text informational object, no begin tags are needed
Reimplemented from BESInfo. |
|
begin a tagged part of the information, information to follow
Reimplemented from BESInfo. |
|
|
|
dumps information about this object Displays the pointer value of this instance along with information about this text information object
Reimplemented from BESInfo. |
|
Reimplemented in BESHTMLInfo, BESVersionInfo, and BESXMLInfo. |
|
end a tagged part of the informational response If the named tag is not the current tag then an error is thrown.
Reimplemented from BESInfo. |
|
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 in BESSilentInfo, BESVersionInfo, and BESXMLInfo. |
|
return whether the information is to be buffered or not.
|
|
transmit the text information as text use the send_text method on the transmitter to transmit the information back to the client.
Implements BESInfo. |
|
|
|
|
|
|
|
|
|
|