98 os.write((
char*)&t,
sizeof(t));
134 is.read((
char*)&t,
sizeof(t));
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()) <<
')';
199 std::cerr <<
"" << std::endl;
200 std::cerr <<
"Stream must be in ascii or binary mode" << std::endl;
IO::Mode get_mode(std::ios &i)
io_Operator io_tag(double)
unsigned char blue() const
bool is_pretty(std::ios &i)
IO::Mode set_binary_mode(std::ios &i)
bool is_binary(std::ios &i)
void write(std::ostream &os, const T &t, const io_Read_write &)
bool is_ascii(std::ios &i)
unsigned char green() const
void read(std::istream &is, T &t, const io_Read_write &)
IO::Mode set_mode(std::ios &i, IO::Mode m)
#define CGAL_BEGIN_NAMESPACE
std::ostream & operator<<(std::ostream &os, const COM_exception &ex)
Print out a given exception.
IO::Mode set_ascii_mode(std::ios &i)
#define CGAL_END_NAMESPACE
unsigned char red() const
IO::Mode set_pretty_mode(std::ios &i)