Skip to content

Commit

Permalink
Indentation chagnes
Browse files Browse the repository at this point in the history
    * ridlbe/c++11/templates/cli/hdr/ami/attribute.erb:
    * ridlbe/c++11/templates/cli/hdr/ami/attribute_amic.erb:
    * ridlbe/c++11/templates/cli/hdr/ami/operation.erb:
    * ridlbe/c++11/templates/cli/hdr/ami/operation_amic.erb:
    * ridlbe/c++11/templates/cli/prx/ami/attribute.erb:
    * ridlbe/c++11/templates/cli/prx/ami/operation.erb:
    * ridlbe/c++11/templates/cli/src/ami/attribute_amic.erb:
    * ridlbe/c++11/templates/cli/src/ami/operation_amic.erb:
    * ridlbe/c++11/templates/srv/prx/ami/interface_post.erb:
  • Loading branch information
jwillemsen committed Oct 5, 2023
1 parent 9be512a commit 5d24ac3
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 59 deletions.
12 changes: 4 additions & 8 deletions ridlbe/c++11/templates/cli/hdr/ami/attribute.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@
// generated from <%= ridl_template_path %>
/// @copydoc <%= doc_scoped_name %>
//@{
void
get_<%= name %> (<%= scoped_cxx_in_type %> ami_return_val);
void get_<%= name %> (<%= scoped_cxx_in_type %> ami_return_val);

void
get_<%= name %>_excep (IDL::traits<TAOX11_NAMESPACE::Messaging::ExceptionHolder>::ref_type excep_holder);
void get_<%= name %>_excep (IDL::traits<TAOX11_NAMESPACE::Messaging::ExceptionHolder>::ref_type excep_holder);
% unless is_readonly?

void
set_<%= name %> ();
void set_<%= name %> ();

void
set_<%= name %>_excep (IDL::traits<TAOX11_NAMESPACE::Messaging::ExceptionHolder>::ref_type excep_holder);
void set_<%= name %>_excep (IDL::traits<TAOX11_NAMESPACE::Messaging::ExceptionHolder>::ref_type excep_holder);
% end
//@}
12 changes: 5 additions & 7 deletions ridlbe/c++11/templates/cli/hdr/ami/attribute_amic.erb
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@

// generated from <%= ridl_template_path %>
void
<%= sendc_prefix_get %><%= name %> (
<%= interface.handler_scoped_cxx_in_type %> ami_handler);
void <%= sendc_prefix_get %><%= name %> (
<%= interface.handler_scoped_cxx_in_type %> ami_handler);
% unless is_readonly?

void
<%= sendc_prefix_set %><%= name %> (
<%= interface.handler_scoped_cxx_in_type %> ami_handler,
<%= cxx_in_type %> _x11_<%= cxxname %>);
void <%= sendc_prefix_set %><%= name %> (
<%= interface.handler_scoped_cxx_in_type %> ami_handler,
<%= cxx_in_type %> _x11_<%= cxxname %>);
% end
3 changes: 1 addition & 2 deletions ridlbe/c++11/templates/cli/hdr/ami/operation.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ void
<%= _arg.direction == :out ? _arg.scoped_cxx_in_type : _arg.scoped_cxx_inout_type%> <%= _arg.cxxname %><%= _args.empty? ? ');' : ',' %>
% end

void
<%= name %>_excep (IDL::traits<TAOX11_NAMESPACE::Messaging::ExceptionHolder>::ref_type excep_holder);
void <%= name %>_excep (IDL::traits<TAOX11_NAMESPACE::Messaging::ExceptionHolder>::ref_type excep_holder);
7 changes: 3 additions & 4 deletions ridlbe/c++11/templates/cli/hdr/ami/operation_amic.erb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// generated from <%= ridl_template_path %>
% _args = in_arguments.dup
void
<%= sendc_prefix %><%= name %> (
<%= interface.handler_scoped_cxx_in_type %> ami_handler<%= _args.empty? ? ');' : ',' %>
void <%= sendc_prefix %><%= name %> (
<%= interface.handler_scoped_cxx_in_type %> ami_handler<%= _args.empty? ? ');' : ',' %>
% while !_args.empty?
% _arg = _args.shift
<%= _arg.stub_arg_type %> <%= _arg.cxxname %><%= _args.empty? ? ');' : ',' %>
<%= _arg.stub_arg_type %> <%= _arg.cxxname %><%= _args.empty? ? ');' : ',' %>
% end
12 changes: 6 additions & 6 deletions ridlbe/c++11/templates/cli/prx/ami/attribute.erb
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@

// generated from <%= ridl_template_path %>
static void get_<%= name %>_reply_stub (
TAO_InputCDR &_tao_reply_cdr,
TAO_MESSAGING::ReplyHandler_ptr _tao_reply_handler,
TAO_CORBA::ULong reply_status);
TAO_InputCDR &_tao_reply_cdr,
TAO_MESSAGING::ReplyHandler_ptr _tao_reply_handler,
TAO_CORBA::ULong reply_status);
% unless is_readonly?

static void set_<%= name %>_reply_stub (
TAO_InputCDR &_tao_reply_cdr,
TAO_MESSAGING::ReplyHandler_ptr _reply_handler,
TAO_CORBA::ULong reply_status);
TAO_InputCDR &_tao_reply_cdr,
TAO_MESSAGING::ReplyHandler_ptr _reply_handler,
TAO_CORBA::ULong reply_status);

