#include <Constraint_Visitors.h>
Public Member Functions | |
int | operator() (TAO_DynSequence_i &dyn_any, CORBA::Long element) const |
Definition at line 386 of file Constraint_Visitors.h.
int TAO_Element_Equal< CORBA::Long >::operator() | ( | TAO_DynSequence_i & | dyn_any, | |
CORBA::Long | 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 643 of file Constraint_Visitors.cpp.
00645 { 00646 int return_value = 0; 00647 try 00648 { 00649 CORBA::Long value = dyn_any.get_long (); 00650 return_value = (value == element); 00651 } 00652 catch (const CORBA::Exception&) 00653 { 00654 } 00655 return return_value; 00656 }