00001 #ifndef LANGUAGE_HXX_ 00002 # define LANGUAGE_HXX_ 00003 00004 namespace language 00005 { 00006 inline const Namable *Language::find(const std::string &s, std::string *res) 00007 { 00008 return _namables.find_longest(s, res); 00009 } 00010 00011 inline void Language::set_parameter(int index, const std::string &s) 00012 { 00013 _parameters[index] = s; 00014 } 00015 00016 inline const std::string &Language::get_parameter(int index) 00017 { 00018 return _parameters[index]; 00019 } 00020 00021 inline void Language::add_word(int type, const std::string &s) 00022 { 00023 _words[type].insert(s); 00024 } 00025 00026 inline void Language::add_namable(const std::string &s, const Namable &n) 00027 { 00028 _namables.put_word(s, &n); 00029 } 00030 } 00031 00032 00033 #endif