26 lines
512 B
C++
26 lines
512 B
C++
#pragma once
|
|
#include "Shm/FixedSecurity.h"
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
namespace bts {
|
|
namespace md {
|
|
|
|
struct ISecurityMapper {
|
|
virtual ~ISecurityMapper() {}
|
|
virtual void apply(FixedSecurity &) const = 0;
|
|
};
|
|
|
|
class SecurityMapper {
|
|
std::vector<std::unique_ptr<ISecurityMapper>> _impl;
|
|
|
|
public:
|
|
SecurityMapper(bool enabled);
|
|
~SecurityMapper();
|
|
// apply various mappings to the security
|
|
void apply(FixedSecurity &);
|
|
};
|
|
|
|
} // namespace md
|
|
} // namespace bts
|