Functions
ecl::console Namespace Reference

Functions

FILE * get_standard_stream (const std::ostream &stream)
bool is_atty (const std::ostream &stream)

Detailed Description

Since C++ hasn't a way to hide something in the header from the outer access, I have to introduce this namespace which is used for internal purpose and should't be access from the user code.


Function Documentation

FILE * ecl::console::get_standard_stream ( const std::ostream &  stream) [inline]

Since C++ hasn't a true way to extract stream handler from the a given `std::ostream` object, I have to write this kind of hack.

Definition at line 428 of file console.hpp.

bool ecl::console::is_atty ( const std::ostream &  stream) [inline]

Test whether a given `std::ostream` object refers to a terminal.

Definition at line 441 of file console.hpp.



ecl_console
Author(s): Daniel Stonier
autogenerated on Thu Jun 16 2016 09:47:13