7#ifndef MYGUI_LOG_LEVEL_H_
8#define MYGUI_LOG_LEVEL_H_
45 const char* name = type.getValueName(value);
46 if (strcmp(name,
"") == 0 || name == _value)
50 type.mValue = (
Enum)value;
56 return a.mValue < b.mValue;
76 return !(a < b) && !(a > b);
84 friend std::ostream& operator << (std::ostream& _stream,
const LogLevel& _value)
86 _stream << _value.getValueName(_value.mValue);
90 friend std::istream& operator >> (std::istream& _stream,
LogLevel& _value)
94 _value = parse(value);
100 return getValueName(mValue);
109 const char* getValueName(
int _index)
const
111 static const char* values[MAX + 1] = {
"Info",
"Warning",
"Error",
"Critical",
"" };
112 return values[(_index < MAX && _index >= 0) ? _index : MAX];
bool operator<=(const UString::_const_fwd_iterator &left, const UString::_const_fwd_iterator &right)
bool operator==(const UString::_const_fwd_iterator &left, const UString::_const_fwd_iterator &right)
bool operator>=(const UString::_const_fwd_iterator &left, const UString::_const_fwd_iterator &right)
bool operator>(const UString::_const_fwd_iterator &left, const UString::_const_fwd_iterator &right)
bool operator!=(const UString::_const_fwd_iterator &left, const UString::_const_fwd_iterator &right)
bool operator<(const UString::_const_fwd_iterator &left, const UString::_const_fwd_iterator &right)
std::string print() const
static LogLevel parse(const std::string &_value)