alternative Standard Libary  0.29.8
std::Console Klassenreferenz

#include <iostream.hpp>

Öffentliche, statische Methoden

static void write (const char *cstr)
 
static void write (std::string str)
 
static void writeline (const char *cstr)
 
static void writeline (std::string str)
 
static char read ()
 
static std::string readline ()
 
static void reset ()
 
static void setio (ofstream out, ifstream in)
 
static auto_ptr< ofstreamgetout ()
 
static auto_ptr< ifstreamgetin ()
 

Ausführliche Beschreibung

Dokumentation der Elementfunktionen

◆ getin()

auto_ptr< ifstream > std::Console::getin ( )
static
90  {
91  ifstream v = __cin;
92  return auto_ptr<ifstream>(&v);
93  }
ifstream __cin(_stdin)

◆ getout()

auto_ptr< ofstream > std::Console::getout ( )
static
86  {
87  ofstream v = __cout;
88  return auto_ptr<ofstream>(&v);
89  }
ofstream __cout(_stdout)

◆ read()

char std::Console::read ( )
static
73  {
74  return __cin.read();
75  }
ifstream __cin(_stdin)
virtual size_t read(void *data, size_t offset, size_t size)
Definition: filestream.cpp:99

◆ readline()

std::string std::Console::readline ( )
static
76  {
77  char buf[256];
78 
79  size_t len = __cin.readline(buf, 0, 256);
80  return std::string(buf, len);
81  }
virtual size_t readline(void *data, size_t offset, size_t size)
Definition: iofstream.hpp:49
ifstream __cin(_stdin)
basic_string< char > string
Definition: string.hpp:44

◆ reset()

void std::Console::reset ( )
static
56  {
57  __cout = (_stdout);
58  __cin = (_stdin);
59  }
ifstream __cin(_stdin)
outstream _stdout
Definition: iostream.cpp:49
instream _stdin
Definition: iostream.cpp:50
ofstream __cout(_stdout)

◆ setio()

void std::Console::setio ( ofstream  out,
ifstream  in 
)
static
82  {
83  __cout = (out);
84  __cin = (in);
85  }
ifstream __cin(_stdin)
ofstream __cout(_stdout)

◆ write() [1/2]

void std::Console::write ( const char *  cstr)
static
60  {
61  __cout.write(cstr);
62  }
virtual ofstream & write(const char *str)
Definition: iofstream.hpp:79
ofstream __cout(_stdout)

◆ write() [2/2]

void std::Console::write ( std::string  str)
static
66  {
67  __cout.write(str);
68  }
virtual ofstream & write(const char *str)
Definition: iofstream.hpp:79
ofstream __cout(_stdout)

◆ writeline() [1/2]

void std::Console::writeline ( const char *  cstr)
static
63  {
64  __cout.writeline(cstr);
65  }
virtual ofstream & writeline(const char *str)
Definition: iofstream.hpp:87
ofstream __cout(_stdout)

◆ writeline() [2/2]

void std::Console::writeline ( std::string  str)
static
69  {
70  __cout.writeline(str);
71  }
virtual ofstream & writeline(const char *str)
Definition: iofstream.hpp:87
ofstream __cout(_stdout)

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien: