CGAL 6.1 - IO Streams

Loading...
Searching...
No Matches
Enumerations
I/O Enums
Reference Manual

##

## Enumerations
enum | CGAL::IO::Mode
| All classes in the CGAL `Kernel` provide input and output operators for IOStreams. More...

## Enumeration Type Documentation

## ◆ Mode

enum CGAL::IO::Mode

`#include <CGAL/IO/io.h>`

All classes in the CGAL `Kernel` provide input and output operators for IOStreams.

The basic task of such an operator is to produce a representation of an object that can be written as a sequence of characters on devices as a console, a file, or a pipe. The enum `Mode` distinguish between three different printing formats.

In `ASCII` mode, numbers e.g. the coordinates of a point or the coefficients of a line, are written in a machine independent format. In `BINARY` mode, data are written in a binary format, e.g. a double is represented as a sequence of four byte. The format depends on the machine. The mode `PRETTY` serves mainly for debugging as the type of the geometric object is written, as well as the data defining the object. For example for a point at the origin with Cartesian double coordinates, the output would be `PointC2(0.0, 0.0)`. At the moment CGAL does not provide input operations for pretty printed data. By default a stream is in `ASCII` mode.

See also
  `CGAL::IO::set_mode()`
  `CGAL::IO::set_ascii_mode()`
  `CGAL::IO::set_binary_mode()`
  `CGAL::IO::set_pretty_mode()`
  `CGAL::IO::get_mode()`
  `CGAL::IO::is_ascii()`
  `CGAL::IO::is_binary()`
  `CGAL::IO::is_pretty()`