|
Public 型 |
typedef std::set< std::string > | Synonyms |
typedef std::map< int, Synonyms > | Words |
typedef dictionary::Dictionary<
const Namable > | NamableDictionary |
typedef std::map< int, std::string > | Parameters |
enum | WordType {
wt_yes,
wt_no,
wt_hello,
wt_it_is,
wt_smile,
wt_going_to,
wt_acknowledge,
wt_laught
} |
enum | SentenceType {
st_yes,
st_no,
st_hello,
st_it_is,
st_going_to,
st_acknowledge
} |
Public メソッド |
virtual std::string | make_sentence (int type)=0 |
const Namable * | find (const std::string &s, std::string *res=NULL) |
void | set_parameter (int index, const std::string &s) |
const std::string & | get_parameter (int index) |
Protected メソッド |
| Language () |
| ~Language () |
void | add_word (int type, const std::string &s) |
const std::string & | pick_word (int type) const |
void | add_namable (const std::string &s, const Namable &n) |
Protected 変数 |
Words | _words |
NamableDictionary | _namables |
Parameters | _parameters |