Rosetta  2020.37
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
utility::CSI_Sequence Class Reference

Class to hold all Terminal ASCII codes as static data for CSI_Sequence. Note: that on non-tty terminals the codes will not print to avoid polution of Rosetta logs. More...

#include <CSI_Sequence.hh>

Public Member Functions

 CSI_Sequence (std::string const &sequence="")
 constructor More...
 
 CSI_Sequence (CSI::CSI_Enum sq)
 
CSI_Sequence operator+ (CSI_Sequence const &right) const
 

Static Public Member Functions

static void suppress_CSI_codes ()
 If called, suppress all future printing of CSI codes. More...
 

Static Private Member Functions

static boolsuppress_CSI_seq ()
 

Private Attributes

std::string sequence_
 

Friends

std::ostream & operator<< (std::ostream &os, CSI_Sequence const &sq)
 operator to output our sequence so we can write: std::cout << CSI_SequenceObject More...
 

Detailed Description

Class to hold all Terminal ASCII codes as static data for CSI_Sequence. Note: that on non-tty terminals the codes will not print to avoid polution of Rosetta logs.

Constructor & Destructor Documentation

utility::CSI_Sequence::CSI_Sequence ( std::string const &  sequence = "")
inline

constructor

Referenced by operator+().

utility::CSI_Sequence::CSI_Sequence ( CSI::CSI_Enum  sq)
inlineexplicit

Member Function Documentation

CSI_Sequence utility::CSI_Sequence::operator+ ( CSI_Sequence const &  right) const
inline

References CSI_Sequence(), and sequence_.

static void utility::CSI_Sequence::suppress_CSI_codes ( )
inlinestatic

If called, suppress all future printing of CSI codes.

References suppress_CSI_seq().

bool & utility::CSI_Sequence::suppress_CSI_seq ( )
staticprivate

References utility::stdout_is_tty().

Referenced by suppress_CSI_codes().

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
CSI_Sequence const &  sq 
)
friend

operator to output our sequence so we can write: std::cout << CSI_SequenceObject

Member Data Documentation

std::string utility::CSI_Sequence::sequence_
private

Referenced by CSI_Sequence(), and operator+().


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