// $Revision: 1.7 $ //------------------------------------------------------------------------------ // // Copyright (C) 1994, 1995 Taligent, Inc. All rights reserved. // // Project: StockBrowser // File: StockTypes.h // Build/Version: 1.0.0 // // Description: This file contains a utility class, TRangeOfDays, which // specifies a period of time. TRangeOfDays is used to // retrieve stock data for certain days. Not intended to // be subclassed. // //------------------------------------------------------------------------------ #ifndef TaligentSamples_STOCKTYPES #define TaligentSamples_STOCKTYPES class TRangeOfDays; #ifndef Taligent_CLOCK #include // Included for TDays. #endif //============================================================================== // TRangeOfDays class TRangeOfDays { public: static const TRangeOfDays& kAllDays; TRangeOfDays(); TRangeOfDays(const TRangeOfDays& source); TRangeOfDays(const TDays& start, const TDays& end); ~TRangeOfDays(); TRangeOfDays& operator=(const TRangeOfDays& source); TStream& operator>>=(TStream& toStream) const; TStream& operator<<=(TStream& fromStream); const TDays& GetStart() const; const TDays& GetEnd() const; TDays GetLength() const; void SetStart(const TDays& start); void SetEnd(const TDays& end); bool Contains(const TDays& aDate) const; private: enum {kOriginalVersion}; TDays fStart; TDays fEnd; }; #endif