Trader.h File Reference

#include "orbsvcs/Trader/Interpreter_Utils.h"
#include "ace/Containers.h"
#include "orbsvcs/CosTradingS.h"
#include "orbsvcs/CosTradingReposS.h"
#include "orbsvcs/CosTradingDynamicS.h"
#include "orbsvcs/Trader/trading_serv_export.h"

Include dependency graph for Trader.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TAO_Trader_Factory
 Uses command line arguments to construct a trader instance with the correct interface support, locking, and policy settings. More...
class  TAO_Lockable
class  TAO_Support_Attributes_i
 This class stores, allows access to and modification of trader's support attributes. More...
class  TAO_Link_Attributes_i
 This class stores, allows access to and modification of trader's link attributes. More...
class  TAO_Import_Attributes_i
 This class stores, allows access to and modification of trader's import attributes. More...
class  TAO_Trading_Components_i
 Set/get methods for references to various interfaces of the trader. More...
class  TAO_Trader_Base
 TAO_Trader inherits from this "helper" class. The sole purpose of this class is to factor some of TAO_Trader's data members out, so that they would not have to be templatized and be be aware of the type of lock they use. More...

Typedefs

typedef ACE_Hash_Map_Manager_Ex<
CORBA::ULong, CosTrading::Offer *,
ACE_Hash< CORBA::ULong >,
ACE_Equal_To< CORBA::ULong >,
ACE_Null_Mutex
TAO_Offer_Map
typedef ACE_Unbounded_Set<
CORBA::String_var
TAO_String_Set
typedef ACE_Unbounded_Queue<
char * > 
TAO_String_Queue

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)


Detailed Description

Id
Trader.h 80556 2008-02-03 19:49:32Z johnnyw

Author:
Marina Spivak <marina@cs.wustl.edu>

Seth Widoff <sbw1@cs.wustl.edu>

Irfan Pyarali <irfan@cs.wustl.edu>

Definition in file Trader.h.


Typedef Documentation

typedef ACE_Hash_Map_Manager_Ex<CORBA::ULong, CosTrading::Offer*, ACE_Hash<CORBA::ULong>, ACE_Equal_To<CORBA::ULong>, ACE_Null_Mutex> TAO_Offer_Map

Definition at line 499 of file Trader.h.

typedef ACE_Unbounded_Queue<char*> TAO_String_Queue

Definition at line 502 of file Trader.h.

typedef ACE_Unbounded_Set<CORBA::String_var> TAO_String_Set

Definition at line 501 of file Trader.h.


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