// $Revision: 1.4 $ // Copyright (C) 1994-1995 Taligent, Inc. All rights reserved. #ifndef TaligentSamples_RPNCALC #define TaligentSamples_RPNCALC #ifndef Taligent_COREPRIMITIVECLASSES #include #endif #ifndef Taligent_COLLECTIONS #include // for TInvalidVersionError #endif //---- TRPNCalc ----------------------------------------------------------- class TRPNCalc { public: TaligentTypeExtensionDeclarationsMacro(TRPNCalc) public: TRPNCalc(); TRPNCalc(const TRPNCalc& source); virtual ~TRPNCalc(); TRPNCalc& operator=(const TRPNCalc& source); virtual TStream& operator>>=(TStream& toStream) const; virtual TStream& operator<<=(TStream& fromStream); virtual long GetXReg() const; virtual long GetYReg() const; virtual void SetXReg(long num); virtual void SetYReg(long num); private: enum {kOriginalVersion}; long fXReg; long fYReg; }; #endif