25 lines
493 B
C++
25 lines
493 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
|