|
Urbi SDK Remote for C++
2.7.5
|
00001 /* 00002 * Copyright (C) 2007, 2008, 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 00012 #ifndef URBI_UPROP_HH 00013 # define URBI_UPROP_HH 00014 00015 # include <libport/export.hh> 00016 00017 # include <urbi/uvalue.hh> 00018 # include <urbi/uproperty.hh> 00019 00020 namespace urbi 00021 { 00022 00024 class URBI_SDK_API UProp 00025 { 00026 public: 00027 void operator =(const UValue& v); 00028 void operator =(const ufloat v); 00029 void operator =(const std::string& v); 00030 00031 operator ufloat(); 00032 operator std::string(); 00033 operator UValue(); 00034 00035 UProp(UVar& owner, UProperty name); 00036 00037 private: 00038 UVar& owner; 00039 UProperty name; 00040 00041 // Disable copy ctor and assignment operator. 00042 UProp(const UProp&); 00043 UProp& operator =(const UProp&); 00044 }; 00045 00046 } // end namespace urbi 00047 00048 #endif // ! URBI_UVAR_HH