AXCEL C++ Framework
Elegance through abstraction
|
Output stream. More...
#include <axcel.h>
Public Member Functions | |
virtual string | type () |
Get type of object. | |
virtual int | putc (int c)=0 |
Write byte. | |
virtual int | puts (const char *s) |
Write string. | |
virtual int | printf (const char *format,...) |
Formatted output. | |
virtual size_t | write (const char *ptr, size_t size, size_t nmemb) |
Write raw data. | |
virtual size_t | write (data d) |
Write raw data. | |
output & | operator<< (object &o) |
Print object. | |
output & | operator<< (bool val) |
output & | operator<< (short val) |
output & | operator<< (unsigned short val) |
output & | operator<< (int val) |
output & | operator<< (unsigned int val) |
output & | operator<< (long val) |
output & | operator<< (unsigned long val) |
output & | operator<< (float val) |
output & | operator<< (double val) |
output & | operator<< (long double val) |
output & | operator<< (const void *val) |
output & | operator<< (char c) |
output & | operator<< (signed char c) |
output & | operator<< (unsigned char c) |
output & | operator<< (const char *s) |
output & | operator<< (string s) |
output & | put (object &o) |
Print object. | |
output & | put (bool val) |
output & | put (short val) |
output & | put (unsigned short val) |
output & | put (int val) |
output & | put (long val) |
output & | put (unsigned long val) |
output & | put (float val) |
output & | put (double val) |
output & | put (long double val) |
output & | put (const void *val) |
output & | put (char c) |
output & | put (signed char c) |
output & | put (unsigned char c) |
output & | put (const char *s) |
output & | echo (object &o) |
Print object on new line. | |
output & | echo () |
output & | echo (bool val) |
output & | echo (short val) |
output & | echo (unsigned short val) |
output & | echo (int val) |
output & | echo (size_t val) |
output & | echo (long val) |
output & | echo (unsigned long val) |
output & | echo (float val) |
output & | echo (double val) |
output & | echo (long double val) |
output & | echo (const void *val) |
output & | echo (char c) |
output & | echo (signed char c) |
output & | echo (unsigned char c) |
output & | echo (const char *s) |
output & | put (string s) |
output & | echo (string s) |
io::output & axcel::io::output::echo | ( | object & | o | ) |
Print object on new line.
o | object to output |
Casts object o to string to get suitable string representation of the object's data. The string is then written to this stream followed by a '\n' character.
Reimplemented in axcel::io::ios.
output& axcel::io::output::echo | ( | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::echo | ( | bool | val | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::echo | ( | const char * | s | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::echo | ( | short | val | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::echo | ( | unsigned short | val | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::echo | ( | int | val | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::echo | ( | size_t | val | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::echo | ( | long | val | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::echo | ( | unsigned long | val | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::echo | ( | float | val | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::echo | ( | double | val | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::echo | ( | long double | val | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::echo | ( | const void * | val | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::echo | ( | char | c | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::echo | ( | signed char | c | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::echo | ( | unsigned char | c | ) | [inline] |
Reimplemented in axcel::io::ios.
io::output & axcel::io::output::echo | ( | string | s | ) |
Reimplemented in axcel::io::ios.
io::output & axcel::io::output::operator<< | ( | bool | val | ) |
Reimplemented in axcel::io::ios.
io::output & axcel::io::output::operator<< | ( | char | c | ) |
Reimplemented in axcel::io::ios.
io::output & axcel::io::output::operator<< | ( | double | val | ) |
Reimplemented in axcel::io::ios.
io::output & axcel::io::output::operator<< | ( | long double | val | ) |
Reimplemented in axcel::io::ios.
io::output & axcel::io::output::operator<< | ( | short | val | ) |
Reimplemented in axcel::io::ios.
io::output & axcel::io::output::operator<< | ( | const void * | val | ) |
Reimplemented in axcel::io::ios.
io::output & axcel::io::output::operator<< | ( | unsigned short | val | ) |
Reimplemented in axcel::io::ios.
io::output & axcel::io::output::operator<< | ( | signed char | c | ) |
Reimplemented in axcel::io::ios.
io::output & axcel::io::output::operator<< | ( | unsigned char | c | ) |
Reimplemented in axcel::io::ios.
io::output & axcel::io::output::operator<< | ( | unsigned int | val | ) |
Reimplemented in axcel::io::ios.
io::output & axcel::io::output::operator<< | ( | const char * | s | ) |
Reimplemented in axcel::io::ios.
io::output & axcel::io::output::operator<< | ( | string | s | ) |
Reimplemented in axcel::io::ios.
io::output & axcel::io::output::operator<< | ( | object & | o | ) |
Print object.
o | object to output |
Casts object o to string to get suitable string representation of the object's data. The string is then written to this stream.
Reimplemented in axcel::io::ios.
io::output & axcel::io::output::operator<< | ( | long | val | ) |
Reimplemented in axcel::io::ios.
io::output & axcel::io::output::operator<< | ( | int | val | ) |
Reimplemented in axcel::io::ios.
io::output & axcel::io::output::operator<< | ( | unsigned long | val | ) |
Reimplemented in axcel::io::ios.
io::output & axcel::io::output::operator<< | ( | float | val | ) |
Reimplemented in axcel::io::ios.
int axcel::io::output::printf | ( | const char * | format, |
... | |||
) | [virtual] |
Formatted output.
format | Format string |
... | Token value arguments |
This method calls vsnprintf() to create the formatted string before writing it to the stream. See printf() documentation from the Standard C libraryrary for details on using this method.
output& axcel::io::output::put | ( | long | val | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::put | ( | char | c | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::put | ( | bool | val | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::put | ( | const char * | s | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::put | ( | signed char | c | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::put | ( | double | val | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::put | ( | long double | val | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::put | ( | short | val | ) | [inline] |
Reimplemented in axcel::io::ios.
io::output & axcel::io::output::put | ( | object & | o | ) |
Print object.
o | object to output |
Casts object o to string to get suitable string representation of the object's data. The string is then written to this stream.
Reimplemented in axcel::io::ios.
output& axcel::io::output::put | ( | unsigned char | c | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::put | ( | unsigned long | val | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::put | ( | const void * | val | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::put | ( | float | val | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::put | ( | unsigned short | val | ) | [inline] |
Reimplemented in axcel::io::ios.
output& axcel::io::output::put | ( | int | val | ) | [inline] |
Reimplemented in axcel::io::ios.
io::output & axcel::io::output::put | ( | string | s | ) |
Reimplemented in axcel::io::ios.
virtual int axcel::io::output::putc | ( | int | c | ) | [pure virtual] |
Write byte.
c | Character to write |
Writes character c to stream and returns a non-negative number on success or EOF on error. Before returning from within this method, one of the following methods must be called:
Implemented in axcel::data, axcel::string, axcel::fs::file, axcel::net::socket::tcp, axcel::console, and axcel::proc::pstream.
int axcel::io::output::puts | ( | const char * | s | ) | [virtual] |
Write string.
s | string to write |
Writes string s to the stream, without its trailing '\0'.
Reimplemented in axcel::net::socket::tcp.
string axcel::io::output::type | ( | ) | [virtual] |
Get type of object.
Reimplemented from axcel::io::iob.
Reimplemented in axcel::io::ios, axcel::data, axcel::string, axcel::fs::file, axcel::net::socket::tcp, axcel::console, and axcel::proc::pstream.
size_t axcel::io::output::write | ( | data | d | ) | [virtual] |
size_t axcel::io::output::write | ( | const char * | ptr, |
size_t | size, | ||
size_t | nmemb | ||
) | [virtual] |
Write raw data.
ptr | Buffer |
size | Element size |
nmemb | Number of elements to write |
Writes nmemb elements of data, each size bytes long, to the stream, obtaining them from the location given by ptr.