home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************************
- *
- * Module Name: RPM.H
- *
- * OS/2 Work Place Shell Sample Program
- *
- * Copyright (C) 1992 IBM Corporation
- *
- * DISCLAIMER OF WARRANTIES. The following [enclosed] code is
- * sample code created by IBM Corporation. This sample code is not
- * part of any standard or IBM product and is provided to you solely
- * for the purpose of assisting you in the development of your
- * applications. The code is provided "AS IS", without
- * warranty of any kind. IBM shall not be liable for any damages
- * arising out of your use of the sample code, even if they have been
- * advised of the possibility of such damages. *
- *
- * Description:
- *
- * This file contains the declaration of class RPM. RPM is a C++ class
- * whose client is Carpp which is a SOM class. This is one example of
- * the use of C++ constructs in the implementation of a SOM class.
- *
- * RPM is the abstraction of a real car's RPM indicator. It contains an
- * RPM magnitude which can be set and queried using public member
- * functions.
- *
- ******************************************************************************/
- #include "carpp.xih"
-
- class RPM
- {
- ULONG magnitude;
-
- public:
- RPM(VOID);
- ULONG Query(VOID);
- VOID Set(ULONG ulRPM);
- VOID SetToDefault(VOID);
- VOID SaveState(Carpp *clientObject, PSZ CarClassTitle);
- VOID RestoreState(Carpp *clientObject, PSZ CarClassTitle);
- };
-