Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
elm::io Namespace Reference

Classes

class  BlockInStream
 
class  BlockOutStream
 
class  BufferedInStream
 
class  BufferedOutStream
 
struct  def_printer
 
struct  enum_printer
 
class  FloatFormat
 
class  InFileStream
 
class  Input
 
class  InStream
 
class  IntFormat
 
class  IOException
 
class  Monitor
 
class  OutFileStream
 
class  Output
 
class  OutStream
 
class  RandomAccessStream
 
class  StreamPipe
 
class  StringInput
 
class  TeeOutStream
 
class  UnixInStream
 
class  UnixOutStream
 
class  WinInStream
 
class  WinOutStream
 

Typedefs

typedef enum elm::io::alignment_t alignment_t
 

Enumerations

enum  alignment_t { NONE = 0, LEFT, CENTER, RIGHT }
 

Functions

template<class T >
Outputoperator<< (Output &out, const T &v)
 
template<class T >
Outputoperator<< (Output &out, T *v)
 
Outputoperator<< (Output &out, bool value)
 
Outputoperator<< (Output &out, char value)
 
Outputoperator<< (Output &out, unsigned char value)
 
Outputoperator<< (Output &out, signed char value)
 
Outputoperator<< (Output &out, short value)
 
Outputoperator<< (Output &out, unsigned short value)
 
Outputoperator<< (Output &out, int value)
 
Outputoperator<< (Output &out, unsigned int value)
 
Outputoperator<< (Output &out, long value)
 
Outputoperator<< (Output &out, unsigned long value)
 
Outputoperator<< (Output &out, long long value)
 
Outputoperator<< (Output &out, unsigned long long value)
 
Outputoperator<< (Output &out, float value)
 
Outputoperator<< (Output &out, double value)
 
Outputoperator<< (Output &out, const char *value)
 
Outputoperator<< (Output &out, char *value)
 
Outputoperator<< (Output &out, const CString value)
 
Outputoperator<< (Output &out, const string &value)
 
Outputoperator<< (Output &out, const IntFormat &value)
 
Outputoperator<< (Output &out, const FloatFormat &value)
 
IntFormat f (signed char value)
 
IntFormat f (unsigned char value)
 
IntFormat f (signed short value)
 
IntFormat f (unsigned short value)
 
IntFormat f (signed int value)
 
IntFormat f (unsigned int value)
 
IntFormat f (signed long value)
 
IntFormat f (unsigned long value)
 
IntFormat f (signed long long value)
 
IntFormat f (unsigned long long value)
 
FloatFormat f (float value)
 
FloatFormat f (double value)
 
IntFormat pointer (const void *p)
 
IntFormat byte (t::uint8 b)
 
IntFormat base (int base, IntFormat fmt)
 
IntFormat bin (IntFormat fmt)
 
IntFormat oct (IntFormat fmt)
 
IntFormat hex (IntFormat fmt)
 
IntFormat sign (IntFormat fmt)
 
IntFormat width (int width, IntFormat fmt)
 
IntFormat align (alignment_t align, IntFormat fmt)
 
IntFormat left (IntFormat fmt)
 
IntFormat right (IntFormat fmt)
 
IntFormat center (IntFormat fmt)
 
IntFormat pad (char pad, IntFormat fmt)
 
IntFormat uppercase (IntFormat fmt)
 
IntFormat lowercase (IntFormat fmt)
 
static int test_base (char chr, int base)
 
static system::SystemOutStream Win_stdout (GetStdHandle(STD_OUTPUT_HANDLE))
 
static system::SystemOutStream Win_stderr (GetStdHandle(STD_ERROR_HANDLE))
 

Variables

const char endl = '\n'
 
sys::SystemInStream & in = sys::stdin_object
 
sys::SystemOutStream & out = sys::stdout_object
 
sys::SystemOutStream & err = sys::stderr_object
 
elm::io::NullInStream _null
 
elm::io::NullOutStream _null
 

Typedef Documentation

Enumeration Type Documentation

Enumerator
NONE 
LEFT 
CENTER 
RIGHT 

Function Documentation

IntFormat elm::io::byte ( t::uint8  b)

Format an integer to display it as an hexadecimal byte.

Parameters
bByte to format.
Returns
Formatted byte.

References f(), elm::io::IntFormat::hex(), elm::io::IntFormat::pad(), elm::io::IntFormat::right(), and elm::io::IntFormat::width().

