15 #if !defined(KRATOS_LOGGER_TABLE_OUTPUT_H_INCLUDED )
16 #define KRATOS_LOGGER_TABLE_OUTPUT_H_INCLUDED
84 void WriteHeader()
override;
97 std::string
Info()
const override;
100 void PrintInfo(std::ostream& rOStream)
const override;
103 void PrintData(std::ostream& rOStream)
const override;
116 std::size_t mCurrentColumnIndex;
117 std::vector<std::string> mColumnsHeaders;
118 std::vector<std::size_t> mColumnsWidth;
119 std::vector<std::string> mColumnsTexts;
120 std::vector<std::string> mColumnsLabels;
121 std::ofstream mMyFileStream;
122 bool mHeaderIsWritten =
false;
123 std::string mFileHeader;
124 std::string mIdLabel;
130 void MoveCursorToColumn(std::size_t ColumnIndex);
132 void WriteHashLine();
133 void WriteTableLine();
134 std::string Centered(
int width,
const std::string&
str);
135 void StripLabels(std::string& inLabel, std::string& outGlobalLabel, std::string& outColumnLabel);
std::string Info() const override
Turn back information as a string.
Definition: periodic_interface_process.hpp:93
LoggerMessage class holdes message and the properties of the message.
Definition: logger_message.h:53
LoggerOutput is the base class for all logger outputs.
Definition: logger_output.h:48
LoggerTableOutput takes columns names and only prints the messages with lable given with column name.
Definition: logger_table_output.h:46
virtual ~LoggerTableOutput()
Destructor.
Definition: logger_table_output.h:65
LoggerTableOutput & operator=(LoggerTableOutput const &Other)=delete
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
str
Definition: generate_gid_list_file.py:35