Convertions.cpp
Go to the documentation of this file.
00001 /* Generated from orogen/lib/orogen/templates/typekit/corba/Convertions.cpp */
00002 
00003 #include "Convertions.hpp"
00004 #include <memory>
00005 
00006 <% if typekit.has_opaques? %>
00007 #include "OpaqueConvertions.hpp"
00008 <% end %>
00009 
00010 <% typekit.used_typekits.each do |tk| %>
00011 <% next if tk.virtual? %>
00012 #include <<%= tk.name %>/transports/corba/Convertions.hpp>
00013 <% if tk.has_opaques? %>
00014 #include <<%= tk.name %>/typekit/OpaqueConvertions.hpp>
00015 <% end %>
00016 <% end %>
00017 
00018 <% typesets.converted_types.each do |type|
00019     target_type = typekit.intermediate_type_for(type) %>
00020 bool orogen_typekits::toCORBA( <%= target_type.corba_ref_type %> corba, <%= type.arg_type %> value )
00021 {
00022 <%= result = ""
00023         type.to_corba(typekit, result, " " * 4)
00024         result 
00025         %>
00026     return true;
00027 }
00028 bool orogen_typekits::fromCORBA( <%= type.ref_type %> value, <%= target_type.corba_arg_type %> corba )
00029 {
00030 <%= result = ""
00031         type.from_corba(typekit, result, " " * 4)
00032         result 
00033         %>
00034     return true;
00035 }
00036 <% end %>
00037 <% typesets.array_types.each do |type|
00038     target_type = typekit.intermediate_type_for(type) %>
00039 bool orogen_typekits::toCORBA( <%= target_type.corba_ref_type %> corba, <%= type.arg_type %> value, int length )
00040 {
00041 <%= result = ""
00042         type.to_corba(typekit, result, " " * 4)
00043         result 
00044         %>
00045     return true;
00046 }
00047 bool orogen_typekits::fromCORBA( <%= type.ref_type %> value, int length, <%= target_type.corba_arg_type %> corba )
00048 {
00049 <%= result = ""
00050         type.from_corba(typekit, result, " " * 4)
00051         result 
00052         %>
00053     return true;
00054 }
00055 <% end %>
00056 


orogen
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Mon Oct 6 2014 03:17:29