TAO_Element_Equal< const char * > Class Template Reference

#include <Constraint_Visitors.h>

List of all members.

Public Member Functions

int operator() (TAO_DynSequence_i &dyn_any, const char *element) const


Detailed Description

template<>
class TAO_Element_Equal< const char * >

Definition at line 458 of file Constraint_Visitors.h.


Member Function Documentation

int TAO_Element_Equal< const char * >::operator() ( TAO_DynSequence_i &  dyn_any,
const char *  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 756 of file Constraint_Visitors.cpp.

References ACE_OS::strcmp().

00758 {
00759   int return_value = 0;
00760   try
00761     {
00762       const char* value = dyn_any.get_string ();
00763       return_value = (ACE_OS::strcmp (value, element) == 0);
00764     }
00765   catch (const CORBA::Exception&){}
00766   return return_value;
00767 }


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:49:32 2010 for TAO_CosTrader by  doxygen 1.4.7