libqi-api  2.8.7.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
dynamictypeinterface.hxx
Go to the documentation of this file.
1 #pragma once
2 /*
3 ** Copyright (C) 2013 Aldebaran Robotics
4 ** See COPYING for the license
5 */
6 
7 #ifndef _QITYPE_DETAIL_TYPEDYNAMIC_HXX_
8 #define _QITYPE_DETAIL_TYPEDYNAMIC_HXX_
9 
10 #include <boost/any.hpp>
11 
12 namespace qi {
13  //any
14  template<>
15  class TypeImpl<boost::any>: public DynamicTypeInterface
16  {
17  public:
18  AnyReference get(void* storage) override
19  {
20  qiLogVerbose("qitype.impl") << "get on boost::any not implemented";
21  return AnyReference();
22  };
23 
24  void set(void** storage, AnyReference source) override
25  {
26  qiLogVerbose("qitype.impl") << "set on boost::any not implemented";
27  }
28 
29  using Methods = DefaultTypeImplMethods<boost::any, TypeByPointerPOD<boost::any>>;
30  _QI_BOUNCE_TYPE_METHODS(Methods);
31  };
32 }
33 
34 #endif // _QITYPE_DETAIL_TYPEDYNAMIC_HXX_
#define qiLogVerbose(...)
Log in verbose mode. This level is not shown by default.
Definition: log.hpp:87
#define _QI_BOUNCE_TYPE_METHODS(Bounce)
Implement all methods of Type as bouncers to Bouncer.
Definition: typeimpl.hxx:273