CGAL 6.2 - IO Streams
Loading...
Searching...
No Matches

Enumerations

enum class  CGAL::IO::Ansi_color {
  CGAL::IO::Ansi_color::Reset = 0 , CGAL::IO::Ansi_color::Bold = 1 , CGAL::IO::Ansi_color::Dim = 2 , CGAL::IO::Ansi_color::Underline = 4 ,
  CGAL::IO::Ansi_color::Blink = 5 , CGAL::IO::Ansi_color::Reverse = 7 , CGAL::IO::Ansi_color::Hidden = 8 , CGAL::IO::Ansi_color::Black = 30 ,
  CGAL::IO::Ansi_color::Red = 31 , CGAL::IO::Ansi_color::Green = 32 , CGAL::IO::Ansi_color::Yellow = 33 , CGAL::IO::Ansi_color::Blue = 34 ,
  CGAL::IO::Ansi_color::Magenta = 35 , CGAL::IO::Ansi_color::Cyan = 36 , CGAL::IO::Ansi_color::White = 37 , CGAL::IO::Ansi_color::BrightBlack = 90 ,
  CGAL::IO::Ansi_color::BrightRed = 91 , CGAL::IO::Ansi_color::BrightGreen = 92 , CGAL::IO::Ansi_color::BrightYellow = 93 , CGAL::IO::Ansi_color::BrightBlue = 94 ,
  CGAL::IO::Ansi_color::BrightMagenta = 95 , CGAL::IO::Ansi_color::BrightCyan = 96 , CGAL::IO::Ansi_color::BrightWhite = 97 , CGAL::IO::Ansi_color::BgBlack = 40 ,
  CGAL::IO::Ansi_color::BgRed = 41 , CGAL::IO::Ansi_color::BgGreen = 42 , CGAL::IO::Ansi_color::BgYellow = 43 , CGAL::IO::Ansi_color::BgBlue = 44 ,
  CGAL::IO::Ansi_color::BgMagenta = 45 , CGAL::IO::Ansi_color::BgCyan = 46 , CGAL::IO::Ansi_color::BgWhite = 47 , CGAL::IO::Ansi_color::BgBrightBlack = 100 ,
  CGAL::IO::Ansi_color::BgBrightRed = 101 , CGAL::IO::Ansi_color::BgBrightGreen = 102 , CGAL::IO::Ansi_color::BgBrightYellow = 103 , CGAL::IO::Ansi_color::BgBrightBlue = 104 ,
  CGAL::IO::Ansi_color::BgBrightMagenta = 105 , CGAL::IO::Ansi_color::BgBrightCyan = 106 , CGAL::IO::Ansi_color::BgBrightWhite = 107
}
 ANSI color codes for terminal output. More...
 
enum  CGAL::IO::Mode
 All classes in the CGAL Kernel provide input and output operators for IOStreams. More...
 

Enumeration Type Documentation

◆ Ansi_color

enum class CGAL::IO::Ansi_color
strong

#include <CGAL/IO/Color_ostream.h>

ANSI color codes for terminal output.

Enumerator
Reset 

Reset all attributes to default.

Bold 

Bold or increased intensity.

Dim 

Faint or decreased intensity.

Underline 

Underlined text.

Blink 

Blinking text.

Reverse 

Swap foreground and background colors.

Hidden 

Hidden or invisible text.

Black 

Black foreground color.

Red 

Red foreground color.

Green 

Green foreground color.

Yellow 

Yellow foreground color.

Blue 

Blue foreground color.

Magenta 

Magenta foreground color.

Cyan 

Cyan foreground color.

White 

White foreground color.

BrightBlack 

Bright black (gray) foreground color.

BrightRed 

Bright red foreground color.

BrightGreen 

Bright green foreground color.

BrightYellow 

Bright yellow foreground color.

BrightBlue 

Bright blue foreground color.

BrightMagenta 

Bright magenta foreground color.

BrightCyan 

Bright cyan foreground color.

BrightWhite 

Bright white foreground color.

BgBlack 

Black background color.

BgRed 

Red background color.

BgGreen 

Green background color.

BgYellow 

Yellow background color.

BgBlue 

Blue background color.

BgMagenta 

Magenta background color.

BgCyan 

Cyan background color.

BgWhite 

White background color.

BgBrightBlack 

Bright black (gray) background color.

BgBrightRed 

Bright red background color.

BgBrightGreen 

Bright green background color.

BgBrightYellow 

Bright yellow background color.

BgBrightBlue 

Bright blue background color.

BgBrightMagenta 

Bright magenta background color.

BgBrightCyan 

Bright cyan background color.

BgBrightWhite 

Bright white background color.

◆ 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()