![]() |
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
Classes | |
| class | ANSIManager |
| class | BlockInStream |
| class | BlockOutStream |
| class | BufferedInStream |
| class | BufferedOutStream |
| class | FileInput |
| class | FileOutput |
| class | InFileStream |
| class | Input |
| class | InStream |
| class | IOException |
| class | Monitor |
| class | OutFileStream |
| class | EOL |
| class | IntFormat |
| class | FloatFormat |
| class | StringFormat |
| class | Output |
| struct | def_printer |
| struct | enum_printer |
| class | Tag |
| class | Printable |
| class | ListPrinter |
| class | OutStream |
| class | RandomAccessStream |
| class | StreamPipe |
| class | StringInput |
| class | StringOutput |
| class | StructuredOutput |
| class | TeeOutStream |
| class | UnixInStream |
| class | UnixOutStream |
| class | VarExpander |
| class | OSExpander |
| class | WinInStream |
| class | WinOutStream |
| class | NullInStream |
| class | NullOutStream |
Typedefs | |
| typedef Tag< ANSIManager > | ANSICode |
| typedef enum elm::io::alignment_t | alignment_t |
Enumerations | |
| enum | alignment_t { NONE = 0 , LEFT , CENTER , RIGHT } |
Functions | |
| FileInput | read (sys::Path path) |
| StringInput | read (const char *s) |
| StringInput | read (const cstring &s) |
| StringInput | read (const string &s) |
| FileOutput | write (sys::Path path) |
| FileOutput | append (sys::Path path) |
| template<class T > | |
| Output & | operator<< (Output &out, const T &v) |
| template<class T > | |
| Output & | operator<< (Output &out, T *v) |
| Output & | operator<< (Output &out, bool value) |
| Output & | operator<< (Output &out, char value) |
| Output & | operator<< (Output &out, t::int8 value) |
| Output & | operator<< (Output &out, t::uint8 value) |
| Output & | operator<< (Output &out, t::int16 value) |
| Output & | operator<< (Output &out, t::uint16 value) |
| Output & | operator<< (Output &out, t::int32 value) |
| Output & | operator<< (Output &out, t::uint32 value) |
| Output & | operator<< (Output &out, t::int64 value) |
| Output & | operator<< (Output &out, t::uint64 value) |
| Output & | operator<< (Output &out, float value) |
| Output & | operator<< (Output &out, double value) |
| Output & | operator<< (Output &out, const char *value) |
| Output & | operator<< (Output &out, char *value) |
| Output & | operator<< (Output &out, const CString value) |
| Output & | operator<< (Output &out, const string &value) |
| Output & | operator<< (Output &out, const IntFormat &value) |
| Output & | operator<< (Output &out, const FloatFormat &value) |
| Output & | operator<< (Output &out, const StringFormat &value) |
| Output & | operator<< (Output &out, EOL eol) |
| template<class P > | |
| io::Output & | operator<< (io::Output &out, const Tag< P > &t) |
| 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) |
| IntFormat | fmt (t::int8 i) |
| IntFormat | fmt (t::uint8 i) |
| IntFormat | fmt (t::int16 i) |
| IntFormat | fmt (t::uint16 i) |
| IntFormat | fmt (t::int32 i) |
| IntFormat | fmt (t::uint32 i) |
| IntFormat | fmt (t::int64 i) |
| IntFormat | fmt (t::uint64 i) |
| FloatFormat | fmt (float f) |
| FloatFormat | fmt (double f) |
| StringFormat | fmt (string s) |
| StringFormat | fmt (cstring s) |
| StringFormat | fmt (const char *s) |
| template<class T , class M > | |
| io::Output & | operator<< (io::Output &out, const Printable< T, M > &p) |
| template<class T , class M > | |
| Printable< T, M > | p (const T &data, const M &man) |
| template<class T > | |
| ListPrinter< T > | list (const T &l, cstring s="", typename ListPrinter< T >::fun_t f=ListPrinter< T >::asis) |
| template<class T > | |
| io::Output & | operator<< (io::Output &out, const ListPrinter< T > &l) |
| IntFormat | pointer (const void *p) |
| IntFormat | byte (t::uint8 b) |
| string | expandOSVars (string t) |
| ANSICode | PLAIN ("\x1B[0m") |
| ANSICode | BOLD ("\x1B[1m") |
| < ANSI code for plain display More... | |
| ANSICode | FAINT ("\x1B[2m") |
| < ANSI code for bold text More... | |
| ANSICode | ITALIC ("\x1B[3m") |
| < ANSI code for faint text More... | |
| ANSICode | UNDERLINE ("\x1B[4m") |
| < ANSI code for italic text More... | |
| ANSICode | BLINK ("\x1B[5m") |
| < ANSI code for underlined text More... | |
| ANSICode | RAPID_BLINK ("\x1B[6m") |
| < ANSI code for blink text More... | |
| ANSICode | REVERSE ("\x1B[7m") |
| < ANSI code for rapid blink text More... | |
| ANSICode | BLACK ("\x1B[30m") |
| ANSICode | RED ("\x1B[31m") |
| < ANSI code for black text More... | |
| ANSICode | GREEN ("\x1B[32m") |
| < ANSI code for red text More... | |
| ANSICode | YELLOW ("\x1B[33m") |
| < ANSI code for green text More... | |
| ANSICode | BLUE ("\x1B[34m") |
| < ANSI code for yellow text More... | |
| ANSICode | MAGENTA ("\x1B[35m") |
| < ANSI code for blue text More... | |
| ANSICode | CYAN ("\x1B[36m") |
| < ANSI code for magenta text More... | |
| ANSICode | WHITE ("\x1B[37m") |
| < ANSI code for cyan text More... | |
| ANSICode | BRIGHT_BLACK ("\x1B[90m") |
| < ANSI code for white text More... | |
| ANSICode | BRIGHT_RED ("\x1B[91m") |
| < ANSI code for bright black text More... | |
| ANSICode | BRIGHT_GREEN ("\x1B[92m") |
| < ANSI code for bright red text More... | |
| ANSICode | BRIGHT_YELLOW ("\x1B[93m") |
| < ANSI code for bright green text More... | |
| ANSICode | BRIGHT_BLUE ("\x1B[94m") |
| < ANSI code for bright yellow text More... | |
| ANSICode | BRIGHT_MAGENTA ("\x1B[95m") |
| < ANSI code for bright blue text More... | |
| ANSICode | BRIGHT_CYAN ("\x1B[96m") |
| < ANSI code for bright magenta text More... | |
| ANSICode | BRIGHT_WHITE ("\x1B[97m") |
| < ANSI code for bright cyan text More... | |
| ANSICode | BACK_BLACK ("\x1B[40m") |
| ANSICode | BACK_RED ("\x1B[41m") |
| < ANSI code for black back More... | |
| ANSICode | BACK_GREEN ("\x1B[42m") |
| < ANSI code for red back More... | |
| ANSICode | BACK_YELLOW ("\x1B[43m") |
| < ANSI code for green back More... | |
| ANSICode | BACK_BLUE ("\x1B[44m") |
| < ANSI code for yellow back More... | |
| ANSICode | BACK_MAGENTA ("\x1B[45m") |
| < ANSI code for blue back More... | |
| ANSICode | BACK_CYAN ("\x1B[46m") |
| < ANSI code for magenta back More... | |
| ANSICode | BACK_WHITE ("\x1B[47m") |
| < ANSI code for cyan back More... | |
| ANSICode | BACK_BRIGHT_BLACK ("\x1B[100m") |
| < ANSI code for white back More... | |
| ANSICode | BACK_BRIGHT_RED ("\x1B[101m") |
| < ANSI code for bright black back More... | |
| ANSICode | BACK_BRIGHT_GREEN ("\x1B[102m") |
| < ANSI code for bright red back More... | |
| ANSICode | BACK_BRIGHT_YELLOW ("\x1B[103m") |
| < ANSI code for bright green back More... | |
| ANSICode | BACK_BRIGHT_BLUE ("\x1B[104m") |
| < ANSI code for bright yellow back More... | |
| ANSICode | BACK_BRIGHT_MAGENTA ("\x1B[105m") |
| < ANSI code for bright blue back More... | |
| ANSICode | BACK_BRIGHT_CYAN ("\x1B[106m") |
| < ANSI code for bright magenta back More... | |
| ANSICode | BACK_BRIGHT_WHITE ("\x1B[107m") |
| < ANSI code for bright cyan back More... | |
| static int | test_base (char chr, int base) |
| static sys::SystemOutStream | Win_stdout (GetStdHandle(STD_OUTPUT_HANDLE)) |
| static sys::SystemOutStream | Win_stderr (GetStdHandle(STD_ERROR_HANDLE)) |
Variables | |
| ANSICode | PLAIN |
| ANSICode | BOLD |
| < ANSI code for plain display More... | |
| ANSICode | FAINT |
| < ANSI code for bold text More... | |
| ANSICode | ITALIC |
| < ANSI code for faint text More... | |
| ANSICode | UNDERLINE |
| < ANSI code for italic text More... | |
| ANSICode | BLINK |
| < ANSI code for underlined text More... | |
| ANSICode | RAPID_BLINK |
| < ANSI code for blink text More... | |
| ANSICode | REVERSE |
| < ANSI code for rapid blink text More... | |
| ANSICode | BLACK |
| ANSICode | RED |
| < ANSI code for black text More... | |
| ANSICode | GREEN |
| < ANSI code for red text More... | |
| ANSICode | YELLOW |
| < ANSI code for green text More... | |
| ANSICode | BLUE |
| < ANSI code for yellow text More... | |
| ANSICode | MAGENTA |
| < ANSI code for blue text More... | |
| ANSICode | CYAN |
| < ANSI code for magenta text More... | |
| ANSICode | WHITE |
| < ANSI code for cyan text More... | |
| ANSICode | BRIGHT_BLACK |
| < ANSI code for white text More... | |
| ANSICode | BRIGHT_RED |
| < ANSI code for bright black text More... | |
| ANSICode | BRIGHT_GREEN |
| < ANSI code for bright red text More... | |
| ANSICode | BRIGHT_YELLOW |
| < ANSI code for bright green text More... | |
| ANSICode | BRIGHT_BLUE |
| < ANSI code for bright yellow text More... | |
| ANSICode | BRIGHT_MAGENTA |
| < ANSI code for bright blue text More... | |
| ANSICode | BRIGHT_CYAN |
| < ANSI code for bright magenta text More... | |
| ANSICode | BRIGHT_WHITE |
| < ANSI code for bright cyan text More... | |
| ANSICode | BACK_BLACK |
| ANSICode | BACK_RED |
| < ANSI code for black back More... | |
| ANSICode | BACK_GREEN |
| < ANSI code for red back More... | |
| ANSICode | BACK_YELLOW |
| < ANSI code for green back More... | |
| ANSICode | BACK_BLUE |
| < ANSI code for yellow back More... | |
| ANSICode | BACK_MAGENTA |
| < ANSI code for blue back More... | |
| ANSICode | BACK_CYAN |
| < ANSI code for magenta back More... | |
| ANSICode | BACK_WHITE |
| < ANSI code for cyan back More... | |
| ANSICode | BACK_BRIGHT_BLACK |
| < ANSI code for white back More... | |
| ANSICode | BACK_BRIGHT_RED |
| < ANSI code for bright black back More... | |
| ANSICode | BACK_BRIGHT_GREEN |
| < ANSI code for bright red back More... | |
| ANSICode | BACK_BRIGHT_YELLOW |
| < ANSI code for bright green back More... | |
| ANSICode | BACK_BRIGHT_BLUE |
| < ANSI code for bright yellow back More... | |
| ANSICode | BACK_BRIGHT_MAGENTA |
| < ANSI code for bright blue back More... | |
| ANSICode | BACK_BRIGHT_CYAN |
| < ANSI code for bright magenta back More... | |
| ANSICode | BACK_BRIGHT_WHITE |
| < ANSI code for bright cyan back More... | |
| const EOL | endl |
| FloatFormat | percent = FloatFormat().width(5, 2).decimal().right() |
| 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 enum elm::io::alignment_t alignment_t |
| typedef Tag<ANSIManager> ANSICode |
| enum alignment_t |
| ANSICode elm::io::BACK_BLACK | ( | "\x1B[40m" | ) |
| ANSICode elm::io::BACK_BLUE | ( | "\x1B[44m" | ) |
< ANSI code for yellow back
| ANSICode elm::io::BACK_BRIGHT_BLACK | ( | "\x1B[100m" | ) |
< ANSI code for white back
| ANSICode elm::io::BACK_BRIGHT_BLUE | ( | "\x1B[104m" | ) |
< ANSI code for bright yellow back
| ANSICode elm::io::BACK_BRIGHT_CYAN | ( | "\x1B[106m" | ) |
< ANSI code for bright magenta back
| ANSICode elm::io::BACK_BRIGHT_GREEN | ( | "\x1B[102m" | ) |
< ANSI code for bright red back
| ANSICode elm::io::BACK_BRIGHT_MAGENTA | ( | "\x1B[105m" | ) |
< ANSI code for bright blue back
| ANSICode elm::io::BACK_BRIGHT_RED | ( | "\x1B[101m" | ) |
< ANSI code for bright black back
| ANSICode elm::io::BACK_BRIGHT_WHITE | ( | "\x1B[107m" | ) |
< ANSI code for bright cyan back
ANSI code for bright white back
| ANSICode elm::io::BACK_BRIGHT_YELLOW | ( | "\x1B[103m" | ) |
< ANSI code for bright green back
| ANSICode elm::io::BACK_CYAN | ( | "\x1B[46m" | ) |
< ANSI code for magenta back
| ANSICode elm::io::BACK_GREEN | ( | "\x1B[42m" | ) |
< ANSI code for red back
| ANSICode elm::io::BACK_MAGENTA | ( | "\x1B[45m" | ) |
< ANSI code for blue back
| ANSICode elm::io::BACK_RED | ( | "\x1B[41m" | ) |
< ANSI code for black back
| ANSICode elm::io::BACK_WHITE | ( | "\x1B[47m" | ) |
< ANSI code for cyan back
| ANSICode elm::io::BACK_YELLOW | ( | "\x1B[43m" | ) |
< ANSI code for green back
| ANSICode elm::io::BLACK | ( | "\x1B[30m" | ) |
| ANSICode elm::io::BLINK | ( | "\x1B[5m" | ) |
< ANSI code for underlined text
| ANSICode elm::io::BLUE | ( | "\x1B[34m" | ) |
< ANSI code for yellow text
| ANSICode elm::io::BOLD | ( | "\x1B[1m" | ) |
< ANSI code for plain display
| ANSICode elm::io::BRIGHT_BLACK | ( | "\x1B[90m" | ) |
< ANSI code for white text
| ANSICode elm::io::BRIGHT_BLUE | ( | "\x1B[94m" | ) |
< ANSI code for bright yellow text
| ANSICode elm::io::BRIGHT_CYAN | ( | "\x1B[96m" | ) |
< ANSI code for bright magenta text
| ANSICode elm::io::BRIGHT_GREEN | ( | "\x1B[92m" | ) |
< ANSI code for bright red text
| ANSICode elm::io::BRIGHT_MAGENTA | ( | "\x1B[95m" | ) |
< ANSI code for bright blue text
| ANSICode elm::io::BRIGHT_RED | ( | "\x1B[91m" | ) |
< ANSI code for bright black text
| ANSICode elm::io::BRIGHT_WHITE | ( | "\x1B[97m" | ) |
< ANSI code for bright cyan text
ANSI code for bright white text
| ANSICode elm::io::BRIGHT_YELLOW | ( | "\x1B[93m" | ) |
< ANSI code for bright green text
| ANSICode elm::io::CYAN | ( | "\x1B[36m" | ) |
< ANSI code for magenta text
Expand the variable in the given string, replacing variable invocation by OS variable values.
| s | String to replace in. |
References VarExpander::expand().
| ANSICode elm::io::FAINT | ( | "\x1B[2m" | ) |
< ANSI code for bold text
|
inline |
Build a formatted string.
|
inline |
Build a formatted string.
|
inline |
Build a formatted double floating-point number.
|
inline |
Build a formatted single floating-point number.
|
inline |
Build a formatted string.
| ANSICode elm::io::GREEN | ( | "\x1B[32m" | ) |
< ANSI code for red text
| ANSICode elm::io::ITALIC | ( | "\x1B[3m" | ) |
< ANSI code for faint text
|
inline |
| ANSICode elm::io::MAGENTA | ( | "\x1B[35m" | ) |
< ANSI code for blue text
References fmt(), and IntFormat::oct().
|
inline |
References ListPrinter< T >::f, ListPrinter< T >::l, out, and ListPrinter< T >::s.
|
inline |
| io::Output& elm::io::operator<< | ( | io::Output & | out, |
| const Tag< P > & | t | ||
| ) |
References out, and Tag< P >::print().
|
inline |
References out.
|
inline |
References out.
| ANSICode elm::io::PLAIN | ( | "\x1B[0m" | ) |
| ANSICode elm::io::RAPID_BLINK | ( | "\x1B[6m" | ) |
< ANSI code for blink text
|
inline |
|
inline |
| ANSICode elm::io::RED | ( | "\x1B[31m" | ) |
< ANSI code for black text
| ANSICode elm::io::REVERSE | ( | "\x1B[7m" | ) |
< ANSI code for rapid blink text
ANSI code for reverse mode text
References fmt(), and IntFormat::sign().
|
inlinestatic |
Test if the character is in the base and return the matching digit.
| chr | Character to test. |
| base | Base of the read. |
References base().
Referenced by Input::scanULLong(), and Input::scanULong().
| ANSICode elm::io::UNDERLINE | ( | "\x1B[4m" | ) |
< ANSI code for italic text
| ANSICode elm::io::WHITE | ( | "\x1B[37m" | ) |
< ANSI code for cyan text
|
static |
Stream pointing to the standard error output.
|
static |
Stream pointing to the standard output.
| ANSICode elm::io::YELLOW | ( | "\x1B[33m" | ) |
< ANSI code for green text
|
static |
|
static |
| ANSICode BACK_BLACK("\x1B[40m") |
| ANSICode BACK_BLUE("\x1B[44m") |
< ANSI code for yellow back
| ANSICode BACK_BRIGHT_BLACK("\x1B[100m") |
< ANSI code for white back
| ANSICode BACK_BRIGHT_BLUE("\x1B[104m") |
< ANSI code for bright yellow back
| ANSICode BACK_BRIGHT_CYAN("\x1B[106m") |
< ANSI code for bright magenta back
| ANSICode BACK_BRIGHT_GREEN("\x1B[102m") |
< ANSI code for bright red back
| ANSICode BACK_BRIGHT_MAGENTA("\x1B[105m") |
< ANSI code for bright blue back
| ANSICode BACK_BRIGHT_RED("\x1B[101m") |
< ANSI code for bright black back
| ANSICode BACK_BRIGHT_WHITE("\x1B[107m") |
< ANSI code for bright cyan back
ANSI code for bright white back
| ANSICode BACK_BRIGHT_YELLOW("\x1B[103m") |
< ANSI code for bright green back
| ANSICode BACK_CYAN("\x1B[46m") |
< ANSI code for magenta back
| ANSICode BACK_GREEN("\x1B[42m") |
< ANSI code for red back
| ANSICode BACK_MAGENTA("\x1B[45m") |
< ANSI code for blue back
| ANSICode BACK_RED("\x1B[41m") |
< ANSI code for black back
| ANSICode BACK_WHITE("\x1B[47m") |
< ANSI code for cyan back
| ANSICode BACK_YELLOW("\x1B[43m") |
< ANSI code for green back
| ANSICode BLACK("\x1B[30m") |
| ANSICode BLINK("\x1B[5m") |
< ANSI code for underlined text
| ANSICode BLUE("\x1B[34m") |
< ANSI code for yellow text
| ANSICode BOLD("\x1B[1m") |
< ANSI code for plain display
| ANSICode BRIGHT_BLACK("\x1B[90m") |
< ANSI code for white text
| ANSICode BRIGHT_BLUE("\x1B[94m") |
< ANSI code for bright yellow text
| ANSICode BRIGHT_CYAN("\x1B[96m") |
< ANSI code for bright magenta text
| ANSICode BRIGHT_GREEN("\x1B[92m") |
< ANSI code for bright red text
| ANSICode BRIGHT_MAGENTA("\x1B[95m") |
< ANSI code for bright blue text
| ANSICode BRIGHT_RED("\x1B[91m") |
< ANSI code for bright black text
| ANSICode BRIGHT_WHITE("\x1B[97m") |
< ANSI code for bright cyan text
ANSI code for bright white text
| ANSICode BRIGHT_YELLOW("\x1B[93m") |
< ANSI code for bright green text
| ANSICode CYAN("\x1B[36m") |
< ANSI code for magenta text
| ANSICode FAINT("\x1B[2m") |
< ANSI code for bold text
| ANSICode GREEN("\x1B[32m") |
< ANSI code for red text
| ANSICode ITALIC("\x1B[3m") |
< ANSI code for faint text
| ANSICode MAGENTA("\x1B[35m") |
< ANSI code for blue text
| ANSICode PLAIN("\x1B[0m") |
Referenced by TestCase::complete(), and TestCase::require().
| ANSICode RAPID_BLINK("\x1B[6m") |
< ANSI code for blink text
| ANSICode RED("\x1B[31m") |
< ANSI code for black text
| ANSICode REVERSE("\x1B[7m") |
< ANSI code for rapid blink text
ANSI code for reverse mode text
| ANSICode UNDERLINE("\x1B[4m") |
< ANSI code for italic text
| ANSICode WHITE("\x1B[37m") |
< ANSI code for cyan text
| ANSICode YELLOW("\x1B[33m") |
< ANSI code for green text