![]() |
KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
This is a fancy table to stream data in a fancy way. More...
#include <table_stream.h>
Public Member Functions | |
Type Definitions | |
| KRATOS_CLASS_POINTER_DEFINITION (TableStream) | |
| Pointer definition of TableStream. More... | |
Life Cycle | |
| TableStream (std::ostream *Output, const std::string &Separator="|", const bool UseBoldFont=true) | |
| Default constructor. More... | |
| virtual | ~TableStream ()=default |
| Destructor. More... | |
Operators | |
| template<typename TClass > | |
| TableStream & | operator<< (TClass Input) |
| This is the operator << for any kind of input. More... | |
| TableStream & | operator<< (float Input) |
| This is the operator << just for floats. More... | |
| TableStream & | operator<< (double Input) |
| This is the operator << just for doubles. More... | |
Operations | |
| unsigned int | GetNumColumns () const |
| It returns the number of columns. More... | |
| unsigned int | GetTableWidth () const |
| It returns the table width. More... | |
| void | SetSeparator (const std::string &Separator) |
| Set the separator used for the table. More... | |
| void | SetBold (const bool &UseBoldFont) |
| Set if the bold fonts are used for the table. More... | |
| void | SetFlushLeft () |
| Set the flush orientation to the left. More... | |
| void | SetFlushRight () |
| Set the flush orientation to the right. More... | |
| void | AddColumn (const std::string &HeaderName, const int ColumnWidth) |
| Add a column to our table. More... | |
| void | PrintHeader () |
| This function prints the header of the stream. More... | |
| void | PrintFooter () |
| This function prints the footer of the stream. More... | |
Serialization | |
| class | Serializer |
This is a fancy table to stream data in a fancy way.