2014-12-07 22:26:16 +01:00
|
|
|
#pragma once
|
|
|
|
#ifndef CRYFS_LIB_CRYCONFIG_H_
|
|
|
|
#define CRYFS_LIB_CRYCONFIG_H_
|
|
|
|
|
|
|
|
#include <boost/filesystem/path.hpp>
|
|
|
|
|
2015-02-17 01:02:15 +01:00
|
|
|
#include "messmer/cpp-utils/macros.h"
|
2014-12-07 22:29:24 +01:00
|
|
|
|
2014-12-07 22:26:16 +01:00
|
|
|
namespace cryfs {
|
|
|
|
|
|
|
|
class CryConfig {
|
|
|
|
public:
|
|
|
|
CryConfig(const boost::filesystem::path &configfile);
|
|
|
|
virtual ~CryConfig();
|
|
|
|
|
2015-02-27 00:51:51 +01:00
|
|
|
const std::string &RootBlob() const;
|
|
|
|
void SetRootBlob(const std::string &value);
|
2014-12-07 22:26:16 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
boost::filesystem::path _configfile;
|
|
|
|
|
|
|
|
void load();
|
|
|
|
void save() const;
|
|
|
|
|
2015-02-27 00:51:51 +01:00
|
|
|
std::string _rootBlob;
|
2014-12-07 22:26:16 +01:00
|
|
|
|
2014-12-07 22:29:24 +01:00
|
|
|
DISALLOW_COPY_AND_ASSIGN(CryConfig);
|
2014-12-07 22:26:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|