16 #include <boost/algorithm/string/case_conv.hpp> 17 #include <boost/program_options/errors.hpp> 22 #if defined(_GLIBCPP_USE_WCHAR_T) && defined(_UNICODE) 37 typedef std::basic_string<wchar_t>
tstring;
56 typedef wchar_t TCHAR;
156 {
"p_l",
"p_m",
"p_h",
"dbg",
"inf",
"wrn",
"err",
"fat",
"cout",
"cout",
"cerr" }
168 throw boost::program_options::invalid_option_value(token);
176 const size_t idx = static_cast<size_t>(_logSeverityLevel);
182 #endif // _DDS_DEF_H_ std::set< std::string > StringSet_t
An STL set of strings.
Definition: def.h:106
std::ostream & operator<<(std::ostream &_out, ELogSeverityLevel _logSeverityLevel)
Definition: def.h:174
const char * LPCSTR
A long pointer to constant string.
Definition: def.h:100
std::map< std::string, size_t > StringUIntMap_t
An STL map, which is mapping pairs of string (as a key) and size_t (as a value)
Definition: def.h:138
std::vector< std::string > StringVector_t
An STL vector of strings.
Definition: def.h:112
std::basic_string< char > tstring
It wraps wchar_t, when _GLIBCPP_USE_WCHAR_T and _UNICODE are defined and char otherwise.
Definition: def.h:73
const char * LPCTSTR
Long Pointer to a Constant null-Terminated String.
Definition: def.h:66
std::vector< char > CHARVector_t
An STL vector of char(s).
Definition: def.h:118
std::vector< unsigned char > BYTEVector_t
An STL vector of bytes.
Definition: def.h:124
const std::array< std::string, 11 > g_LogSeverityLevelString
Definition: def.h:155
ELogSeverityLevel
Log Severity levels.
Definition: def.h:141
char TCHAR
Use TCHAR instead of char or wchar_t. It will be appropriately translated.
Definition: def.h:91
std::basic_stringstream< char > tstringstream
Definition: def.h:74
std::map< size_t, std::string > UIntStringMap_t
An STL map, which is mapping pairs of size_t (as a key) and string (as a value).
Definition: def.h:131
std::istream & operator>>(std::istream &_in, ELogSeverityLevel &_logSeverityLevel)
Definition: def.h:160
_T & to_lower(_T &_str)
convert string to lower case.
Definition: MiscUtils.h:249
Definition: BoostHelper.h:14