summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_operation_strategy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_operation_strategy.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_operation_strategy.cpp158
1 files changed, 64 insertions, 94 deletions
diff --git a/TAO/TAO_IDL/be/be_operation_strategy.cpp b/TAO/TAO_IDL/be/be_operation_strategy.cpp
index a62a342eab4..a50793338b6 100644
--- a/TAO/TAO_IDL/be/be_operation_strategy.cpp
+++ b/TAO/TAO_IDL/be/be_operation_strategy.cpp
@@ -31,33 +31,32 @@ be_operation_strategy::be_operation_strategy (be_operation *node,
{
}
-be_operation_strategy::~be_operation_strategy (void)
+be_operation_strategy::~be_operation_strategy ()
{
}
int
-be_operation_strategy::strategy_type (void)
+be_operation_strategy::strategy_type ()
{
return strategy_type_;
}
int
-be_operation_strategy::has_extra_code_generation (
- TAO_CodeGen::CG_STATE /* current_state */
- )
+be_operation_strategy::has_extra_code_generation (TAO_CodeGen::CG_STATE current_state)
{
+ ACE_UNUSED_ARG (current_state);
return 0;
}
be_operation *
-be_operation_strategy::marshaling (void)
+be_operation_strategy::marshaling ()
{
return 0;
}
be_operation *
-be_operation_strategy::arguments (void)
+be_operation_strategy::arguments ()
{
return 0;
}
@@ -65,25 +64,22 @@ be_operation_strategy::arguments (void)
// ****************************************************************
// AMI sendc_ operation strategy
-be_operation_default_strategy::be_operation_default_strategy (
- be_operation *node
- )
+be_operation_default_strategy::be_operation_default_strategy (be_operation *node)
: be_operation_strategy (node,
DEFAULT)
{
}
-be_operation_default_strategy::~be_operation_default_strategy (void)
+be_operation_default_strategy::~be_operation_default_strategy ()
{
}
TAO_CodeGen::CG_STATE
-be_operation_default_strategy::next_state (
- TAO_CodeGen::CG_STATE current_state,
- int /* is_extra_state */
- )
+be_operation_default_strategy::next_state (TAO_CodeGen::CG_STATE current_state,
+ int is_extra_state)
{
+ ACE_UNUSED_ARG (is_extra_state);
return current_state;
}
@@ -92,11 +88,9 @@ be_operation_default_strategy::next_state (
// ****************************************************************
// AMI sendc_ operation strategy
-be_operation_ami_sendc_strategy::be_operation_ami_sendc_strategy (
- be_operation *node,
- be_operation *marshaling,
- be_operation *arguments
- )
+be_operation_ami_sendc_strategy::be_operation_ami_sendc_strategy (be_operation *node,
+ be_operation *marshaling,
+ be_operation *arguments)
: be_operation_strategy (node,
AMI_SENDC),
marshaling_ (marshaling),
@@ -104,61 +98,53 @@ be_operation_ami_sendc_strategy::be_operation_ami_sendc_strategy (
{
}
-be_operation_ami_sendc_strategy::~be_operation_ami_sendc_strategy (void)
+be_operation_ami_sendc_strategy::~be_operation_ami_sendc_strategy ()
{
}
TAO_CodeGen::CG_STATE
-be_operation_ami_sendc_strategy::next_state (
- TAO_CodeGen::CG_STATE current_state,
- int is_extra_state
- )
+be_operation_ami_sendc_strategy::next_state (TAO_CodeGen::CG_STATE current_state,
+ int is_extra_state)
{
if (is_extra_state)
{
switch (current_state)
- {
- case TAO_CodeGen::TAO_OPERATION_CH:
- return TAO_CodeGen::TAO_AMI_SENDC_OPERATION_CH;
- case TAO_CodeGen::TAO_OPERATION_CS:
- return TAO_CodeGen::TAO_AMI_SENDC_OPERATION_CS;
- default:
- return current_state;
- }
+ {
+ case TAO_CodeGen::TAO_OPERATION_CH:
+ return TAO_CodeGen::TAO_AMI_SENDC_OPERATION_CH;
+ case TAO_CodeGen::TAO_OPERATION_CS:
+ return TAO_CodeGen::TAO_AMI_SENDC_OPERATION_CS;
+ default:
+ return current_state;
+ }
}
- else
+ else // !is_extra_state
{
return current_state;
}
}
int
-be_operation_ami_sendc_strategy::has_extra_code_generation (
- TAO_CodeGen::CG_STATE current_state
- )
+be_operation_ami_sendc_strategy::has_extra_code_generation (TAO_CodeGen::CG_STATE current_state)
{
- if (current_state == TAO_CodeGen::TAO_OPERATION_CH
- || current_state == TAO_CodeGen::TAO_OPERATION_CS)
- {
- return 1;
- }
- else
- {
- return 0;
- }
+ if (current_state == TAO_CodeGen::TAO_OPERATION_CH
+ || current_state == TAO_CodeGen::TAO_OPERATION_CS)
+ return 1;
+ else
+ return 0;
}
be_operation*
-be_operation_ami_sendc_strategy::marshaling (void)
+be_operation_ami_sendc_strategy::marshaling ()
{
return marshaling_;
}
be_operation*
-be_operation_ami_sendc_strategy::arguments (void)
+be_operation_ami_sendc_strategy::arguments ()
{
return arguments_;
}
@@ -166,79 +152,69 @@ be_operation_ami_sendc_strategy::arguments (void)
// ****************************************************************
// AMI ExceptionHolder raise_ operation strategy
-be_operation_ami_exception_holder_raise_strategy
-::be_operation_ami_exception_holder_raise_strategy (be_operation *node)
+be_operation_ami_exception_holder_raise_strategy::be_operation_ami_exception_holder_raise_strategy (be_operation *node)
: be_operation_strategy (node,
AMI_EXCEPTION_HOLDER_RAISE)
{
}
-be_operation_ami_exception_holder_raise_strategy
-::~be_operation_ami_exception_holder_raise_strategy (void)
+be_operation_ami_exception_holder_raise_strategy::~be_operation_ami_exception_holder_raise_strategy ()
{
}
TAO_CodeGen::CG_STATE
-be_operation_ami_exception_holder_raise_strategy::next_state (
- TAO_CodeGen::CG_STATE current_state,
- int is_extra_state
- )
+be_operation_ami_exception_holder_raise_strategy::next_state (TAO_CodeGen::CG_STATE current_state,
+ int is_extra_state)
{
if (!is_extra_state)
{
switch (current_state)
- {
- case TAO_CodeGen::TAO_OPERATION_CS:
- return TAO_CodeGen::TAO_AMI_EXCEPTION_HOLDER_RAISE_OPERATION_CS;
- default:
- return current_state;
- }
+ {
+ case TAO_CodeGen::TAO_OPERATION_CS:
+ return TAO_CodeGen::TAO_AMI_EXCEPTION_HOLDER_RAISE_OPERATION_CS;
+ default:
+ return current_state;
+ }
}
else
- {
- return current_state;
- }
+ return current_state;
}
// ****************************************************************
// AMI Reply Handler reply stub operation strategy
-be_operation_ami_handler_reply_stub_strategy
-::be_operation_ami_handler_reply_stub_strategy (be_operation *node)
+be_operation_ami_handler_reply_stub_strategy::be_operation_ami_handler_reply_stub_strategy (be_operation *node)
: be_operation_strategy (node,
AMI_EXCEPTION_HOLDER_RAISE)
{
}
-be_operation_ami_handler_reply_stub_strategy
-::~be_operation_ami_handler_reply_stub_strategy (void)
+be_operation_ami_handler_reply_stub_strategy::~be_operation_ami_handler_reply_stub_strategy ()
{
}
TAO_CodeGen::CG_STATE
-be_operation_ami_handler_reply_stub_strategy::next_state (
- TAO_CodeGen::CG_STATE current_state,
- int is_extra_state
- )
+be_operation_ami_handler_reply_stub_strategy::next_state (TAO_CodeGen::CG_STATE current_state,
+ int is_extra_state)
{
if (is_extra_state)
{
switch (current_state)
- {
- case TAO_CodeGen::TAO_OPERATION_CH:
- return TAO_CodeGen::TAO_AMI_HANDLER_REPLY_STUB_OPERATION_CH;
+ {
+ case TAO_CodeGen::TAO_OPERATION_CH:
+ return TAO_CodeGen::TAO_AMI_HANDLER_REPLY_STUB_OPERATION_CH;
- case TAO_CodeGen::TAO_OPERATION_CS:
- return TAO_CodeGen::TAO_AMI_HANDLER_REPLY_STUB_OPERATION_CS;
+ case TAO_CodeGen::TAO_OPERATION_CS:
+ return TAO_CodeGen::TAO_AMI_HANDLER_REPLY_STUB_OPERATION_CS;
- default:
- return current_state;
- }
+ default:
+ return current_state;
+ }
}
- else
+ else // !is_extra_state
{
return current_state;
}
@@ -246,18 +222,12 @@ be_operation_ami_handler_reply_stub_strategy::next_state (
int
-be_operation_ami_handler_reply_stub_strategy::has_extra_code_generation (
- TAO_CodeGen::CG_STATE current_state
- )
+be_operation_ami_handler_reply_stub_strategy::has_extra_code_generation (TAO_CodeGen::CG_STATE current_state)
{
- if (current_state == TAO_CodeGen::TAO_OPERATION_CH
- || current_state == TAO_CodeGen::TAO_OPERATION_CS)
- {
- return 1;
- }
- else
- {
- return 0;
- }
+ if (current_state == TAO_CodeGen::TAO_OPERATION_CH
+ || current_state == TAO_CodeGen::TAO_OPERATION_CS)
+ return 1;
+ else
+ return 0;
}