iodrivers_base
Proxy.hpp
Go to the documentation of this file.
1 /* Generated from orogen/lib/orogen/templates/tasks/Task.hpp */
2 
3 #ifndef IODRIVERS_BASE_PROXY_TASK_HPP
4 #define IODRIVERS_BASE_PROXY_TASK_HPP
5 
6 #include "iodrivers_base/ProxyBase.hpp"
7 
8 namespace iodrivers_base {
9 
25  class Proxy : public ProxyBase
26  {
27  friend class ProxyBase;
28  public:
29  static const int DUMMY_BUFFER_SIZE = 1024;
30 
31  protected:
32  virtual int createProxyDriver();
33  virtual void writePacket(RawPacket const& packet);
34  virtual void readPacket(RawPacket& packet);
35 
36  void processIO();
38  std::vector<boost::uint8_t> packet_buffer;
40 
41  public:
46  Proxy(std::string const& name = "iodrivers_base::Proxy");
47 
53  Proxy(std::string const& name, RTT::ExecutionEngine* engine);
54 
57  ~Proxy();
58 
73  bool configureHook();
74 
80  bool startHook();
81 
96  void updateHook();
97 
104  void errorHook();
105 
109  void stopHook();
110 
115  void cleanupHook();
116  };
117 }
118 
119 #endif
120 
Definition: RawPacket.hpp:9
void stopHook()
Definition: Proxy.cpp:102
void processIO()
Definition: Proxy.cpp:86
int buffer_size
Definition: Proxy.hpp:37
bool configureHook()
The following lines are template definitions for the various state machine.
Definition: Proxy.cpp:41
bool startHook()
Definition: Proxy.cpp:73
iodrivers_base::RawPacket rx_packet
Definition: Proxy.hpp:39
virtual void readPacket(RawPacket &packet)
Definition: Proxy.cpp:66
std::vector< boost::uint8_t > packet_buffer
Definition: Proxy.hpp:38
Definition: RawPacket.hpp:7
virtual int createProxyDriver()
Definition: Proxy.cpp:55
void cleanupHook()
Definition: Proxy.cpp:106
virtual void writePacket(RawPacket const &packet)
Definition: Proxy.cpp:61
iodrivers_base::RawPacket tx_packet
Definition: Proxy.hpp:39
The task context provides and requires services. It uses an ExecutionEngine to perform its functions...
Definition: Proxy.hpp:25
friend class ProxyBase
Definition: Proxy.hpp:27
~Proxy()
Definition: Proxy.cpp:33
static const int DUMMY_BUFFER_SIZE
Definition: Proxy.hpp:29
Proxy(std::string const &name="iodrivers_base::Proxy")
Definition: Proxy.cpp:23
void updateHook()
Definition: Proxy.cpp:79
void errorHook()
Definition: Proxy.cpp:98