Snap! Websites
An Open Source CMS System in C++
#include <stream.h>
The stream manages a position object. The call can use this function to retrieve a read/write version of the current position.
Definition at line 825 of file stream.cpp.
References as2js::Input::f_position.
The stream manages a position object. The call can use this function to retrieve a read-only version of the current position.
Definition at line 838 of file stream.cpp.
References as2js::Input::f_position.
This function writes the specified data
string to this output file.
If an error occurs, the process writes a fatal error in stderr and exists.
Implements as2js::Output.
Definition at line 953 of file stream.cpp.
References as2js::AS_ERR_IO_ERROR, as2js::Input::get_position(), as2js::MESSAGE_LEVEL_FATAL, and as2js::String::to_utf8().
This function is used to open the output file.
One FileOutput object can only be used to output to one file. Trying to reuse the same object with a different filename will generate an exception.
Definition at line 925 of file stream.cpp.
References as2js::Input::get_position(), as2js::Position::set_filename(), and as2js::String::to_utf8().
This function writes the specified string to the output stream. Since we pretty much only support text based files, we just use this format.
All outputs are done in UTF-8.
If the function cannot write to the destination, then it throws an error.
Definition at line 857 of file stream.cpp.
This document is part of the Snap! Websites Project.
Copyright by Made to Order Software Corp.
Snap! Websites
An Open Source CMS System in C++