Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
741 B

  1. /*++
  2. Copyright (C) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. stepper.h
  5. Abstract:
  6. <abstract>
  7. --*/
  8. #ifndef _STEPPER_H_
  9. #define _STEPPER_H_
  10. class CStepper
  11. {
  12. private:
  13. INT m_iStepCnt;
  14. INT m_iRemainder;
  15. INT m_iStepSize;
  16. INT m_iState;
  17. INT m_iStepNum;
  18. INT m_iPos;
  19. public:
  20. CStepper(void);
  21. void Init( INT iLength, INT nSteps ) ;
  22. void Reset ( void ) ;
  23. INT NextPosition (void) ;
  24. INT PrevPosition (void) ;
  25. INT StepTo (INT nSteps) ;
  26. INT StepNum (void) { return m_iStepNum; }
  27. INT PrevStepNum (INT iPosition);
  28. INT Position (void) { return m_iPos; }
  29. INT StepCount (void) { return m_iStepCnt; }
  30. };
  31. #endif