www.mooseframework.org
Namespaces | Functions | Variables
FormattedTable.C File Reference

Go to the source code of this file.

Namespaces

 gnuplot
 

Functions

template<>
void dataStore (std::ostream &stream, FormattedTable &table, void *context)
 
template<>
void dataLoad (std::istream &stream, FormattedTable &table, void *context)
 

Variables

const unsigned short DEFAULT_CSV_PRECISION = 14
 
const std::string DEFAULT_CSV_DELIMITER = ","
 
const std::string gnuplot::before_terminal = "set terminal "
 
const std::string gnuplot::before_ext = "\nset output 'all"
 
const std::string gnuplot::after_ext
 

Function Documentation

◆ dataLoad()

template<>
void dataLoad ( std::istream &  stream,
FormattedTable table,
void *  context 
)

Definition at line 42 of file FormattedTable.C.

43 {
44  loadHelper(stream, table._data, context);
45  loadHelper(stream, table._align_widths, context);
46  loadHelper(stream, table._column_names, context);
47  loadHelper(stream, table._output_row_index, context);
48  loadHelper(stream, table._headers_output, context);
49 }
std::vector< std::pair< Real, std::map< std::string, Real > > > _data
Data structure for the console table: The first part of the pair tracks the independent variable (nor...
std::size_t _output_row_index
Keeps track of the index indicating which vector elements have been output.
std::map< std::string, unsigned int > _align_widths
Alignment widths (only used if asked to print aligned to CSV output)
std::vector< std::string > _column_names
The set of column names updated when data is inserted through the setter methods. ...
bool _headers_output
Keeps track of whether the header has been output.
void loadHelper(std::istream &stream, P &data, void *context)
Scalar helper routine.
Definition: DataIO.h:741

◆ dataStore()

template<>
void dataStore ( std::ostream &  stream,
FormattedTable table,
void *  context 
)

Definition at line 31 of file FormattedTable.C.

32 {
33  storeHelper(stream, table._data, context);
34  storeHelper(stream, table._align_widths, context);
35  storeHelper(stream, table._column_names, context);
36  storeHelper(stream, table._output_row_index, context);
37  storeHelper(stream, table._headers_output, context);
38 }
std::vector< std::pair< Real, std::map< std::string, Real > > > _data
Data structure for the console table: The first part of the pair tracks the independent variable (nor...
std::size_t _output_row_index
Keeps track of the index indicating which vector elements have been output.
void storeHelper(std::ostream &stream, P &data, void *context)
Scalar helper routine.
Definition: DataIO.h:677
std::map< std::string, unsigned int > _align_widths
Alignment widths (only used if asked to print aligned to CSV output)
std::vector< std::string > _column_names
The set of column names updated when data is inserted through the setter methods. ...
bool _headers_output
Keeps track of whether the header has been output.

Variable Documentation

◆ DEFAULT_CSV_DELIMITER

const std::string DEFAULT_CSV_DELIMITER = ","

Definition at line 27 of file FormattedTable.C.

◆ DEFAULT_CSV_PRECISION

const unsigned short DEFAULT_CSV_PRECISION = 14

Definition at line 26 of file FormattedTable.C.