Urbi SDK Remote for C++  2.7.5
input-port.hxx
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2010, Gostai S.A.S.
00003  *
00004  * This software is provided "as is" without warranty of any kind,
00005  * either expressed or implied, including but not limited to the
00006  * implied warranties of fitness for a particular purpose.
00007  *
00008  * See the LICENSE file for more information.
00009  */
00010 
00011 
00012 #ifndef URBI_INPUT_PORT_HXX
00013 # define URBI_INPUT_PORT_HXX
00014 
00015 namespace urbi
00016 {
00017   inline InputPort::InputPort()
00018   {
00019   }
00020 
00021   inline InputPort::InputPort(const std::string& objname,
00022                               const std::string& name,
00023                               impl::UContextImpl* ctx)
00024   :UVar(objname, name, ctx)
00025   {
00026     impl_->setInputPort(true);
00027   }
00028 
00029   inline InputPort::InputPort(UObject* owner, const std::string& name,
00030                               impl::UContextImpl* ctx)
00031   :UVar(*owner, name, ctx)
00032   {
00033     impl_->setInputPort(true);
00034   }
00035 
00036   inline InputPort::InputPort(const InputPort& b)
00037   :UVar(b.get_name())
00038   {
00039     impl_->setInputPort(true);
00040   }
00041 
00042   inline InputPort& InputPort::operator=(const InputPort& b)
00043   {
00044     UVar::init(b.get_name(), b.ctx_);
00045     impl_->setInputPort(true);
00046     return *this;
00047   }
00048 
00049   inline void InputPort::unnotify()
00050   {
00051     UVar::unnotify();
00052   }
00053 }
00054 
00055 #endif