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

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

Definition at line 47 of file FormattedTable.C.

48 {
49  loadHelper(stream, table._data, context);
50  loadHelper(stream, table._align_widths, context);
51  loadHelper(stream, table._column_names, context);
52  loadHelper(stream, table._output_row_index, context);
53 
54  // Don't assume that the stream is open if we've restored.
55  table._stream_open = false;
56 }
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...
bool _stream_open
Keeps track of whether the current stream is open or not.
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. ...
void loadHelper(std::istream &stream, P &data, void *context)
Scalar helper routine.
Definition: DataIO.h:592
template<>
void dataStore ( std::ostream &  stream,
FormattedTable table,
void *  context 
)

Definition at line 37 of file FormattedTable.C.

38 {
39  storeHelper(stream, table._data, context);
40  storeHelper(stream, table._align_widths, context);
41  storeHelper(stream, table._column_names, context);
42  storeHelper(stream, table._output_row_index, context);
43 }
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:528
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. ...

Variable Documentation

const std::string DEFAULT_CSV_DELIMITER = ","

Definition at line 33 of file FormattedTable.C.

const unsigned short DEFAULT_CSV_PRECISION = 14

Definition at line 32 of file FormattedTable.C.