51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef FILECACHE_HEADER
-#define FILECACHE_HEADER
+#pragma once
#include <iostream>
#include <string>
/*
'dir' is the file cache directory to use.
*/
- FileCache(std::string dir) : m_dir(dir) {}
+ FileCache(const std::string &dir) : m_dir(dir) {}
bool update(const std::string &name, const std::string &data);
bool load(const std::string &name, std::ostream &os);
bool loadByPath(const std::string &path, std::ostream &os);
bool updateByPath(const std::string &path, const std::string &data);
};
-
-#endif