Referenced by elm::io::OutStream::write().

IntFormat elm::io::f ( unsigned char  value)
IntFormat elm::io::f ( signed short  value)
IntFormat elm::io::f ( unsigned short  value)
IntFormat elm::io::f ( signed int  value)
IntFormat elm::io::f ( unsigned int  value)
IntFormat elm::io::f ( signed long  value)
IntFormat elm::io::f ( unsigned long  value)
IntFormat elm::io::f ( signed long long  value)
IntFormat elm::io::f ( unsigned long long  value)
FloatFormat elm::io::f ( float  value)
FloatFormat elm::io::f ( double  value)
IntFormat elm::io::oct ( IntFormat  fmt)
template<class T >
Output& elm::io::operator<< ( Output &  out,
const T &  v 
)

References out.

template<class T >
Output& elm::io::operator<< ( Output &  out,
T *  v 
)

References out, and elm::io::Output::print().

Output& elm::io::operator<< ( Output &  out,
bool  value 
)

References out, and elm::io::Output::print().

Output& elm::io::operator<< ( Output &  out,
char  value 
)

References out, and elm::io::Output::print().

Output& elm::io::operator<< ( Output &  out,
unsigned char  value 
)

References out, and elm::io::Output::print().

Output& elm::io::operator<< ( Output &  out,
signed char  value 
)

References out, and elm::io::Output::print().

Output& elm::io::operator<< ( Output &  out,
short  value 
)

References out, and elm::io::Output::print().

Output& elm::io::operator<< ( Output &  out,
unsigned short  value 
)

References out, and elm::io::Output::print().

Output& elm::io::operator<< ( Output &  out,
int  value 
)

References out, and elm::io::Output::print().

Output& elm::io::operator<< ( Output &  out,
unsigned int  value 
)

References out, and elm::io::Output::print().

Output& elm::io::operator<< ( Output &  out,
long  value 
)

References out, and elm::io::Output::print().

Output& elm::io::operator<< ( Output &  out,
unsigned long  value 
)

References out, and elm::io::Output::print().

Output& elm::io::operator<< ( Output &  out,
long long  value 
)

References out, and elm::io::Output::print().

Output& elm::io::operator<< ( Output &  out,
unsigned long long  value 
)

References out, and elm::io::Output::print().

Output& elm::io::operator<< ( Output &  out,
float  value 
)

References out, and elm::io::Output::print().

Output& elm::io::operator<< ( Output &  out,
double  value 
)

References out, and elm::io::Output::print().

Output& elm::io::operator<< ( Output &  out,
const char *  value 
)

References out, and elm::io::Output::print().

Output& elm::io::operator<< ( Output &  out,
char *  value 
)

References out, and elm::io::Output::print().

Output& elm::io::operator<< ( Output &  out,
const CString  value 
)

References out, and elm::io::Output::print().

Output& elm::io::operator<< ( Output &  out,
const string &  value 
)

References out, and elm::io::Output::print().

Output& elm::io::operator<< ( Output &  out,
const IntFormat &  value 
)

References out, and elm::io::Output::print().

Output& elm::io::operator<< ( Output &  out,
const FloatFormat &  value 
)

References out, and elm::io::Output::print().

IntFormat elm::io::pointer ( const void *  p)

Format a pointer for display.

Parameters
pPointer to format.
Returns
Formatted pointer.

References f(), elm::io::IntFormat::hex(), elm::io::IntFormat::pad(), and elm::io::IntFormat::width().

IntFormat elm::io::sign ( IntFormat  fmt)
static int elm::io::test_base ( char  chr,
int  base 
)
static

Test if the character is in the base and return the matching digit.

Parameters
chrCharacter to test.
baseBase of the read.
Returns
Matching digit or not (-1).

Referenced by elm::io::Input::scanULLong(), and elm::io::Input::scanULong().

static system::SystemOutStream elm::io::Win_stderr ( GetStdHandle(STD_ERROR_HANDLE)  )
static

Stream pointing to the standard error output.

static system::SystemOutStream elm::io::Win_stdout ( GetStdHandle(STD_OUTPUT_HANDLE)  )
static

Stream pointing to the standard output.

Variable Documentation

elm::io::NullOutStream elm::io::_null
static
elm::io::NullInStream elm::io::_null
static