12 #ifndef SST_CORE_UTIL_SMARTTEXTFORMATTER_H 13 #define SST_CORE_UTIL_SMARTTEXTFORMATTER_H 35 std::vector<int> tab_stops_;
61 int current_position_ = 0;
68 bool last_char_vert_tab_ =
false;
74 std::vector<size_t> indent_ = { 0 };
109 void setTabStops(
const std::vector<int>& stops,
int repeat = 0);
139 void append(
const std::string& input);
152 int nextTabStop(
int position);
154 int getTerminalWidth();
160 #endif // SST_CORE_UTIL_SMARTTEXTFORMATTER_H Definition: basicPerf.cc:24
void clear()
Clear the formatter.
Definition: smartTextFormatter.cc:25
Class to format text for console output.
Definition: smartTextFormatter.h:29
SmartTextFormatter(const std::vector< int > &tabStops, int repeat=0)
Constructor for SmartTextFormatter.
Definition: smartTextFormatter.cc:37
void setTabStops(const std::vector< int > &stops, int repeat=0)
Sets the tabstops for the formatter.
Definition: smartTextFormatter.cc:45
void append(const std::string &input)
Append a string to the formatter.
Definition: smartTextFormatter.cc:81
std::string str()
Return the current output of the formatter.
Definition: smartTextFormatter.cc:201