#include <Constraint_Visitors.h>
Public Member Functions | |
int | operator() (TAO_DynSequence_i &dyn_any, CORBA::UShort element) const |
Definition at line 376 of file Constraint_Visitors.h.
int TAO_Element_Equal< CORBA::UShort >::operator() | ( | TAO_DynSequence_i & | dyn_any, | |
CORBA::UShort | element | |||
) | const |
Calls the correct method on dyn_seq to extract the element type, then uses the appropriate form of equals comparison.
Definition at line 626 of file Constraint_Visitors.cpp.
00628 { 00629 int return_value = 0; 00630 try 00631 { 00632 CORBA::UShort value = dyn_any.get_ushort (); 00633 return_value = (value == element); 00634 } 00635 catch (const CORBA::Exception&) 00636 { 00637 } 00638 return return_value; 00639 }