blob: ed5dd4597689cfd07a5ecc4fa42c0451072a834e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <memory>
class FNET_Transport;
class FRT_Supervisor;
namespace slobrok { class ConfiguratorFactory; }
namespace slobrok::api { class IMirrorAPI; }
namespace documentapi {
class MirrorAndStuff {
public:
MirrorAndStuff(const slobrok::ConfiguratorFactory & config);
~MirrorAndStuff();
slobrok::api::IMirrorAPI * mirror() { return _mirror.get(); }
private:
std::unique_ptr<FNET_Transport> _transport;
std::unique_ptr<FRT_Supervisor> _orb;
std::unique_ptr<slobrok::api::IMirrorAPI> _mirror;
};
}
|