#include "ghit.h"
-GHIT::GHIT(string root, string postfix, string group) {
- HIT(root, postfix);
+using namespace bife;
+
+#ifdef DEBUG
+#include <iostream>
+using std::cerr;
+using std::endl;
+#endif
+
+GHIT::GHIT(const string& root, const string& postfix, const string& group):
+ HIT(root, postfix) {
+#ifdef DEBUG
+ cerr << "In GHIT::GHIT(root = '" << root << "', postfix = '" << postfix
+ << "', group = '" << group << "');" << endl;
+#endif
this->group.push(group);
}
-string GHIT::getFileName(string blockname) {
+GHIT::~GHIT(void) {
+#ifdef DEBUG
+ cerr << "In GHIT destructor." << endl;
+#endif
+}
+
+string GHIT::getFileName(const string& blockname) {
return string(root + '/' + group.top() + '/' + blockname + postfix);
}
-void GHIT::pushGroup(string group = "") {
+void GHIT::pushGroup(const string& group) {
this->group.push(group);
}