// $Revision: 1.11 $ //------------------------------------------------------------------------------ // // Copyright (C) 1994, 1995 Taligent, Inc. All rights reserved. // // Project: StockBrowser // File: RemoteStockData.h // Build/Version: 1.0.0 // // Description: TRemoteStockData is a "surrogate" object which knows // how to contact the Stock Server when data is requested // (via CopyData). // //------------------------------------------------------------------------------ #ifndef TaligentSamples_REMOTESTOCKDATA #define TaligentSamples_REMOTESTOCKDATA class TRemoteStockData; #ifndef TaligentSamples_STOCKDATA #include #endif class TStockCaller; //============================================================================== // TRemoteStockData class TRemoteStockData : public TStockData { public: TaligentTypeExtensionDeclarationsMacro(TRemoteStockData) public: TRemoteStockData(const TRemoteStockData& source); TRemoteStockData(const TStandardText& name, const TStockCaller& callerToCopy); virtual ~TRemoteStockData(); TRemoteStockData& operator=(const TRemoteStockData& source); virtual TStream& operator>>=(TStream& toStream) const; virtual TStream& operator<<=(TStream& fromStream); virtual bool CopyData(TCollectionOf& fill, const TRangeOfDays& range = TRangeOfDays::kAllDays) const; protected: TRemoteStockData(); private: enum {kOriginalVersion}; TDeleterFor fCaller; }; #endif