OpenRTM-aist  2.1.0
DirectInPortBase.h
Go to the documentation of this file.
1 // -*- C++ -*-
17 #ifndef RTC_DIRECTINPORTBASE_H
18 #define RTC_DIRECTINPORTBASE_H
19 
20 
21 
22 #include <rtm/DirectPortBase.h>
23 
24 
25 
26 namespace RTC
27 {
46  template <class DataType>
48  {
49  public:
50 
62  ~DirectInPortBase() override = default;
63 
64 
65 
66 
91  virtual bool isNew() = 0;
92 
116  virtual bool isEmpty() = 0;
117 
131  virtual void write(DataType& data) = 0;
132 
133 
134  protected:
135 
136 
137  };
138 } // namespace RTC
139 
140 #endif // RTC_DIRECTINPORTBASE_H
DirectPortBase class.
Definition: DirectInPortBase.h:48
virtual void write(DataType &data)=0
~DirectInPortBase() override=default
Destructor.
virtual bool isEmpty()=0
Check whether the data is newest.
virtual bool isNew()=0
Check whether the data is newest.
Definition: DirectPortBase.h:47
RT-Component.