43
64
CLanguage () : m_Type (LANG_UNDEFINED), m_Text ("") {}
45
68
void Type (LangType lt) {
46
69
m_Type = lt; m_Text = (lt==LANG_C)?"C":(lt==LANG_CPLUSPLUS)?"C++":"";
48
74
void Type (LangType lt, const char *txt) {
49
75
m_Type = lt; m_Text = (lt==LANG_C)?"C":(lt==LANG_CPLUSPLUS)?"C++":(lt==LANG_OTHER)?txt:"";
52
79
LangType Type () const { return m_Type; }
53
82
const DString &Text () const { return m_Text; }
55
86
bool operator== (const CLanguage &lang) { return (m_Type == lang.Type ()) && (m_Text == lang.Text ()); }
56
89
bool operator== (LangType lt) { return (m_Type == lt); }