33 lines
534 B
C++
33 lines
534 B
C++
#pragma once
|
|
#ifndef CRYFS_LIB_CRYCONFIG_H_
|
|
#define CRYFS_LIB_CRYCONFIG_H_
|
|
|
|
#include <boost/filesystem/path.hpp>
|
|
|
|
#include "messmer/cpp-utils/macros.h"
|
|
|
|
namespace cryfs {
|
|
|
|
class CryConfig {
|
|
public:
|
|
CryConfig(const boost::filesystem::path &configfile);
|
|
virtual ~CryConfig();
|
|
|
|
const std::string &RootBlock() const;
|
|
void SetRootBlock(const std::string &value);
|
|
|
|
private:
|
|
boost::filesystem::path _configfile;
|
|
|
|
void load();
|
|
void save() const;
|
|
|
|
std::string _root_block;
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(CryConfig);
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|