Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
io.C File Reference
#include <CGAL/basic.h>
#include <CGAL/IO/io.h>
Include dependency graph for io.C:

Go to the source code of this file.

Macros

#define CGAL_IO_C
 

Functions

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)
 

Macro Definition Documentation

#define CGAL_IO_C

Definition at line 53 of file io.C.

Function Documentation

IO::Mode get_mode ( std::ios &  i)

Definition at line 64 of file io.C.

References IO::mode.

Referenced by set_ascii_mode(), set_binary_mode(), set_mode(), and set_pretty_mode().

65 {
66  return static_cast<IO::Mode>(i.iword(IO::mode));
67 }
Mode
Definition: io.h:64
blockLoc i
Definition: read.cpp:79
static int mode
Definition: io.h:63

Here is the caller graph for this function:

bool is_ascii ( std::ios &  i)

Definition at line 111 of file io.C.

References IO::ASCII, and IO::mode.

112 {
113  return i.iword(IO::mode) == IO::ASCII;
114 }
Definition: io.h:64
blockLoc i
Definition: read.cpp:79
static int mode
Definition: io.h:63
bool is_binary ( std::ios &  i)

Definition at line 118 of file io.C.

References IO::BINARY, and IO::mode.

119 {
120  return i.iword(IO::mode) == IO::BINARY;
121 }
blockLoc i
Definition: read.cpp:79
static int mode
Definition: io.h:63
Definition: io.h:64
bool is_pretty ( std::ios &  i)

Definition at line 105 of file io.C.

References IO::mode, and IO::PRETTY.

106 {
107  return i.iword(IO::mode) == IO::PRETTY;
108 }
Definition: io.h:64
blockLoc i
Definition: read.cpp:79
static int mode
Definition: io.h:63
IO::Mode set_ascii_mode ( std::ios &  i)

Definition at line 70 of file io.C.

References IO::ASCII, get_mode(), and IO::mode.

Referenced by Overlay::write_inodes_tec(), Overlay::write_inodes_vec(), Overlay::write_overlay_off(), and RFC_Pane_base::write_tec_ascii().

71 {
72  IO::Mode m = get_mode(i);
73  i.iword(IO::mode) = IO::ASCII;
74  return m;
75 }
IO::Mode get_mode(std::ios &i)
Definition: io.C:64
Definition: io.h:64
Mode
Definition: io.h:64
blockLoc i
Definition: read.cpp:79
static int mode
Definition: io.h:63

Here is the call graph for this function:

Here is the caller graph for this function:

IO::Mode set_binary_mode ( std::ios &  i)

Definition at line 79 of file io.C.

References IO::BINARY, get_mode(), and IO::mode.

80 {
81  IO::Mode m = get_mode(i);
82  i.iword(IO::mode) = IO::BINARY;
83  return m;
84 }
IO::Mode get_mode(std::ios &i)
Definition: io.C:64
Mode
Definition: io.h:64
blockLoc i
Definition: read.cpp:79
static int mode
Definition: io.h:63
Definition: io.h:64

Here is the call graph for this function:

IO::Mode set_mode ( std::ios &  i,
IO::Mode  m 
)

Definition at line 97 of file io.C.

References get_mode(), and IO::mode.

98 {
99  IO::Mode old = get_mode(i);
100  i.iword(IO::mode) = m;
101  return old;
102 }
IO::Mode get_mode(std::ios &i)
Definition: io.C:64
Mode
Definition: io.h:64
blockLoc i
Definition: read.cpp:79
static int mode
Definition: io.h:63

Here is the call graph for this function:

IO::Mode set_pretty_mode ( std::ios &  i)

Definition at line 88 of file io.C.

References get_mode(), IO::mode, and IO::PRETTY.

89 {
90  IO::Mode m = get_mode(i);
91  i.iword(IO::mode) = IO::PRETTY;
92  return m;
93 }
IO::Mode get_mode(std::ios &i)
Definition: io.C:64
Definition: io.h:64
Mode
Definition: io.h:64
blockLoc i
Definition: read.cpp:79
static int mode
Definition: io.h:63

Here is the call graph for this function: