#include <Constraint_Visitors.h>
Public Member Functions | |
int | operator() (TAO_DynSequence_i &dyn_any, CORBA::Short element) const |
Definition at line 366 of file Constraint_Visitors.h.
int TAO_Element_Equal< CORBA::Short >::operator() | ( | TAO_DynSequence_i & | dyn_any, | |
CORBA::Short | 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 609 of file Constraint_Visitors.cpp.
00611 { 00612 int return_value = 0; 00613 try 00614 { 00615 CORBA::Short value = dyn_any.get_short (); 00616 return_value = (value == element); 00617 } 00618 catch (const CORBA::Exception&) 00619 { 00620 } 00621 return return_value; 00622 }