36 lines
825 B
C++
36 lines
825 B
C++
#pragma once
|
|
#ifndef MESSMER_CRYFSUNMOUNT_PROGRAMOPTIONS_PROGRAMOPTIONS_H
|
|
#define MESSMER_CRYFSUNMOUNT_PROGRAMOPTIONS_PROGRAMOPTIONS_H
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
#include <boost/optional.hpp>
|
|
#include <cpp-utils/macros.h>
|
|
#include <boost/filesystem.hpp>
|
|
|
|
namespace cryfs_unmount
|
|
{
|
|
namespace program_options
|
|
{
|
|
class ProgramOptions final
|
|
{
|
|
public:
|
|
ProgramOptions(boost::filesystem::path mountDir, bool immediate);
|
|
ProgramOptions(ProgramOptions &&rhs) = default;
|
|
|
|
const boost::filesystem::path &mountDir() const;
|
|
bool mountDirIsDriveLetter() const;
|
|
bool immediate() const;
|
|
|
|
private:
|
|
boost::filesystem::path _mountDir;
|
|
bool _mountDirIsDriveLetter;
|
|
bool _immediate;
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(ProgramOptions);
|
|
};
|
|
} // namespace program_options
|
|
} // namespace cryfs_unmount
|
|
|
|
#endif
|