12 enum Verbosity {DEBUG=-1000, MANUAL=2, INFO=0, WARNING=1, ERROR=2, SILENT=1000};
17 speaker(std::string prefix=
"",say::Verbosity volume=say::INFO,
bool err=
false,
bool quiet=
false);
22 std::ostream& operator[](
const std::string& fct)
const ;
23 const speaker& operator+ (
const std::string& fct)
const {
24 return this->prefix(fct);
26 const speaker& prefix(
const std::string& fct)
const ;
27 std::ostream& operator()(
const std::string& fct)
const ;
29 template<
typename T> std::ostream& operator<< (
const T& arg)
const {
30 if (fquiet)
return *weg;
32 if (errs && fe2cerr)
return std::cerr<<pref<<arg;
33 else return std::cout<<pref<<arg;
37 std::ostream& operator>> (
const std::string& arg)
const ;
39 std::ostream& print(
const std::string& mes)
const ;
40 void DoSpeak(
bool loud) {
43 bool GetSpeak()
const {
46 void SetPrefix(std::string prefix) {
49 std::string GetPrefix()
const {
52 void SetClassName(std::string classname) {
55 std::string GetClassName(
void)
const {
58 say::Verbosity GetVolume(
void)
const {
61 void SetVolume(say::Verbosity volume) {
64 static int SetGlobalVerbosity(say::Verbosity volume);
65 static void ErrorToErrStream(
bool ToCerr) {
71 static std::ostream* weg;
77 static unsigned long ct;
79 static say::Verbosity fverb;
80 static std::map<unsigned long,speaker*>* list;
92 extern int SetGlobalVerbosity(Verbosity verbosity);
99 void SetClassName(
const std::string classname );
100 void SetVerbosity(say::Verbosity volume);