39 #ifndef _uhal_log_GccOutputCleaner_hpp_ 40 #define _uhal_log_GccOutputCleaner_hpp_ 71 std::string
operator() (
const std::string& aStr );
84 static std::string
HashStyle (
const uint32_t& aIndex );
90 static std::string
TStyle (
const uint32_t& aIndex );
106 uint32_t
RecursiveClean ( std::string::const_iterator aIt , std::string::const_iterator aEnd );
GccOutputCleaner(const uint32_t &aIndent=2, std::string(*aStyling)(const uint32_t &)=&GccOutputCleaner::SquareBracketStyle)
Constructor.
static std::string TStyle(const uint32_t &aIndex)
Prefix the type-substitution index with a T
std::vector< std::string > mTypes
A vector of known types, the position of which into this list becomes the substitution index...
std::string(* mStyling)(const uint32_t &)
The functor for styling the type-substitution index.
virtual ~GccOutputCleaner()
Destructor.
Parameterized Functor which parses and formats GCC call stack so that they are human readable...
uint32_t RecursiveClean(std::string::const_iterator aIt, std::string::const_iterator aEnd)
Recursively perform sub-term extraction from the string.
static std::string HashStyle(const uint32_t &aIndex)
Prefix the type-substitution index with a #
std::string mIndent
The number of spaces by which to indent the lines.
std::string operator()(const std::string &aStr)
Functor implementation.
static std::string SquareBracketStyle(const uint32_t &aIndex)
Wrap the type-substitution index in square braces.