Tatooine
Namespaces | Classes | Enumerations | Functions
tatooine::vtk Namespace Reference

Namespaces

namespace  xml
 

Classes

class  legacy_file
 
struct  legacy_file_listener
 
class  legacy_file_writer
 

Enumerations

enum class  cell_type : std::uint8_t {
  vertex = 1 , poly_vertex = 2 , line = 3 , poly_line = 4 ,
  triangle = 5 , triangle_strip = 6 , polygon = 7 , pixel = 8 ,
  quad = 9 , tetra = 10 , voxel = 11 , hexahedron = 12 ,
  wedge = 13 , pyramid = 14 , unknown_cell_type = 0
}
 
enum class  reader_data { point_data , cell_data , unknown }
 
enum class  dataset_type {
  structured_points , structured_grid , unstructured_grid , polydata ,
  rectilinear_grid , field , unknown
}
 
enum class  format { ascii , binary , unknown }
 

Functions

constexpr auto to_string_view (cell_type const ct) -> std::string_view
 
auto parse_cell_type (std::string const &) -> cell_type
 
auto read_until (std::istream &stream, char const terminator_char, char *buffer) -> std::string
 
auto read_binaryline (std::istream &stream, char *buffer) -> std::string
 reads stream until a linebreak was found. buffer will not contain the break More...
 
auto read_word (std::istream &stream, char *buffer) -> std::string
 
auto write_binary (std::ostream &stream, std::string const &str) -> void
 
auto write_binary (std::ostream &stream, char const c) -> void
 
constexpr auto to_string_view (dataset_type type) -> std::string_view
 
auto parse_dataset_type (std::string const &) -> dataset_type
 
constexpr auto to_string_view (format f) -> std::string_view
 
auto parse_format (std::string const &) -> format
 

Enumeration Type Documentation

◆ cell_type

enum class tatooine::vtk::cell_type : std::uint8_t
strong
Enumerator
vertex 
poly_vertex 
line 
poly_line 
triangle 
triangle_strip 
polygon 
pixel 
quad 
tetra 
voxel 
hexahedron 
wedge 
pyramid 
unknown_cell_type 

◆ dataset_type

enum class tatooine::vtk::dataset_type
strong
Enumerator
structured_points 
structured_grid 
unstructured_grid 
polydata 
rectilinear_grid 
field 
unknown 

◆ format

enum class tatooine::vtk::format
strong
Enumerator
ascii 
binary 
unknown 

◆ reader_data

enum class tatooine::vtk::reader_data
strong
Enumerator
point_data 
cell_data 
unknown 

Function Documentation

◆ parse_cell_type()

auto tatooine::vtk::parse_cell_type ( std::string const &  ) -> cell_type

◆ parse_dataset_type()

auto tatooine::vtk::parse_dataset_type ( std::string const &  ) -> dataset_type

◆ parse_format()

auto tatooine::vtk::parse_format ( std::string const &  ) -> format

◆ read_binaryline()

auto tatooine::vtk::read_binaryline ( std::istream &  stream,
char *  buffer 
) -> std::string

reads stream until a linebreak was found. buffer will not contain the break

◆ read_until()

auto tatooine::vtk::read_until ( std::istream &  stream,
char const  terminator_char,
char *  buffer 
) -> std::string

reads until terminator_char was found. buffer will containg the terminator_char

◆ read_word()

auto tatooine::vtk::read_word ( std::istream &  stream,
char *  buffer 
) -> std::string

reads stream until a whitespace was found and consumes any whitespace until another character was found. buffer will not contain any whitespace

◆ to_string_view() [1/3]

constexpr auto tatooine::vtk::to_string_view ( cell_type const  ct) -> std::string_view
constexpr

◆ to_string_view() [2/3]

constexpr auto tatooine::vtk::to_string_view ( dataset_type  type) -> std::string_view
constexpr

◆ to_string_view() [3/3]

constexpr auto tatooine::vtk::to_string_view ( format  f) -> std::string_view
constexpr

◆ write_binary() [1/2]

auto tatooine::vtk::write_binary ( std::ostream &  stream,
char const  c 
) -> void

◆ write_binary() [2/2]

auto tatooine::vtk::write_binary ( std::ostream &  stream,
std::string const &  str 
) -> void