The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::LineStringStream Class Reference

Helper class for building a set of lines through an ostream-like interface. More...

#include <SimulationInfo.hpp>

Public Types

typedef std::ostream &(* manip_t) (std::ostream &)
 Default Constructor.
 

Public Member Functions

template<class T >
LineStringStreamoperator<< (const T &t)
 Insertion operator on this LogObject.
 
LineStringStreamoperator<< (manip_t f)
 Handler for stream modifiers (e.g. endl)
 
void addNewLine ()
 Add a new line to the list. This is also called when std::endl is inserted into this stream.
 
std::vector< std::string > getLines () const
 Gets the lines including whathever line is currently being built.
 

Detailed Description

Helper class for building a set of lines through an ostream-like interface.

Definition at line 43 of file SimulationInfo.hpp.

Member Typedef Documentation

◆ manip_t

typedef std::ostream &(* sparta::LineStringStream::manip_t) (std::ostream &)

Default Constructor.

Definition at line 50 of file SimulationInfo.hpp.

Member Function Documentation

◆ addNewLine()

void sparta::LineStringStream::addNewLine ( )
inline

Add a new line to the list. This is also called when std::endl is inserted into this stream.

Definition at line 83 of file SimulationInfo.hpp.

◆ getLines()

std::vector< std::string > sparta::LineStringStream::getLines ( ) const
inline

Gets the lines including whathever line is currently being built.

Warning
This is too expensive to call in the critical path

Definition at line 93 of file SimulationInfo.hpp.

◆ operator<<() [1/2]

template<class T >
LineStringStream & sparta::LineStringStream::operator<< ( const T &  t)
inline

Insertion operator on this LogObject.

Returns
This LogObject

Appends object to internal ostringstream

Definition at line 62 of file SimulationInfo.hpp.

◆ operator<<() [2/2]

LineStringStream & sparta::LineStringStream::operator<< ( manip_t  f)
inline

Handler for stream modifiers (e.g. endl)

Definition at line 70 of file SimulationInfo.hpp.

Here is the call graph for this function:

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