RTI Recording Service Version 7.7.0
RecordingServiceImpl.hpp
1/*
2 * (c) Copyright, Real-Time Innovations, 2017.
3 * All rights reserved.
4 *
5 * No duplications, whole or partial, manual or electronic, may be made
6 * without express written permission. Any such copies, or
7 * revisions thereof, must display this notice unaltered.
8 * This code contains trade secrets of Real-Time Innovations, Inc.
9 */
10
11#ifndef RTI_RECORDING_RECORDING_SERVICE_IMPL_HPP_
12#define RTI_RECORDING_RECORDING_SERVICE_IMPL_HPP_
13
14#include "recordingservice/recordingservice_dll.h"
15
16#include <dds/core/refmacros.hpp>
17#include <rti/core/detail/SelfReference.hpp>
18#include <rti/idlgen/ServiceAdmin.hpp>
19#include <rti/recording/ServiceProperty.hpp>
20#include <rti/routing/detail/ShutdownHookForwarder.hpp>
21
22namespace rti { namespace recording {
23
24namespace service {
25class Service;
26}
27
28namespace detail {
29
30typedef rti::routing::detail::AbstractShutdownHookForwarder
31 AbstractShutdownHookForwarder;
32
33}
34
35class Application;
36
37class RECORDERDllExport RecordingServiceImpl
38 : public rti::core::detail::RetainableType<RecordingServiceImpl> {
39
40public:
41 typedef RTI::Service::Admin::CommandRequest CommandRequest;
42 typedef RTI::Service::Admin::CommandReply CommandReply;
43
44 explicit RecordingServiceImpl(const ServiceProperty& property);
45
46 RecordingServiceImpl(
47 const ServiceProperty& property,
48 detail::AbstractShutdownHookForwarder *hook_forwarder);
49
50 ~RecordingServiceImpl();
51
52 void start();
53
54 void stop();
55
56 CommandReply execute_command(const CommandRequest& request);
57
58 CommandReply& execute_command(
59 CommandReply& reply,
60 const CommandRequest& request);
61
62private:
63
64 friend class rti::recording::Application;
65
66 rti::recording::service::Service *impl_;
67 detail::AbstractShutdownHookForwarder *shutdown_forwarder_fwd_;
68};
69
70}}
71
72#endif // RTI_RECORDING_RECORDING_SERVICE_IMPL_HPP_
The RTI namespace.
Definition: RecordingServiceImpl.hpp:22