1 // vim: set expandtab tabstop=4 shiftwidth=4:
15 * HIT template with groups of templates added. You can specify a template
16 * group. The group is used as a subdirectory in root template directory, so you
17 * can group templates together. The default group ('') templates are stored in
20 class GHIT: public HIT {
24 typedef std::stack<string> GroupStack;
34 * Gets file name based on the blockname and the group.
36 * @param blockname Name of the block to get the filename.
37 * @return Block's filename.
39 virtual string getFileName(string);
45 * @param root Root directory from where to get the templates.
46 * @param postfix Postfix of the template files.
47 * @param group Starting group.
49 GHIT(string = string("."), string = string(".tpl"), string = string(""));
57 * Starts working with a new group of templates.
59 * @param group Group of templates to work with.
61 virtual void pushGroup(string);
64 * Stops working with a group of templates.
66 * @return Last template's group used.
68 virtual string popGroup(void);
71 * Gets the current working group.
73 * @return Current template's group.
75 virtual string getGroup(void);