Constraint_Visitors.cpp File Reference

#include "orbsvcs/Trader/Constraint_Visitors.h"
#include "orbsvcs/Trader/Constraint_Nodes.h"
#include "orbsvcs/Trader/Interpreter_Utils_T.h"
#include "tao/DynamicAny/DynSequence_i.h"
#include "ace/OS_NS_string.h"

Include dependency graph for Constraint_Visitors.cpp:

Include dependency graph

Go to the source code of this file.

Functions

int TAO_Element_Equal< CORBA::Short >::operator() (TAO_DynSequence_i &dyn_any, CORBA::Short element) const
int TAO_Element_Equal< CORBA::UShort >::operator() (TAO_DynSequence_i &dyn_any, CORBA::UShort element) const
int TAO_Element_Equal< CORBA::Long >::operator() (TAO_DynSequence_i &dyn_any, CORBA::Long element) const
int TAO_Element_Equal< CORBA::ULong >::operator() (TAO_DynSequence_i &dyn_any, CORBA::ULong element) const
int TAO_Element_Equal< CORBA::Float >::operator() (TAO_DynSequence_i &dyn_any, CORBA::Float element) const
int TAO_Element_Equal< CORBA::Double >::operator() (TAO_DynSequence_i &dyn_any, CORBA::Double element) const
int TAO_Element_Equal< CORBA::Boolean >::operator() (TAO_DynSequence_i &dyn_any, CORBA::Boolean element) const


Function Documentation

int TAO_Element_Equal< CORBA::Boolean >::operator() TAO_DynSequence_i dyn_any,
CORBA::Boolean  element
const
 

Definition at line 708 of file Constraint_Visitors.cpp.

References ACE_CATCHANY, ACE_ENDTRY, ACE_ENV_SINGLE_ARG_PARAMETER, ACE_TRY_CHECK, and ACE_TRY_NEW_ENV.

00710 {
00711   int return_value = 0;
00712   ACE_TRY_NEW_ENV
00713     {
00714     CORBA::Boolean value = (CORBA::Boolean) dyn_any.get_short (ACE_ENV_SINGLE_ARG_PARAMETER);
00715       ACE_TRY_CHECK;
00716       return_value = (value == element);
00717     }
00718   ACE_CATCHANY {} ACE_ENDTRY;
00719   return return_value;
00720 }

int TAO_Element_Equal< CORBA::Double >::operator() TAO_DynSequence_i dyn_any,
CORBA::Double  element
const
 

Definition at line 692 of file Constraint_Visitors.cpp.

References ACE_CATCHANY, ACE_ENDTRY, ACE_ENV_SINGLE_ARG_PARAMETER, ACE_TRY_CHECK, and ACE_TRY_NEW_ENV.

00694 {
00695   int return_value = 0;
00696   ACE_TRY_NEW_ENV
00697     {
00698       CORBA::Double value = dyn_any.get_short (ACE_ENV_SINGLE_ARG_PARAMETER);
00699       ACE_TRY_CHECK;
00700       return_value = (value == element);
00701     }
00702   ACE_CATCHANY {} ACE_ENDTRY;
00703   return return_value;
00704 }

int TAO_Element_Equal< CORBA::Float >::operator() TAO_DynSequence_i dyn_any,
CORBA::Float  element
const
 

Definition at line 676 of file Constraint_Visitors.cpp.

References ACE_CATCHANY, ACE_ENDTRY, ACE_ENV_SINGLE_ARG_PARAMETER, ACE_TRY_CHECK, and ACE_TRY_NEW_ENV.

00678 {
00679   int return_value = 0;
00680   ACE_TRY_NEW_ENV
00681     {
00682       CORBA::Float value = dyn_any.get_float (ACE_ENV_SINGLE_ARG_PARAMETER);
00683       ACE_TRY_CHECK;
00684       return_value = (value == element);
00685     }
00686   ACE_CATCHANY {} ACE_ENDTRY;
00687   return return_value;
00688 }

int TAO_Element_Equal< CORBA::Long >::operator() TAO_DynSequence_i dyn_any,
CORBA::Long  element
const
 

Definition at line 638 of file Constraint_Visitors.cpp.

References ACE_CATCHANY, ACE_ENDTRY, ACE_ENV_SINGLE_ARG_PARAMETER, ACE_TRY_CHECK, and ACE_TRY_NEW_ENV.

00640 {
00641   int return_value = 0;
00642   ACE_TRY_NEW_ENV
00643     {
00644       CORBA::Long value = dyn_any.get_long (ACE_ENV_SINGLE_ARG_PARAMETER);
00645       ACE_TRY_CHECK;
00646       return_value = (value == element);
00647     }
00648   ACE_CATCHANY
00649     {
00650     }
00651   ACE_ENDTRY;
00652   return return_value;
00653 }

int TAO_Element_Equal< CORBA::Short >::operator() TAO_DynSequence_i dyn_any,
CORBA::Short  element
const
 

Definition at line 600 of file Constraint_Visitors.cpp.

References ACE_CATCHANY, ACE_ENDTRY, ACE_ENV_SINGLE_ARG_PARAMETER, ACE_TRY_CHECK, and ACE_TRY_NEW_ENV.

00602 {
00603   int return_value = 0;
00604   ACE_TRY_NEW_ENV
00605     {
00606       CORBA::Short value = dyn_any.get_short (ACE_ENV_SINGLE_ARG_PARAMETER);
00607       ACE_TRY_CHECK;
00608       return_value = (value == element);
00609     }
00610   ACE_CATCHANY
00611     {
00612     }
00613   ACE_ENDTRY;
00614   return return_value;
00615 }

int TAO_Element_Equal< CORBA::ULong >::operator() TAO_DynSequence_i dyn_any,
CORBA::ULong  element
const
 

Definition at line 657 of file Constraint_Visitors.cpp.

References ACE_CATCHANY, ACE_ENDTRY, ACE_ENV_SINGLE_ARG_PARAMETER, ACE_TRY_CHECK, and ACE_TRY_NEW_ENV.

00659 {
00660   int return_value = 0;
00661   ACE_TRY_NEW_ENV
00662     {
00663       CORBA::ULong value = dyn_any.get_ulong (ACE_ENV_SINGLE_ARG_PARAMETER);
00664       ACE_TRY_CHECK;
00665       return_value = (value == element);
00666     }
00667   ACE_CATCHANY
00668     {
00669     }
00670   ACE_ENDTRY;
00671   return return_value;
00672 }

int TAO_Element_Equal< CORBA::UShort >::operator() TAO_DynSequence_i dyn_any,
CORBA::UShort  element
const
 

Definition at line 619 of file Constraint_Visitors.cpp.

References ACE_CATCHANY, ACE_ENDTRY, ACE_ENV_SINGLE_ARG_PARAMETER, ACE_TRY_CHECK, and ACE_TRY_NEW_ENV.

00621 {
00622   int return_value = 0;
00623   ACE_TRY_NEW_ENV
00624     {
00625       CORBA::UShort value = dyn_any.get_ushort (ACE_ENV_SINGLE_ARG_PARAMETER);
00626       ACE_TRY_CHECK;
00627       return_value = (value == element);
00628     }
00629   ACE_CATCHANY
00630     {
00631     }
00632   ACE_ENDTRY;
00633   return return_value;
00634 }


Generated on Thu Nov 9 14:00:05 2006 for TAO_CosTrader by doxygen 1.3.6