Urbi SDK Remote for C++  2.7.5
uevent.hxx
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2010-2011, 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 // \file urbi/uevent.hxx
00012 #ifndef URBI_UEVENT_HXX
00013 # define URBI_UEVENT_HXX
00014 
00015 # include <stdexcept>
00016 # include <libport/cassert>
00017 # include <urbi/uevent.hh>
00018 
00019 namespace urbi
00020 {
00021   inline
00022   UEvent::UEvent()
00023     : name("noname")
00024   {
00025   }
00026 
00027 
00028   inline
00029   void
00030   UEvent::__init()
00031   {
00032     ctx_->declare_event(this);
00033   }
00034 
00035 
00036   inline
00037   void
00038   UEvent::emit(urbi::UAutoValue v1,
00039                urbi::UAutoValue v2,
00040                urbi::UAutoValue v3,
00041                urbi::UAutoValue v4,
00042                urbi::UAutoValue v5,
00043                urbi::UAutoValue v6,
00044                urbi::UAutoValue v7
00045                )
00046   {
00047     ctx_->emit(name, v1, v2, v3, v4, v5, v6, v7);
00048   }
00049 } // end namespace urbi
00050 
00051 #endif // ! URBI_UEVENT_HXX