AXCEL C++ Framework
Elegance through abstraction
Public Member Functions
axcel::io::ios Class Reference

Input/Output stream. More...

#include <axcel.h>

Inheritance diagram for axcel::io::ios:
axcel::io::input axcel::io::output axcel::io::iob axcel::io::iob axcel::object axcel::object axcel::console axcel::data axcel::fs::file axcel::net::socket::tcp axcel::proc::pstream axcel::string

List of all members.

Public Member Functions

string type ()
 Get type of object.
 operator string ()
 Convert to string.
iosoperator<< (object &o)
 Print object.
iosoperator<< (bool val)
iosoperator<< (short val)
iosoperator<< (unsigned short val)
iosoperator<< (int val)
iosoperator<< (unsigned int val)
iosoperator<< (long val)
iosoperator<< (unsigned long val)
iosoperator<< (float val)
iosoperator<< (double val)
iosoperator<< (long double val)
iosoperator<< (const void *val)
iosoperator<< (char c)
iosoperator<< (signed char c)
iosoperator<< (unsigned char c)
iosoperator<< (const char *s)
iosoperator<< (string s)
iosput (object &o)
 Print object.
iosput (string s)
iosecho (object &o)
 Print object on new line.
iosecho (string s)
iosput (bool val)
iosput (short val)
iosput (unsigned short val)
iosput (int val)
iosput (long val)
iosput (unsigned long val)
iosput (float val)
iosput (double val)
iosput (long double val)
iosput (const void *val)
iosput (char c)
iosput (signed char c)
iosput (unsigned char c)
iosput (const char *s)
iosecho ()
iosecho (bool val)
iosecho (short val)
iosecho (unsigned short val)
iosecho (int val)
iosecho (size_t val)
iosecho (long val)
iosecho (unsigned long val)
iosecho (float val)
iosecho (double val)
iosecho (long double val)
iosecho (const void *val)
iosecho (char c)
iosecho (signed char c)
iosecho (unsigned char c)
iosecho (const char *s)
iosoperator>> (bool &val)
iosoperator>> (short &val)
iosoperator>> (unsigned short &val)
iosoperator>> (int &val)
iosoperator>> (unsigned int &val)
iosoperator>> (long &val)
iosoperator>> (unsigned long &val)
iosoperator>> (long long &val)
iosoperator>> (unsigned long long &val)
iosoperator>> (float &val)
iosoperator>> (double &val)
iosoperator>> (long double &val)
iosoperator>> (void *&val)
iosoperator>> (char &c)
iosoperator>> (char *s)
iosoperator>> (string &s)

Detailed Description

Input/Output stream.

Combines the input and output stream classes to allow the stream insertion and extraction operators to be chained together. Basically, methods from the input or output classes which would return a reference to itself will return a reference to the ios object instead.

Definition at line 457 of file axcel.h.


Member Function Documentation

io::ios & axcel::io::ios::echo ( object o)

Print object on new line.

Parameters:
oobject to output
Returns:
Reference to this stream

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 from axcel::io::output.

Definition at line 53 of file axcel.cpp.

io::ios & axcel::io::ios::echo ( string  s)

Reimplemented from axcel::io::output.

Definition at line 54 of file axcel.cpp.

io::ios & axcel::io::ios::echo ( )

Reimplemented from axcel::io::output.

Definition at line 69 of file axcel.cpp.

io::ios & axcel::io::ios::echo ( bool  val)

Reimplemented from axcel::io::output.

Definition at line 70 of file axcel.cpp.

io::ios & axcel::io::ios::echo ( short  val)

Reimplemented from axcel::io::output.

Definition at line 71 of file axcel.cpp.

io::ios & axcel::io::ios::echo ( unsigned short  val)

Reimplemented from axcel::io::output.

Definition at line 72 of file axcel.cpp.

io::ios & axcel::io::ios::echo ( int  val)

Reimplemented from axcel::io::output.

Definition at line 73 of file axcel.cpp.

io::ios & axcel::io::ios::echo ( size_t  val)

Reimplemented from axcel::io::output.

Definition at line 74 of file axcel.cpp.

io::ios & axcel::io::ios::echo ( long  val)

Reimplemented from axcel::io::output.

Definition at line 75 of file axcel.cpp.

io::ios & axcel::io::ios::echo ( unsigned long  val)

Reimplemented from axcel::io::output.

Definition at line 76 of file axcel.cpp.

io::ios & axcel::io::ios::echo ( float  val)

Reimplemented from axcel::io::output.

Definition at line 77 of file axcel.cpp.

io::ios & axcel::io::ios::echo ( double  val)

Reimplemented from axcel::io::output.

Definition at line 78 of file axcel.cpp.

