Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
io.h
1 /*
2  * $Id$
3  * Copyright (c) 2004, Alfheim Corporation.
4  *
5  * io.h -- formatted IO classes interfaces.
6  */
7 #ifndef ELM_IO_IO_H
8 #define ELM_IO_IO_H
9 
10 #include <elm/sys/SystemIO.h>
11 #include <elm/io/IOException.h>
12 #include <elm/io/Output.h>
13 #include <elm/io/Input.h>
14 #include <elm/io/FileInput.h>
15 #include <elm/io/StringInput.h>
16 #include <elm/io/FileOutput.h>
17 
18 namespace elm {
19 
20 // Standard environment
21 extern io::Output cout;
22 extern io::Output cerr;
23 extern io::Input cin;
24 
25 namespace io {
26  inline FileInput read(sys::Path path) { return FileInput(path); }
27  inline StringInput read(const char *s) { return StringInput(s); }
28  inline StringInput read(const cstring& s) { return StringInput(s); }
29  inline StringInput read(const string& s) { return StringInput(s); }
30  inline FileOutput write(sys::Path path) { return FileOutput(path); }
31  inline FileOutput append(sys::Path path) { return FileOutput(path, true); }
32 } // io
33 
34 } // elm
35 
36 #endif // ELM_IO_IO_H
elm::sys::Path
Definition: Path.h:33
elm::io::FileInput
Definition: FileInput.h:29
elm::cout
io::Output cout
elm::io::write
FileOutput write(sys::Path path)
Definition: io.h:30
elm::CString
Definition: CString.h:17
elm::io::read
FileInput read(sys::Path path)
Definition: io.h:26
elm::io::append
FileOutput append(sys::Path path)
Definition: io.h:31
elm
Definition: adapter.h:26
elm::io::FileOutput
Definition: FileOutput.h:29
elm::cerr
io::Output cerr
elm::cin
io::Input cin
Definition: io_Input.cpp:796
elm::io::StringInput
Definition: StringInput.h:30