winss
controller.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2016-2017 Morgan Stanley
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef LIB_WINSS_SVSCAN_CONTROLLER_HPP_
18 #define LIB_WINSS_SVSCAN_CONTROLLER_HPP_
19 
20 #include <vector>
21 #include "../not_owning_ptr.hpp"
22 #include "../pipe_server.hpp"
23 #include "svscan.hpp"
24 
25 namespace winss {
30  private:
34 
35  public:
36  static const char kAlarm;
37  static const char kAbort;
38  static const char kNuke;
39  static const char kQuit;
49  SvScanController(const SvScanController&) = delete;
58  bool Received(const std::vector<char>& data);
59 
64 };
65 } // namespace winss
66 
67 #endif // LIB_WINSS_SVSCAN_CONTROLLER_HPP_
SvScanController & operator=(const SvScanController &)=delete
No copy.
A listener for server receiving data from pipe clients.
Definition: pipe_server.hpp:296
static const char kNuke
Nuke control char.
Definition: controller.hpp:38
static const char kAlarm
Alarm control char.
Definition: controller.hpp:36
SvScanController(winss::NotOwningPtr< winss::SvScan > svscan, winss::NotOwningPtr< winss::InboundPipeServer > inbound)
svscan controller constructor.
Definition: controller.cpp:28
Definition: case_ignore.hpp:23
bool Received(const std::vector< char > &data)
Pipe server received handler.
Definition: controller.cpp:35
static const char kQuit
Quit control char.
Definition: controller.hpp:39
static const char kAbort
Abort control char.
Definition: controller.hpp:37
A controller for svscan process.
Definition: controller.hpp:29
A container for pointers where the lifetime should be owned by the caller.
Definition: not_owning_ptr.hpp:33