% end
6 changes: 3 additions & 3 deletions ridlbe/c++11/templates/cli/prx/ami/operation.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// generated from <%= ridl_template_path %>
static void <%= name %>_reply_stub (
TAO_InputCDR &_tao_reply_cdr,
TAO_MESSAGING::ReplyHandler_ptr _tao_reply_handler,
TAO_CORBA::ULong reply_status);
TAO_InputCDR &_tao_reply_cdr,
TAO_MESSAGING::ReplyHandler_ptr _tao_reply_handler,
TAO_CORBA::ULong reply_status);
12 changes: 5 additions & 7 deletions ridlbe/c++11/templates/cli/src/ami/attribute_amic.erb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
% unless interface.is_local?

// generated from <%= ridl_template_path %>
void
<%= interface.amic_scoped_cxxname %>::<%= sendc_prefix_get %><%= name %>(
<%= interface.handler_scoped_cxx_in_type %> ami_handler)
void <%= interface.amic_scoped_cxxname %>::<%= sendc_prefix_get %><%= name %>(
<%= interface.handler_scoped_cxx_in_type %> ami_handler)
{
% if interface.is_abstract?
if (!this->_is_object ())
Expand Down Expand Up @@ -58,10 +57,9 @@ void
}

% unless is_readonly?
void
<%= interface.amic_scoped_cxxname %>::<%= sendc_prefix_set %><%= name %>(
<%= interface.handler_scoped_cxx_in_type %> ami_handler,
<%= cxx_in_type %> _x11_<%= cxxname %>)
void <%= interface.amic_scoped_cxxname %>::<%= sendc_prefix_set %><%= name %>(
<%= interface.handler_scoped_cxx_in_type %> ami_handler,
<%= cxx_in_type %> _x11_<%= cxxname %>)
{
% if interface.is_abstract?
if (!this->_is_object ())
Expand Down
7 changes: 3 additions & 4 deletions ridlbe/c++11/templates/cli/src/ami/operation_amic.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

// generated from <%= ridl_template_path %>
% _args = in_arguments.dup
void
<%= interface.amic_scoped_cxxname %>::<%= sendc_prefix %><%= name %> (
<%= interface.handler_scoped_cxx_in_type %> ami_handler<%= _args.empty? ? ')' : ',' %>
void <%= interface.amic_scoped_cxxname %>::<%= sendc_prefix %><%= name %> (
<%= interface.handler_scoped_cxx_in_type %> ami_handler<%= _args.empty? ? ')' : ',' %>
% while !_args.empty?
% _arg = _args.shift
<%= _arg.stub_arg_type %> <%= _arg.cxxname %><%= _args.empty? ? ')' : ',' %>
<%= _arg.stub_arg_type %> <%= _arg.cxxname %><%= _args.empty? ? ')' : ',' %>
% end
{
% if interface.is_abstract?
Expand Down
36 changes: 18 additions & 18 deletions ridlbe/c++11/templates/srv/prx/ami/interface_post.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,34 @@
%all_operations.each do |_op|
% unless _op.is_inherited?
static void <%= _op.name %>_skel (
TAO_ServerRequest & server_request,
TAO_TAO::Portable_Server::Servant_Upcall * servant_upcall,
skel_type& servant);
TAO_ServerRequest & server_request,
TAO_TAO::Portable_Server::Servant_Upcall * servant_upcall,
skel_type& servant);
static void <%= _op.name %>_excep_skel (
TAO_ServerRequest & server_request,
TAO_TAO::Portable_Server::Servant_Upcall * servant_upcall,
skel_type& servant);
TAO_ServerRequest & server_request,
TAO_TAO::Portable_Server::Servant_Upcall * servant_upcall,
skel_type& servant);
% end
%end
%all_attributes.each do |_att|
% unless _att.is_inherited?
static void get_<%= _att.name %>_skel (
TAO_ServerRequest & server_request,
TAO_TAO::Portable_Server::Servant_Upcall * servant_upcall,
skel_type& servant);
TAO_ServerRequest & server_request,
TAO_TAO::Portable_Server::Servant_Upcall * servant_upcall,
skel_type& servant);
static void get_<%= _att.name %>_excep_skel (
TAO_ServerRequest & server_request,
TAO_TAO::Portable_Server::Servant_Upcall * servant_upcall,
skel_type& servant);
TAO_ServerRequest & server_request,
TAO_TAO::Portable_Server::Servant_Upcall * servant_upcall,
skel_type& servant);
% unless _att.is_readonly?
static void set_<%= _att.name %>_skel (
TAO_ServerRequest & server_request,
TAO_TAO::Portable_Server::Servant_Upcall * servant_upcall,
skel_type& servant);
TAO_ServerRequest & server_request,
TAO_TAO::Portable_Server::Servant_Upcall * servant_upcall,
skel_type& servant);
static void set_<%= _att.name %>_excep_skel (
TAO_ServerRequest & server_request,
TAO_TAO::Portable_Server::Servant_Upcall * servant_upcall,
skel_type& servant);
TAO_ServerRequest & server_request,
TAO_TAO::Portable_Server::Servant_Upcall * servant_upcall,
skel_type& servant);
% end
% end
%end
Expand Down

0 comments on commit 5d24ac3

Please sign in to comment.