OpenRTM-aist  1.2.1
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 <coil/Mutex.h>
23 #include <rtm/DirectPortBase.h>
24 
25 
26 
27 namespace RTC
28 {
47  template <class DataType>
49  {
50  public:
64  DirectInPortBase(DataType& value)
65  {
66  }
67 
79  virtual ~DirectInPortBase(void){};
80 
81 
82 
83 
108  virtual bool isNew()
109  {
110  return false;
111  }
112 
136  virtual bool isEmpty()
137  {
138  return true;
139  }
140 
154  virtual void write(const DataType& data)
155  {
156  }
157 
158 
159  protected:
160 
161 
162  };
163 }; // End of namesepace RTM
164 
165 #endif // RTC_DIRECTINPORTBASE_H
virtual bool isNew()
Check whether the data is newest.
Definition: DirectInPortBase.h:108
RT-Component.
DirectPortBase class.
virtual bool isEmpty()
Check whether the data is newest.
Definition: DirectInPortBase.h:136
Definition: DirectPortBase.h:46
Definition: DirectInPortBase.h:48
virtual ~DirectInPortBase(void)
Destructor.
Definition: DirectInPortBase.h:79
DirectInPortBase(DataType &value)
Constructor.
Definition: DirectInPortBase.h:64
virtual void write(const DataType &data)
Definition: DirectInPortBase.h:154