OpenRTM-aist  2.0.2
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
RTC::DirectInPortBase::isNew
virtual bool isNew()=0
Check whether the data is newest.
RTC::DirectPortBase
Definition: DirectPortBase.h:46
RTC::DirectInPortBase::~DirectInPortBase
~DirectInPortBase() override=default
Destructor.
RTC::DirectInPortBase::write
virtual void write(DataType &data)=0
RTC::DirectInPortBase::isEmpty
virtual bool isEmpty()=0
Check whether the data is newest.
RTC
RT-Component.
RTC::DirectInPortBase
Definition: DirectInPortBase.h:47
DirectPortBase.h
DirectPortBase class.