snark
Main Page
Classes
Files
File List
snark
actuators
quickset
ptcr
actuators/quickset/ptcr/protocol.h
1
// This file is part of snark, a generic and flexible library
2
// for robotics research.
3
//
4
// Copyright (C) 2011 The University of Sydney
5
//
6
// snark is free software; you can redistribute it and/or
7
// modify it under the terms of the GNU Lesser General Public
8
// License as published by the Free Software Foundation; either
9
// version 3 of the License, or (at your option) any later version.
10
//
11
// snark is distributed in the hope that it will be useful, but WITHOUT ANY
12
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13
// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
14
// for more details.
15
//
16
// You should have received a copy of the GNU Lesser General Public
17
// License along with snark. If not, see <http://www.gnu.org/licenses/>.
18
19
#ifndef SNARK_ACTUATORS_QUICKSET_ptcr_PROTOCOL_H_
20
#define SNARK_ACTUATORS_QUICKSET_ptcr_PROTOCOL_H_
21
22
#include <string>
23
#include <boost/noncopyable.hpp>
24
#include "./commands.h"
25
#include "./packet.h"
26
27
namespace
snark {
namespace
quickset {
namespace
ptcr {
28
29
class
protocol :
public
boost::noncopyable
30
{
31
public
:
32
protocol(
const
std::string& name );
33
34
~protocol();
35
36
template
<
typename
C >
37
const
packet< typename C::response >* send(
const
C& command );
38
39
void
close();
40
41
private
:
42
class
impl;
43
impl* pimpl_;
44
};
45
46
} } }
// namespace snark { namespace quickset { namespace ptcr {
47
48
#endif // #ifndef SNARK_ACTUATORS_QUICKSET_ptcr_PROTOCOL_H_
Generated on Fri Nov 16 2012 12:42:42 for snark by
1.8.1.2