HardwareCanFilterMessageMap.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 // This file is part of FZIs ic_workspace.
5 //
6 // This program is free software licensed under the LGPL
7 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8 // You can find a copy of this license in LICENSE folder in the top
9 // directory of the source code.
10 //
11 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
12 //
13 // -- END LICENSE BLOCK ------------------------------------------------
14 
15 //----------------------------------------------------------------------
22 //----------------------------------------------------------------------
23 #ifndef ICL_HARDWARE_CAN_FILTER_HARDWARE_CAN_FILTER_MESSAGE_MAP_H_INCLUDED
24 #define ICL_HARDWARE_CAN_FILTER_HARDWARE_CAN_FILTER_MESSAGE_MAP_H_INCLUDED
25 
27 
28 #include <icl_sourcesink/DataSinkRegistration.h>
30 #include <icl_sourcesink/DataFilter.h>
32 
33 namespace icl_hardware {
34 namespace can {
35 
42 class ICL_HARDWARE_CAN_FILTER_IMPORT_EXPORT HardwareCanFilterMessageMap : public icl_sourcesink::DataFilter<tCanMessage, CanMessageMap>
43 {
44 public:
46  typedef boost::shared_ptr<HardwareCanFilterMessageMap> Ptr;
48  typedef boost::shared_ptr<const HardwareCanFilterMessageMap> ConstPtr;
49 
50  static icl_sourcesink::URISchemeMap supportedURISchemes()
51  {
52  using namespace icl_sourcesink;
53  URISchemeMap schemes;
54  schemes.insert(
55  std::make_pair(
56  "can+map",
57  URISchemeInfo(
58  "Converts tCanMessage to a CanMessageMap",
59  "can+map",
60  "No parameters needed.")));
61  return schemes;
62  }
63 
65  HardwareCanFilterMessageMap(const std::string& uri = "HardwareCanFilterMessageMap",
66  const std::string& name = "UnnamedHardwareCanFilterMessageMap");
67 
69  virtual ~HardwareCanFilterMessageMap();
70 
75  virtual void set(const CanMessageStamped::Ptr& data);
76 
78  virtual bool filter(const CanMessageStamped& input_data,
80 };
81 
82 SOURCESINK_DECLARE_GENERIC_SINK_FACTORY(HardwareCanFilterMessageMap)
83 
84 }
85 }
86 
87 #endif
#define ICL_HARDWARE_CAN_FILTER_IMPORT_EXPORT
boost::shared_ptr< HardwareCanFilterMessageMap > Ptr
Shared pointer shorthand.
static icl_sourcesink::URISchemeMap supportedURISchemes()
boost::shared_ptr< const HardwareCanFilterMessageMap > ConstPtr
Const shared pointer shorthand.
boost::shared_ptr< Stamped< DataType > > Ptr
Contains CAN driver interface functions.


fzi_icl_can
Author(s):
autogenerated on Mon Jun 10 2019 13:17:02