]> git.llucax.com Git - software/bife/bife++.git/blob - chit.cpp
f456cdec2fded06097afe292370f9e7bb8b7b940
[software/bife/bife++.git] / chit.cpp
1 // vim: set expandtab tabstop=4 shiftwidth=4:
2
3 #include "chit.h"
4
5 CHIT::CHIT(string root, string postfix, string group) {
6     GHIT(root, postfix, group);
7 }
8
9 string CHIT::getFileContent(string filename) {
10     Hash::iterator c = cache.find(filename);
11     if (c == cache.end()) {
12         cache[filename] = GHIT::getFileContent(filename);
13         return cache[filename];
14     } else {
15         return c->second;
16     }
17 }
18