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:

Include dependency graph

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 593 of file Trader.cpp.

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

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

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

Definition at line 612 of file Trader.cpp.

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

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

Definition at line 605 of file Trader.cpp.

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


Generated on Thu Nov 9 14:00:23 2006 for TAO_CosTrader by doxygen 1.3.6