|
Urbi SDK Remote for C++
2.7.5
|
00001 /* 00002 * Copyright (C) 2008-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 #include <iostream> 00012 #include <libport/debug.hh> 00013 #include "uchange.hh" 00014 00015 GD_CATEGORY(Test.UChange); 00016 00017 using namespace urbi; 00018 00019 UStart (uchange); 00020 00021 uchange::uchange (const std::string& s) 00022 : UObject (s) 00023 { 00024 UBindFunction (uchange, init); 00025 } 00026 00027 int 00028 uchange::init () 00029 { 00030 val = new UVar ("uaccess.val"); 00031 UNotifyChange (*val, &uchange::newval); 00032 return 0; 00033 } 00034 00035 UReturn 00036 uchange::newval (UVar& v) 00037 { 00038 LIBPORT_USE(v); 00039 GD_FINFO_DEBUG("newval: %s", (int) v); 00040 return 0; 00041 }