MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
maia::logtable::Frame Struct Reference

#include <logtable.h>

Collaboration diagram for maia::logtable::Frame:
[legend]

Public Member Functions

 Frame (MString title_)
 
MString buildString ()
 
GroupaddGroup (const std::string &title_)
 

Public Attributes

const MString bar
 
const MString title
 
std::vector< std::shared_ptr< FrameEntry > > entries
 

Detailed Description

Definition at line 123 of file logtable.h.

Constructor & Destructor Documentation

◆ Frame()

maia::logtable::Frame::Frame ( MString  title_)
inline

Definition at line 136 of file logtable.h.

136: title(title_){};
const MString title
Definition: logtable.h:132

Member Function Documentation

◆ addGroup()

Group & maia::logtable::Frame::addGroup ( const std::string &  title_)
inline

Definition at line 159 of file logtable.h.

159 {
160 std::shared_ptr<Group> g = std::make_shared<Group>(title_);
161 entries.push_back(g);
162 return *g;
163 }
std::vector< std::shared_ptr< FrameEntry > > entries
Definition: logtable.h:134

◆ buildString()

MString maia::logtable::Frame::buildString ( )
inline

Definition at line 138 of file logtable.h.

138 {
139 std::stringstream ss;
140
141 ss << bar << '\n';
142 ss << title << '\n';
143 ss << bar << '\n';
144
145 MBool first = true;
146 for(auto&& entry : entries) {
147 if(!first) {
148 ss << '\n';
149 }
150 ss << entry->buildString();
151 first = false;
152 }
153
154 ss << bar << '\n';
155
156 return ss.str();
157 }
bool MBool
Definition: maiatypes.h:58
const MString bar
Definition: logtable.h:124

Member Data Documentation

◆ bar

const MString maia::logtable::Frame::bar
Initial value:
= [&]() {
std::stringstream tmp;
for(int i = 0; i < width; i++) {
tmp << "-";
}
return tmp.str();
}()
const MInt width
Definition: logtable.h:21

Definition at line 124 of file logtable.h.

◆ entries

std::vector<std::shared_ptr<FrameEntry> > maia::logtable::Frame::entries

Definition at line 134 of file logtable.h.

◆ title

const MString maia::logtable::Frame::title

Definition at line 132 of file logtable.h.


The documentation for this struct was generated from the following file: