quick start:g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_shell.a #include <DebugLevel.h> DebugLevel(Integral::DEBUG arg = Integral::DEF_DEBUG); Long(const DebugLevel& arg);
description:DebugLevel val0; val0 = Integral::ALL; if (val1 > Integral::BRIEF) { String output(L"printing some detailed debugging information"); Console::put(output); }
static const String CLASS_NAME = L"DebugLevel";
static const NameMap LEVEL_MAP = L"NONE, BRIEF, DETAILED, ALL";
static const String DEF_PARAM = L"debug_level";
static const long ERR = 45500;
static MemoryManager mgr_d;
static const String& name();
static boolean diagnose(Integral::DEBUG debug_level);
boolean debug(const unichar* message) const;
~DebugLevel();
DebugLevel(Integral::DEBUG arg = Integral::DEF_DEBUG);
DebugLevel(const DebugLevel& arg);
DebugLevel(const String& arg);
assign methods are inherited from the class Long
DebugLevel& operator=(const DebugLevel& arg);
boolean read(Sof& sof, long tag, const String& name = CLASS_NAME);
boolean write(Sof& sof, long tag, const string& name = CLASS_NAME) const;
boolean readData(Sof& sof, const String& pname = DEF_PARAM, long size = SofParser::FULL_OBJECT, boolean param = true, boolean nested = false);
boolean writeData(Sof& sof, const String& pname = DEF_PARAM) const;
these methods are inherited from the Long class
static void* operator new(size_t size);
static void* operator new[](size_t size);
static void operator delete(void* ptr);
static void operator delete[](void* ptr);
static boolean setGrowSize(long grow_size);
DebugLevel& operator= (Integral::DEBUG arg);
boolean operator> (Integral::DEBUG arg);
boolean operator>= (Integral::DEBUG arg);
boolean operator!= (Integral::DEBUG arg);
boolean operator< (Integral::DEBUG arg);
boolean operator<= (Integral::DEBUG arg);
boolean operator== (Integral::DEBUG arg);
boolean assign(Integral::DEBUG arg);
boolean assign(const String& arg);
Integral::DEBUG getIndex(const String& arg) const;
Integral::DEBUG getIndex() const;
const String& getName() const;
operator Integral::DEBUG() const;
operator const String&() const;
DebugLevel val0(Integral::BRIEF); String tmp_filename(L"foo"); Sof tmp_file; tmp_file.open(tmp_filename, File::WRITE_ONLY, File::TEXT); DebugLevel.write(tmp_file, (long)0); tmp_file.close();
DebugLevel val0(Integral::ALL); if (val0 > Integral::BRIEF) { String output(L"printing some detailed debugging information"); Console::put(output); } DebugLevel val1; val1 = Integral::DETAILED; if (val1 > Integral::BRIEF) { String output(L"printing some detailed debugging information"); Console::put(output); }