io::ios & axcel::io::ios::echo ( long double  val)

Reimplemented from axcel::io::output.

Definition at line 79 of file axcel.cpp.

io::ios & axcel::io::ios::echo ( const void *  val)

Reimplemented from axcel::io::output.

Definition at line 80 of file axcel.cpp.

io::ios & axcel::io::ios::echo ( char  c)

Reimplemented from axcel::io::output.

Definition at line 81 of file axcel.cpp.

io::ios & axcel::io::ios::echo ( signed char  c)

Reimplemented from axcel::io::output.

Definition at line 82 of file axcel.cpp.

io::ios & axcel::io::ios::echo ( unsigned char  c)

Reimplemented from axcel::io::output.

Definition at line 83 of file axcel.cpp.

io::ios & axcel::io::ios::echo ( const char *  s)

Reimplemented from axcel::io::output.

Definition at line 84 of file axcel.cpp.

axcel::io::ios::operator string ( ) [virtual]

Convert to string.

Returns:
Suitable string representation of object's data

Reimplemented from axcel::io::iob.

Reimplemented in axcel::data, axcel::string, axcel::fs::file, axcel::net::socket::tcp, axcel::console, and axcel::proc::pstream.

Definition at line 33 of file axcel.cpp.

io::ios & axcel::io::ios::operator<< ( signed char  c)

Reimplemented from axcel::io::output.

Definition at line 47 of file axcel.cpp.

io::ios & axcel::io::ios::operator<< ( unsigned char  c)

Reimplemented from axcel::io::output.

Definition at line 48 of file axcel.cpp.

io::ios & axcel::io::ios::operator<< ( const char *  s)

Reimplemented from axcel::io::output.

Definition at line 49 of file axcel.cpp.

io::ios & axcel::io::ios::operator<< ( unsigned int  val)

Reimplemented from axcel::io::output.

Definition at line 39 of file axcel.cpp.

io::ios & axcel::io::ios::operator<< ( string  s)

Reimplemented from axcel::io::output.

Definition at line 50 of file axcel.cpp.

io::ios & axcel::io::ios::operator<< ( long  val)

Reimplemented from axcel::io::output.

Definition at line 40 of file axcel.cpp.

io::ios & axcel::io::ios::operator<< ( unsigned long  val)

Reimplemented from axcel::io::output.

Definition at line 41 of file axcel.cpp.

io::ios & axcel::io::ios::operator<< ( float  val)

Reimplemented from axcel::io::output.

Definition at line 42 of file axcel.cpp.

io::ios & axcel::io::ios::operator<< ( bool  val)

Reimplemented from axcel::io::output.

Definition at line 35 of file axcel.cpp.

io::ios & axcel::io::ios::operator<< ( short  val)

Reimplemented from axcel::io::output.

Definition at line 36 of file axcel.cpp.

io::ios & axcel::io::ios::operator<< ( unsigned short  val)

Reimplemented from axcel::io::output.

Definition at line 37 of file axcel.cpp.

io::ios & axcel::io::ios::operator<< ( double  val)

Reimplemented from axcel::io::output.

Definition at line 43 of file axcel.cpp.

io::ios & axcel::io::ios::operator<< ( object o)

Print object.

Parameters:
oobject to output
Returns:
Reference to this stream

Casts object o to string to get suitable string representation of the object's data. The string is then written to this stream.

Reimplemented from axcel::io::output.

Definition at line 34 of file axcel.cpp.

io::ios & axcel::io::ios::operator<< ( long double  val)

Reimplemented from axcel::io::output.

Definition at line 44 of file axcel.cpp.

io::ios & axcel::io::ios::operator<< ( int  val)

Reimplemented from axcel::io::output.

Definition at line 38 of file axcel.cpp.

io::ios & axcel::io::ios::operator<< ( const void *  val)

Reimplemented from axcel::io::output.

Definition at line 45 of file axcel.cpp.

io::ios & axcel::io::ios::operator<< ( char  c)

Reimplemented from axcel::io::output.

Definition at line 46 of file axcel.cpp.

io::ios & axcel::io::ios::operator>> ( float &  val)

Reimplemented from axcel::io::input.

Definition at line 94 of file axcel.cpp.

io::ios & axcel::io::ios::operator>> ( double &  val)

Reimplemented from axcel::io::input.

Definition at line 95 of file axcel.cpp.

io::ios & axcel::io::ios::operator>> ( long double &  val)

Reimplemented from axcel::io::input.

Definition at line 96 of file axcel.cpp.

io::ios & axcel::io::ios::operator>> ( unsigned long long &  val)

Reimplemented from axcel::io::input.

Definition at line 93 of file axcel.cpp.

