// $Revision: 1.7 $ //------------------------------------------------------------------------------ // // Copyright (C) 1994, 1995 Taligent, Inc. All rights reserved. // // Project: StockBrowser // File: GraphRange.h // Build/Version: 1.0.0 // // Description: TGraphRange defines a range along the axis of a graph. // Not intended to be subclassed. // //------------------------------------------------------------------------------ #ifndef TaligentSamples_GRAPHRANGE #define TaligentSamples_GRAPHRANGE class TGraphRange; #ifndef Taligent_CPRIMITIVETYPES #include #endif class TStream; typedef double GraphValue; //============================================================================== // TGraphRange class TGraphRange { public: TGraphRange(); TGraphRange(GraphValue min, GraphValue max); TGraphRange(const TGraphRange& source); ~TGraphRange(); TGraphRange& operator=(const TGraphRange& source); TStream& operator>>=(TStream& toStream) const; TStream& operator<<=(TStream& fromStream); bool operator==(const TGraphRange& other) const; GraphValue GetMin() const; GraphValue GetMax() const; void SetMinAndMax(GraphValue min, GraphValue max); GraphValue GetLength() const; bool Contains(GraphValue value) const; bool IsEmpty() const; // returns true if min >= max private: enum {kOriginalVersion}; GraphValue fMin; GraphValue fMax; }; #endif