|
Urbi SDK Remote for C++
2.7.3
|
#include <libport/warning-push.hh>#include <vector>#include <libport/hash.hh>#include <libport/preproc.hh>#include <libport/traits.hh>#include <libport/ufloat.h>#include <urbi/fwd.hh>#include <urbi/export.hh>#include <urbi/ubinary.hh>#include <urbi/uvalue.hxx>#include <libport/warning-pop.hh>

Go to the source code of this file.
Classes | |
| class | urbi::UList |
| Class storing URBI List type. More... | |
| class | urbi::UNamedValue |
| class | urbi::UValue |
| Container for a value that handles all types known to URBI. More... | |
| struct | urbi::uvalue_caster< Type > |
| struct | urbi::uvar_ref_traits< T > |
| struct | urbi::uvar_ref_traits< UVar > |
| struct | urbi::uvalue_cast_return_type< T > |
| struct | urbi::uvalue_cast_return_type< const UValue & > |
| class | UPackedData< T > |
| Packed data structure. More... | |
Namespaces | |
| namespace | urbi |
Global definition of the starterlist. | |
Defines | |
| #define | SYNCLINE_PUSH() "//#push " BOOST_PP_STRINGIZE(__LINE__) " \"" __FILE__ "\"\n" |
| #define | SYNCLINE_POP() "//#pop\n" |
| #define | __SRCDIR__ "" |
| #define | SYNCLINE_WRAP(...) |
| #define | CTOR_AND_ASSIGN_AND_COMMA(Type) |
| #define | URBI_DERIVED_NUMERIC_TYPES |
| #define | URBI_NUMERIC_TYPES |
| #define | URBI_STRING_TYPES LIBPORT_LIST(const char*, const void*, const std::string&,) |
| #define | URBI_MISC_TYPES |
| #define | CAST_OPERATOR(Type) operator Type() const; |
| #define | URBI_STRUCT_CAST_FIELD(_, Cname, Field) |
| #define | URBI_STRUCT_BCAST_FIELD(_, Cname, Field) dict[BOOST_PP_STRINGIZE(Field)], c.Field; |
| #define | URBI_REGISTER_STRUCT(Cname,...) |
Typedefs | |
| typedef boost::unordered_map < std::string, UValue > | urbi::UDictionary |
Enumerations | |
| enum | urbi::UDataType { urbi::DATA_BINARY = 0, urbi::DATA_DOUBLE = 2, urbi::DATA_LIST = 3, urbi::DATA_STRING = 5, urbi::DATA_SLOTNAME = 6, urbi::DATA_VOID = 7 } |
| Possible value types a UValue can contain. More... | |
Functions | |
| int & | urbi::kernelMajor (std::ostream &o) |
| If a kernel version was associated to this stream, its value. | |
| std::string | urbi::syncline_push (const std::string &srcdir, std::string file, unsigned line) |
| Issue a syncline. | |
| std::ostream & | urbi::operator<< (std::ostream &o, const UList &t) |
| std::ostream & | urbi::operator<< (std::ostream &s, const urbi::UDictionary &d) |
| std::ostream & | urbi::operator<< (std::ostream &s, const UValue &v) |
| template<typename Type > | |
| uvar_ref_traits< typename uvalue_cast_return_type< Type > ::type >::type | urbi::uvalue_cast (UValue &v) |
Definition in file uvalue.hh.
| #define CTOR_AND_ASSIGN_AND_COMMA | ( | Type | ) |
| #define SYNCLINE_PUSH | ( | ) | "//#push " BOOST_PP_STRINGIZE(__LINE__) " \"" __FILE__ "\"\n" |
| #define SYNCLINE_WRAP | ( | ... | ) |
(::urbi::syncline_push(__SRCDIR__, __FILE__, __LINE__) \ + libport::format(__VA_ARGS__) \ + "\n" \ SYNCLINE_POP())
Definition at line 58 of file uvalue.hh.
Referenced by urbi::compatibility::evaluate_in_channel_close(), urbi::compatibility::evaluate_in_channel_open(), urbi::UClient::onConnect(), urbi::UAbstractClient::onConnection(), urbi::UAbstractClient::setVersion(), urbi::USyncClient::syncGetImage(), and urbi::USyncClient::syncGetSound().
| #define URBI_DERIVED_NUMERIC_TYPES |
| #define URBI_MISC_TYPES |
LIBPORT_LIST(const UBinary&, const UList&, const UDictionary&, \ const USound&, const UImage&,)
| #define URBI_NUMERIC_TYPES |
| #define URBI_REGISTER_STRUCT | ( | Cname, | |
| ... | |||
| ) |
namespace urbi \ { \ template<> \ struct uvalue_caster<Cname> \ { \ Cname operator()(UValue& v) \ { \ if (v.type != DATA_DICTIONARY) \ throw std::runtime_error("invalid cast to " #Cname "from " \ + string_cast(v)); \ UDictionary& dict = *v.dictionary; \ Cname res; \ LIBPORT_VAARGS_APPLY(URBI_STRUCT_CAST_FIELD, Cname, __VA_ARGS__); \ return res; \ } \ }; \ \ static UValue& operator,(UValue& v, const Cname &c) \ { \ v = UDictionary(); \ UDictionary& dict = *v.dictionary; \ dict["$sn"] = BOOST_PP_STRINGIZE(Cname); \ LIBPORT_VAARGS_APPLY(URBI_STRUCT_BCAST_FIELD, Cname, __VA_ARGS__); \ return v; \ } \ }
| #define URBI_STRING_TYPES LIBPORT_LIST(const char*, const void*, const std::string&,) |
| #define URBI_STRUCT_BCAST_FIELD | ( | _, | |
| Cname, | |||
| Field | |||
| ) | dict[BOOST_PP_STRINGIZE(Field)], c.Field; |
| #define URBI_STRUCT_CAST_FIELD | ( | _, | |
| Cname, | |||
| Field | |||
| ) |