io::ios & axcel::io::ios::operator>> ( void *&  val)

Reimplemented from axcel::io::input.

Definition at line 97 of file axcel.cpp.

io::ios & axcel::io::ios::operator>> ( char *  s)

Reimplemented from axcel::io::input.

Definition at line 99 of file axcel.cpp.

io::ios & axcel::io::ios::operator>> ( string s)

Reimplemented from axcel::io::input.

Definition at line 100 of file axcel.cpp.

io::ios & axcel::io::ios::operator>> ( long &  val)

Reimplemented from axcel::io::input.

Definition at line 90 of file axcel.cpp.

io::ios & axcel::io::ios::operator>> ( char &  c)

Reimplemented from axcel::io::input.

Definition at line 98 of file axcel.cpp.

io::ios & axcel::io::ios::operator>> ( long long &  val)

Reimplemented from axcel::io::input.

Definition at line 92 of file axcel.cpp.

io::ios & axcel::io::ios::operator>> ( int &  val)

Reimplemented from axcel::io::input.

Definition at line 88 of file axcel.cpp.

io::ios & axcel::io::ios::operator>> ( short &  val)

Reimplemented from axcel::io::input.

Definition at line 86 of file axcel.cpp.

io::ios & axcel::io::ios::operator>> ( bool &  val)

Reimplemented from axcel::io::input.

Definition at line 85 of file axcel.cpp.

io::ios & axcel::io::ios::operator>> ( unsigned short &  val)

Reimplemented from axcel::io::input.

Definition at line 87 of file axcel.cpp.

io::ios & axcel::io::ios::operator>> ( unsigned int &  val)

Reimplemented from axcel::io::input.

Definition at line 89 of file axcel.cpp.

io::ios & axcel::io::ios::operator>> ( unsigned long &  val)

Reimplemented from axcel::io::input.

Definition at line 91 of file axcel.cpp.

io::ios & axcel::io::ios::put ( bool  val)

Reimplemented from axcel::io::output.

Definition at line 55 of file axcel.cpp.

io::ios & axcel::io::ios::put ( string  s)

Reimplemented from axcel::io::output.

Definition at line 52 of file axcel.cpp.

io::ios & axcel::io::ios::put ( char  c)

Reimplemented from axcel::io::output.

Definition at line 65 of file axcel.cpp.

io::ios & axcel::io::ios::put ( const void *  val)

Reimplemented from axcel::io::output.

Definition at line 64 of file axcel.cpp.

io::ios & axcel::io::ios::put ( long  val)

Reimplemented from axcel::io::output.

Definition at line 59 of file axcel.cpp.

io::ios & axcel::io::ios::put ( long double  val)

Reimplemented from axcel::io::output.

Definition at line 63 of file axcel.cpp.

io::ios & axcel::io::ios::put ( short  val)

Reimplemented from axcel::io::output.

Definition at line 56 of file axcel.cpp.

io::ios & axcel::io::ios::put ( signed char  c)

Reimplemented from axcel::io::output.

Definition at line 66 of file axcel.cpp.

io::ios & axcel::io::ios::put ( unsigned long  val)

Reimplemented from axcel::io::output.

Definition at line 60 of file axcel.cpp.

io::ios & axcel::io::ios::put ( const char *  s)

Reimplemented from axcel::io::output.

Definition at line 68 of file axcel.cpp.

io::ios & axcel::io::ios::put ( unsigned char  c)

Reimplemented from axcel::io::output.

Definition at line 67 of file axcel.cpp.

io::ios & axcel::io::ios::put ( float  val)

Reimplemented from axcel::io::output.

Definition at line 61 of file axcel.cpp.

io::ios & axcel::io::ios::put ( double  val)

Reimplemented from axcel::io::output.

Definition at line 62 of file axcel.cpp.

io::ios & axcel::io::ios::put ( object o)

Print object.

Parameters:
oobject to output
Returns:
Reference to this stream

Casts object o to string to get suitable string representation of the object's data. The string is then written to this stream.

Reimplemented from axcel::io::output.

Definition at line 51 of file axcel.cpp.

io::ios & axcel::io::ios::put ( unsigned short  val)

Reimplemented from axcel::io::output.

Definition at line 57 of file axcel.cpp.

io::ios & axcel::io::ios::put ( int  val)

Reimplemented from axcel::io::output.

Definition at line 58 of file axcel.cpp.

string axcel::io::ios::type ( ) [virtual]

Get type of object.

Returns:
string containing name of object's class.

Reimplemented from axcel::io::input.

Reimplemented in axcel::data, axcel::string, axcel::fs::file, axcel::net::socket::tcp, axcel::console, and axcel::proc::pstream.

Definition at line 32 of file axcel.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Defines