25 lines
470 B
C++
25 lines
470 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include <unordered_map>
|
|
#include "server/sparkd/securities/ISecurityDB.h"
|
|
|
|
namespace bts {
|
|
namespace securities {
|
|
|
|
class SecurityDB : public ISecurityDB
|
|
{
|
|
public:
|
|
SecurityDB();
|
|
~SecurityDB();
|
|
api::Security const *resolve(SecurityKey const&k) override;
|
|
SecurityMap retrieve_all() const override;
|
|
void do_work();
|
|
private:
|
|
void store_if_new(api::Security const&sec);
|
|
struct PImpl;
|
|
std::unique_ptr<PImpl> me;
|
|
};
|
|
|
|
}}
|