// $Revision: 1.6 $ // Copyright (C) 1995 Taligent, Inc. All rights reserved. #if 0 --------------------------------------------------------------------------- > Class: | TRemoteStockData > Taxonomy Category: | Documented Samples | Stock Browser:Stock Server > Interface Category: | Sample. > Inherits From: | TStockData > Inherited By: | None. > Purpose: | A class derived from TStockData that uses a TStockCaller object to retrieve stock data, rather than keep a local copy. > Instantiation: | Allocate on the heap or the stack. > Deriving Classes: | No special instructions. > Concurrency: | _Not_ multithread safe. > Resource Use: | No special requirements. > Other Considerations: | None. --------------------------------------------------------------------------- #endif #if 0 --------------------------------------------------------------------------- > Member Function: TRemoteStockData::TRemoteStockData ; | 1. TRemoteStockData () | 2. TRemoteStockData (const TRemoteStockData & source) | 3. TRemoteStockData (const TStandardText & name, const TStockCaller & callerToCopy) > Interface Category: | Sample. > Purpose: | 1. Default constructor. | 2. Copy constructor. | 3. Constructor. > Calling Context: | 1. Called by derived classes and to construct an object. | 2. Called to copy an object. | 3. Called to construct a valid object. > Parameters: = 1. Takes no parameters. = 2. const TRemoteStockData & source -The object to copy. = 3. const TStandardText & name -The name of the stock. = 3. const TStockCaller & callerToCopy -The caller object to use to get to the actual stock data. > Return Value: | None. > Exceptions: | Throws no exceptions, passes all exceptions through. > Concurrency: | _Not_ multithread safe. > Other Considerations: | None. --------------------------------------------------------------------------- #endif #if 0 --------------------------------------------------------------------------- > Member Function: TRemoteStockData::~ TRemoteStockData ; | virtual ~ TRemoteStockData () > Interface Category: | Sample. > Purpose: | Destructor. > Calling Context: | Called to destroy an object. > Parameters: = Takes no parameters. > Return Value: | None. > Exceptions: | Throws no exceptions, passes all exceptions through. > Concurrency: | _Not_ multithread safe. > Other Considerations: | None. --------------------------------------------------------------------------- #endif #if 0 --------------------------------------------------------------------------- > Member Function: TRemoteStockData::operator =; | TRemoteStockData & operator =(const TRemoteStockData & source) > Interface Category: | Sample. > Purpose: | Assignment operator. > Calling Context: | Called when an object is assigned to another compatible object. > Parameters: = const TRemoteStockData & source -The object to copy. > Return Value: | A non-const reference to the left-hand side object. > Exceptions: | Throws no exceptions, passes all exceptions through. > Concurrency: | _Not_ multithread safe. > Other Considerations: | None. --------------------------------------------------------------------------- #endif #if 0 --------------------------------------------------------------------------- > Member Function: TRemoteStockData::operator >>=; | virtual TStream & operator >>=(TStream & toStream) const > Interface Category: | Sample. > Purpose: | Stream-out operator. > Calling Context: | Called to stream out data. > Parameters: = TStream & toStream -The stream the object streams itself out to. > Return Value: | Returns a reference to the stream the object streams itself out to. > Exceptions: | Throws no exceptions, passes all exceptions through. > Concurrency: | _Not_ multithread safe. > Other Considerations: | None. --------------------------------------------------------------------------- #endif #if 0 --------------------------------------------------------------------------- > Member Function: TRemoteStockData::operator <<= ; | virtual TStream & operator <<= (TStream & fromStream) > Interface Category: | Sample. > Purpose: | Stream-in operator. > Calling Context: | Called to stream in data. > Parameters: = TStream & fromStream -The stream the object streams itself in from. > Return Value: | Returns a reference to the stream the object streams itself in from. > Exceptions: | Throws no exceptions, passes all exceptions through. > Concurrency: | _Not_ multithread safe. > Other Considerations: | None. --------------------------------------------------------------------------- #endif #if 0 --------------------------------------------------------------------------- > Member Function: TRemoteStockData::CopyData ; | virtual bool CopyData (TCollectionOf < TStockDay > & fill, const TRangeOfDays & range =TRangeOfDays :: kAllDays) const > Interface Category: | Sample. > Purpose: | Copies and returns the stock's data. Uses the caller to get to the actual stock data. > Calling Context: | Call this function directly. > Parameters: = TCollectionOf < TStockDay > & fill -The collection to fill with stock data. = const TRangeOfDays & range =TRangeOfDays :: kAllDays -The range of time for which to copy stock data. > Return Value: | Returns true if the function executed successfully and the given stock was a valid one, false if otherwise. > Exceptions: | Throws no exceptions, passes all exceptions through. > Concurrency: | _Not_ multithread safe. > Other Considerations: | None. --------------------------------------------------------------------------- #endif