TAO_Element_Equal< CORBA::Boolean > Class Template Reference

#include <Constraint_Visitors.h>

List of all members.

Public Member Functions

int operator() (TAO_DynSequence_i &dyn_any, CORBA::Boolean element) const

Detailed Description

template<>
class TAO_Element_Equal< CORBA::Boolean >

Definition at line 448 of file Constraint_Visitors.h.


Member Function Documentation

int TAO_Element_Equal< CORBA::Boolean >::operator() ( TAO_DynSequence_i &  dyn_any,
CORBA::Boolean  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 741 of file Constraint_Visitors.cpp.

00743 {
00744   int return_value = 0;
00745   try
00746     {
00747     CORBA::Boolean value = (CORBA::Boolean) dyn_any.get_short ();
00748       return_value = (value == element);
00749     }
00750   catch (const CORBA::Exception&){}
00751   return return_value;
00752 }


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Sun Nov 22 23:55:05 2009 for TAO_CosTrader by  doxygen 1.6.1