conn_input_endpoint.hpp
Go to the documentation of this file.
00001 /* 
00002  *  conn_input_endpoint.hpp - micros input end element for transport channel
00003  *  Copyright (C) 2015 Zaile Jiang
00004  *  
00005  *  This program is free software; you can redistribute it and/or
00006  *  modify it under the terms of the GNU General Public License
00007  *  as published by the Free Software Foundation; either version 2
00008  *  of the License, or (at your option) any later version.
00009  *  
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *  
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00018 */
00019 #ifndef MICROSRTT_CONN_INPUT_ENDPOINT_HPP
00020 #define MICROSRTT_CONN_INPUT_ENDPOINT_HPP
00021 
00022 #include "micros_rtt/connection_base.h"
00023 #include "micros_rtt/oro/channel_data_element.hpp"
00024 
00025 namespace micros_rtt
00026 {
00030 template<typename M>
00031 class ConnInputEndpoint : public ChannelElement<M>
00032 {
00033   ConnectionBasePtr publication_;
00034 
00035 public:
00036   ConnInputEndpoint(ConnectionBasePtr publication) : publication_(publication) { }
00037 
00038   ~ConnInputEndpoint()
00039   {
00040   }
00041 
00042   using ChannelElement<M>::read;
00043 
00047   virtual FlowStatus read(typename ChannelElement<M>::reference_t sample)
00048   { return NoData; }
00049 
00050   virtual bool inputReady() 
00051   {
00052     return true;
00053   }
00054 
00055   virtual void disconnect(bool forward)
00056   {
00057     //temporary not supportted
00058   }
00059 };
00060 
00061 }
00062 
00063 #endif


micros_rtt
Author(s): Zaile Jiang , Xiaodong Yi , Minglong Li
autogenerated on Sat Jun 8 2019 19:02:21