|
ICG 2
Electric Boogaloo
|
Classes | |
| class | recursable |
| An interface for an object that has some attributes that should be used in a list_ token, with the option to nest. More... | |
Typedefs | |
| typedef std::map< std::string, std::string > | Dictionary |
| Map of token name to string it should be replaced with. More... | |
| typedef std::map< std::string, std::vector< const recursable * > > | ListTokenItems |
| Lists that we can recurse into. More... | |
Functions | |
| std::string | process (const std::string &template_to_fill, const Dictionary &token_dictionary, const ListTokenItems &recursable_map) |
| std::string | process (const Dictionary &token_dictionary, const ListTokenItems &recursable_list) |
| process(const std::string& template_to_fill, const Dictionary& token_dictionary, const std::vector<const recursable *>& recursable_list); Uses token named "top" in token_dictionary to begin processing. More... | |
| int | get_next_token (const std::string &format, std::string &token) |
| std::string | ReplaceAll (std::string str, const std::string &from, const std::string &to) |
| std::string | replace_token (const std::string &full, const std::string &token_name, const std::string &replace_val) |
| typedef std::map<std::string, std::string> ICGTemplateEngine::Dictionary |
Map of token name to string it should be replaced with.
| typedef std::map<std::string, std::vector<const recursable *> > ICGTemplateEngine::ListTokenItems |
Lists that we can recurse into.
| int ICGTemplateEngine::get_next_token | ( | const std::string & | format, |
| std::string & | token | ||
| ) |
| std::string ICGTemplateEngine::process | ( | const Dictionary & | token_dictionary, |
| const ListTokenItems & | recursable_list | ||
| ) |
process(const std::string& template_to_fill, const Dictionary& token_dictionary, const std::vector<const recursable *>& recursable_list); Uses token named "top" in token_dictionary to begin processing.
| token_dictionary | map of token names to string values they expand to. Values may contain more tokens. |
| recursable_list | List of special objects that implement recursable that should be used to fill in list_ tokens |
| std::string ICGTemplateEngine::process | ( | const std::string & | template_to_fill, |
| const Dictionary & | token_dictionary, | ||
| const ListTokenItems & | recursable_map | ||
| ) |
| template_to_fill | top level template to fill in |
| token_dictionary | map of token names to string values they expand to. Values may contain more tokens. |
| recursable_list | List of special objects that implement recursable that should be used to fill in list_ tokens |
| std::string ICGTemplateEngine::replace_token | ( | const std::string & | full, |
| const std::string & | token_name, | ||
| const std::string & | replace_val | ||
| ) |
| std::string ICGTemplateEngine::ReplaceAll | ( | std::string | str, |
| const std::string & | from, | ||
| const std::string & | to | ||
| ) |