// AppHelpers.h #include #include namespace ApplicationHelpers { void title(const std::string& msg, char underline = '-'); template std::string toString(T& t) { std::ostringstream out; out << t; return out.str(); } class Verbose { public: Verbose(bool showState = true) { showState_ = showState; } void static show(const std::string& msg, bool always=false) { if (always == true || showState_ == true) { std::string temp = std::string("\n ") + msg; std::cout << temp; } } private: static bool showState_; }; }