X-Git-Url: https://git.llucax.com/software/bife/bife%20%20.git/blobdiff_plain/3de3fcc595200e235aadf399c64160b0bd0da7cc..65bbdd707ba33de08101076a7191585d6f44c507:/chit.cpp/software/bife/bife++.git/blobdiff_plain/3de3fcc595200e235aadf399c64160b0bd0da7cc..65bbdd707ba33de08101076a7191585d6f44c507:/chit.cpp?ds=inline diff --git a/chit.cpp b/chit.cpp index f456cde..2322d12 100644 --- a/chit.cpp +++ b/chit.cpp @@ -2,11 +2,29 @@ #include "chit.h" -CHIT::CHIT(string root, string postfix, string group) { - GHIT(root, postfix, group); +using namespace bife; + +#ifdef DEBUG +#include +using std::cerr; +using std::endl; +#endif + +CHIT::CHIT(const string& root, const string& postfix, const string& group): + GHIT(root, postfix, group) { +#ifdef DEBUG + cerr << "In CHIT::CHIT(root = '" << root << "', postfix = '" << postfix + << "', group = '" << group << "');" << endl; +#endif +} + +CHIT::~CHIT(void) { +#ifdef DEBUG + cerr << "In CHIT destructor." << endl; +#endif } -string CHIT::getFileContent(string filename) { +string CHIT::getFileContent(const string& filename) { Hash::iterator c = cache.find(filename); if (c == cache.end()) { cache[filename] = GHIT::getFileContent(filename);