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

#include <logtable.h>

Inheritance diagram for maia::logtable::Group:
[legend]
Collaboration diagram for maia::logtable::Group:
[legend]

Public Member Functions

 Group (MString title_)
 
MString buildString (const int shift=0) final
 
template<typename T >
DataaddData (const std::string &title_, T data_)
 
void addBlank ()
 
- Public Member Functions inherited from maia::logtable::FrameEntry
 FrameEntry (MString title_)
 
virtual ~FrameEntry ()=default
 
virtual MString buildString (const int shift=0)=0
 

Public Attributes

std::vector< std::shared_ptr< FrameEntry > > entries
 
- Public Attributes inherited from maia::logtable::FrameEntry
const MString title
 

Detailed Description

Definition at line 93 of file logtable.h.

Constructor & Destructor Documentation

◆ Group()

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

Definition at line 96 of file logtable.h.

96: FrameEntry(title_){};
FrameEntry(MString title_)
Definition: logtable.h:26

Member Function Documentation

◆ addBlank()

void maia::logtable::Group::addBlank ( )
inline

Definition at line 117 of file logtable.h.

117 {
118 std::shared_ptr<Data> d = std::make_shared<Data>("", std::string(""));
119 entries.push_back(d);
120 }
std::vector< std::shared_ptr< FrameEntry > > entries
Definition: logtable.h:94

◆ addData()

template<typename T >
Data & maia::logtable::Group::addData ( const std::string &  title_,
data_ 
)
inline

Definition at line 111 of file logtable.h.

111 {
112 std::shared_ptr<Data> d = std::make_shared<Data>(title_, data_);
113 entries.push_back(d);
114 return *d;
115 }

◆ buildString()

MString maia::logtable::Group::buildString ( const int  shift = 0)
inlinefinalvirtual

Implements maia::logtable::FrameEntry.

Definition at line 98 of file logtable.h.

98 {
99 std::stringstream ss;
100
101 ss << title << '\n';
102
103 for(auto&& entry : entries) {
104 ss << entry->buildString(shift);
105 }
106
107 return ss.str();
108 }
const MString title
Definition: logtable.h:24

Member Data Documentation

◆ entries

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

Definition at line 94 of file logtable.h.


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