/*
Minetest
-Copyright (C) 2010 celeron55, Perttu Ahola <celeron55@gmail.com>
-Copyright (C) 2012 Jonathan Neuschäfer <j.neuschaefer@gmx.net>
+Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
+Copyright (C) 2013 Jonathan Neuschäfer <j.neuschaefer@gmx.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
#ifndef FILECACHE_HEADER
#define FILECACHE_HEADER
-#include <string>
#include <iostream>
+#include <string>
class FileCache
{
/*
'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 update_sha1(const std::string &data);
bool load(const std::string &name, std::ostream &os);
- bool load_sha1(const std::string &sha1_raw, std::ostream &os);
+
private:
std::string m_dir;