#include <iostream>
#include <CGAL/IO/io_tags.h>
#include <CGAL/IO/Color.h>
#include <CGAL/Object.h>
Go to the source code of this file.
|
IO::Mode | get_mode (std::ios &i) |
|
IO::Mode | set_ascii_mode (std::ios &i) |
|
IO::Mode | set_binary_mode (std::ios &i) |
|
IO::Mode | set_pretty_mode (std::ios &i) |
|
IO::Mode | set_mode (std::ios &i, IO::Mode m) |
|
bool | is_pretty (std::ios &i) |
|
bool | is_ascii (std::ios &i) |
|
bool | is_binary (std::ios &i) |
|
io_Read_write | io_tag (char) |
|
template<class T > |
void | write (std::ostream &os, const T &t, const io_Read_write &) |
|
template<class T > |
void | write (std::ostream &os, const T &t, const io_Operator &) |
|
template<class T > |
void | write (std::ostream &os, const T &t, const io_Extract_insert &) |
|
template<class T > |
void | write (std::ostream &os, const T &t) |
|
template<class T > |
void | read (std::istream &is, T &t, const io_Read_write &) |
|
template<class T > |
void | read (std::istream &is, T &t, const io_Operator &) |
|
template<class T > |
void | read (std::istream &is, T &t, const io_Extract_insert &) |
|
template<class T > |
void | read (std::istream &is, T &t) |
|
std::ostream & | operator<< (std::ostream &out, const Color &col) |
|
std::istream & | operator>> (std::istream &is, Color &col) |
|
Definition at line 90 of file io.h.
bool is_ascii |
( |
std::ios & |
i | ) |
|
bool is_binary |
( |
std::ios & |
i | ) |
|
bool is_pretty |
( |
std::ios & |
i | ) |
|
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const Color & |
col |
|
) |
| |
|
inline |
Definition at line 166 of file io.h.
References IO::ASCII, IO::BINARY, Color::blue(), Color::green(), IO::mode, Color::red(), and write().
170 return out << static_cast<int>(col.
red()) <<
' '
171 << static_cast<int>(col.
green()) <<
' '
172 << static_cast<int>(col.
blue());
174 write(out, static_cast<int>(col.
red()));
176 write(out, static_cast<int>(col.
blue()));
179 return out <<
"Color(" <<
static_cast<int>(col.
red()) <<
", "
180 << static_cast<int>(col.
green()) <<
", "
181 << static_cast<int>(col.
blue()) <<
')';
unsigned char blue() const
void write(std::ostream &os, const T &t, const io_Read_write &)
unsigned char green() const
unsigned char red() const
std::istream& operator>> |
( |
std::istream & |
is, |
|
|
Color & |
col |
|
) |
| |
|
inline |
Definition at line 186 of file io.h.
References IO::ASCII, IO::BINARY, IO::mode, and read().
199 std::cerr <<
"" << std::endl;
200 std::cerr <<
"Stream must be in ascii or binary mode" << std::endl;
void read(std::istream &is, T &t, const io_Read_write &)
void read |
( |
std::istream & |
is, |
|
|
T & |
t, |
|
|
const io_Operator & |
|
|
) |
| |
|
inline |
Definition at line 141 of file io.h.
Definition at line 150 of file io.h.
void read |
( |
std::istream & |
is, |
|
|
T & |
t |
|
) |
| |
|
inline |
Definition at line 159 of file io.h.
References io_tag(), and read().
io_Operator io_tag(double)
void read(std::istream &is, T &t, const io_Read_write &)
IO::Mode set_binary_mode |
( |
std::ios & |
i | ) |
|
IO::Mode set_pretty_mode |
( |
std::ios & |
i | ) |
|
void write |
( |
std::ostream & |
os, |
|
|
const T & |
t, |
|
|
const io_Read_write & |
|
|
) |
| |
|
inline |
void write |
( |
std::ostream & |
os, |
|
|
const T & |
t, |
|
|
const io_Operator & |
|
|
) |
| |
|
inline |
Definition at line 105 of file io.h.
Definition at line 114 of file io.h.
void write |
( |
std::ostream & |
os, |
|
|
const T & |
t |
|
) |
| |
|
inline |
Definition at line 123 of file io.h.
References io_tag(), and write().
io_Operator io_tag(double)
void write(std::ostream &os, const T &t, const io_Read_write &)