Go to the documentation of this file.00001
00002
00003 <%= into.arg_type %> orogen_typekits::toIntermediate(<%= from.arg_type %> real_type)
00004 {
00005 if (!real_type.get())
00006 throw std::runtime_error("trying access the value inside an unset smart pointer");
00007 return *real_type;
00008 }
00009 bool orogen_typekits::fromIntermediate(<%= from.ref_type %> real_type, <%= into.cxx_name %>* intermediate)
00010 {
00011 if (real_type.get() != intermediate)
00012 real_type.reset(intermediate);
00013 return true;
00014 }