// $Revision: 1.11 $ //------------------------------------------------------------------------------ // // Copyright (C) 1994, 1995 Taligent, Inc. All rights reserved. // // Project: StockBrowser // File: LocalStockData.h // Build/Version: 1.0.0 // // Description: TLocalStockData stores a collection of TStockDay objects. // //------------------------------------------------------------------------------ #ifndef TaligentSamples_LOCALSTOCKDATA #define TaligentSamples_LOCALSTOCKDATA class TLocalStockData; #ifndef TaligentSamples_STOCKDATA #include "StockData.h" #endif //============================================================================== // TLocalStockData class TLocalStockData : public TStockData { public: TaligentTypeExtensionDeclarationsMacro(TLocalStockData) public: TLocalStockData(); TLocalStockData(const TLocalStockData& source); TLocalStockData(const TStandardText& name, TCollectionOf* adoptedData = NIL); virtual ~TLocalStockData(); TLocalStockData& operator=(const TLocalStockData& source); virtual TStream& operator>>=(TStream& toStream) const; virtual TStream& operator<<=(TStream& fromStream); virtual bool operator==(const TStockData& other) const; virtual TLocalStockData& operator=(const TStockData& source); virtual void AdoptData(TCollectionOf* dataToAdopt); virtual TCollectionOf* OrphanData(); //....................................................................... // TStockData override virtual bool CopyData(TCollectionOf& fillWithStockData, const TRangeOfDays& range = TRangeOfDays::kAllDays) const; private: void PrivateDelete(); void PrivateCopy(const TLocalStockData& source); enum {kOriginalVersion}; TCollectionOf* fData; }; #endif