yarp-devices
BottleExtract.hpp
1 // -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2 
3 #ifndef __BOTTLE_EXTRACT__
4 #define __BOTTLE_EXTRACT__
5 
6 #include <yarp/os/MonitorObject.h>
7 
8 namespace roboticslab
9 {
10 
11 class BottleExtract : public yarp::os::MonitorObject
12 {
13 public:
14  bool create(const yarp::os::Property& options) override;
15  void destroy(void) override;
16 
17  bool setparam(const yarp::os::Property& params) override;
18  bool getparam(yarp::os::Property& params) override;
19 
20  void trig(void) override;
21 
22  bool accept(yarp::os::Things& thing) override;
23  yarp::os::Things& update(yarp::os::Things& thing) override;
24 
25 private:
26  int index, subindex, subsubindex;
27  bool hasSubindex() { return (subindex != NOT_USED); }
28  bool hasSubsubindex() { return (subsubindex != NOT_USED); }
29 
30  static const int NOT_USED;
31 };
32 
33 } // namespace roboticslab
34 
35 #endif // __BOTTLE_EXTRACT__
Definition: BottleExtract.hpp:12
The main, catch-all namespace for Robotics Lab UC3M.
Definition: groups.dox:6