Trader.cpp File Reference

#include "orbsvcs/Trader/Trader.h"
#include "orbsvcs/Trader/Offer_Iterators_T.h"
#include "ace/Thread_Mutex.h"
#include "ace/RW_Thread_Mutex.h"
#include "ace/OS_NS_strings.h"
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_ctype.h"
#include "orbsvcs/Trader/Trader_Interfaces.h"
#include "ace/Arg_Shifter.h"
#include "orbsvcs/Trader/Trader_T.h"

Include dependency graph for Trader.cpp:

Go to the source code of this file.

Functions

bool operator< (const CosTradingRepos::ServiceTypeRepository::IncarnationNumber &l, const CosTradingRepos::ServiceTypeRepository::IncarnationNumber &r)
bool operator> (const CosTradingRepos::ServiceTypeRepository::IncarnationNumber &l, const CosTradingRepos::ServiceTypeRepository::IncarnationNumber &r)
bool operator== (const CosTrading::Admin::OctetSeq &left, const CosTrading::Admin::OctetSeq &right)


Function Documentation

bool operator< ( const CosTradingRepos::ServiceTypeRepository::IncarnationNumber l,
const CosTradingRepos::ServiceTypeRepository::IncarnationNumber r 
)

Definition at line 592 of file Trader.cpp.

References CosTradingRepos::ServiceTypeRepository::IncarnationNumber::high, and CosTradingRepos::ServiceTypeRepository::IncarnationNumber::low.

00594 {
00595   if (l.high < r.high)
00596     return true;
00597   else if (l.high == r.high)
00598     return (l.low < r.low);
00599   else
00600     return false;
00601 }

bool operator== ( const CosTrading::Admin::OctetSeq left,
const CosTrading::Admin::OctetSeq right 
)

Definition at line 611 of file Trader.cpp.

00613 {
00614   bool return_value = false;
00615 
00616   const CORBA::ULong left_length = left.length ();
00617   const CORBA::ULong right_length = right.length ();
00618 
00619   if (left_length == right_length)
00620     {
00621       return_value = true;
00622 
00623       for (CORBA::ULong i = 0; i < left_length; ++i)
00624         {
00625           if (left[i] != right[i])
00626             {
00627               return_value = false;
00628               break;
00629             }
00630         }
00631     }
00632 
00633   return return_value;
00634 }

bool operator> ( const CosTradingRepos::ServiceTypeRepository::IncarnationNumber l,
const CosTradingRepos::ServiceTypeRepository::IncarnationNumber r 
)

Definition at line 604 of file Trader.cpp.

00606 {
00607   return (r < l);
00608 }


Generated on Tue Feb 2 17:49:29 2010 for TAO_CosTrader by  doxygen 1.4.7