abstract.h
Go to the documentation of this file.
1 /*
2  * Copyright 2018 The urg_stamped Authors
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 SCIP2_RESPONSE_ABSTRACT_H
18 #define SCIP2_RESPONSE_ABSTRACT_H
19 
20 #include <boost/asio.hpp>
21 
22 #include <string>
23 
24 namespace scip2
25 {
26 class Response
27 {
28 public:
29  using Ptr = std::shared_ptr<Response>;
30  virtual std::string getCommandCode() const = 0;
31  virtual void operator()(
32  const boost::posix_time::ptime &,
33  const std::string &,
34  const std::string &,
35  std::istream &) = 0;
36 };
37 
38 } // namespace scip2
39 
40 #endif // SCIP2_RESPONSE_ABSTRACT_H
virtual std::string getCommandCode() const =0
std::shared_ptr< Response > Ptr
Definition: abstract.h:29
virtual void operator()(const boost::posix_time::ptime &, const std::string &, const std::string &, std::istream &)=0


urg_stamped
Author(s): Atsushi Watanabe
autogenerated on Thu Jun 6 2019 19:55:58