home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / ivbdtype.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  7.2 KB  |  151 lines

  1. #ifndef _IVBDTYPE_
  2.   #define _IVBDTYPE_
  3. /*******************************************************************************
  4. * FILE NAME: ivbdtype.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the class(es):                                              *
  8. *    IVBDataTypePart - IBM VB sample base data type part.                      *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   IBM(R) VisualAge(TM) for C++                                               *
  12. *   (C) Copyright International Business Machines Corporation 1991, 1996       *
  13. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  14. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  15. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  16. *                                                                              *
  17. *   This program will not run in DOS mode.                                     *
  18. *                                                                              *
  19. * DISCLAIMER OF WARRANTIES:                                                    *
  20. *   The following [enclosed] code is sample code created by IBM                *
  21. *   Corporation.  This sample code is not part of any standard IBM product     *
  22. *   and is provided to you solely for the purpose of assisting you in the      *
  23. *   development of your applications.  The code is provided "AS IS",           *
  24. *   without warranty of any kind.  IBM shall not be liable for any damages     *
  25. *   arising out of your use of the sample code, even if they have been         *
  26. *   advised of the possibility of such damages.                                *
  27. *******************************************************************************/
  28. #ifndef _IVBDEFS__
  29. #include <ivbdefs.h>
  30. #endif
  31.  
  32. #ifndef _ISTDNTFY_
  33.   #include <istdntfy.hpp>
  34. #endif
  35.  
  36. /*-------------------------- Pragma Library Support --------------------------*/
  37. #ifndef __NO_DEFAULT_LIBS__
  38.   #ifdef __OS2__
  39.     #ifdef __IMPORTLIB__
  40.        #pragma library("CPPOV03I.LIB")
  41.     #else
  42.        #pragma library("CPPOV03.LIB")
  43.     #endif
  44.   #endif
  45.   #ifdef __WINDOWS__
  46.     #ifdef __IMPORTLIB__
  47.        #pragma library("CPPWV03I.LIB")
  48.     #else
  49.        #pragma library("CPPWV03.LIB")
  50.     #endif
  51.   #endif
  52. #endif
  53.  
  54.  
  55. /*----------------------------------------------------------------------------*/
  56. /* Align classes on four byte boundary.                                       */
  57. /*----------------------------------------------------------------------------*/
  58. #pragma pack(4)
  59.  
  60. class IVBDataTypePart : public IStandardNotifier
  61. {
  62. typedef IStandardNotifier
  63.   Inherited;
  64. public:
  65. /*--------------------------- PUBLIC -----------------------------------------*/
  66.  
  67. /*------------------------- Constructors/Destructor ----------------------------
  68. ------------------------------------------------------------------------------*/
  69.   IVBDataTypePart ();
  70. virtual
  71.   ~IVBDataTypePart ();
  72.  
  73.   IVBDataTypePart& operator= (const IVBDataTypePart& aIVBDataTypePart);
  74.  
  75. Boolean
  76.   operator == (const IVBDataTypePart& aValue) const,
  77.   operator != (const IVBDataTypePart& aValue) const,
  78.   operator == (const IVBDataTypePart* aValue) const,
  79.   operator != (const IVBDataTypePart* aValue) const,
  80.   operator < (const IVBDataTypePart& aValue) const,
  81.   operator < (const IVBDataTypePart* aValue) const,
  82.   operator < (IVBDataTypePart* const& aValue) const;
  83.  
  84. /*----------------------- Notification Event Descriptions ----------------------
  85. | List of attribute and event notification identifiers:                        |
  86. |                                                                              |
  87. |  valueId             - Notification event for value attribute.               |
  88. |  defaultValueId      - Notification event for defaultValue attribute.        |
  89. |  valueEqualDefaultId - Notification event for valueEqualDefault.             |
  90. |  valueNotEqualDefaultId - Notification event for valueNotEqualDefault.       |
  91. |  lowLimitId          - Notification event for lowLimit attribute.            |
  92. |  highLimitId         - Notification event for highLimit attribute.           |
  93. |  valueEqualLowLimitId - Notification event for valueEqualLowLimit.           |
  94. |  valueEqualHighLimitId - Notification event for valueEqualHighLimit.         |
  95. |  valueBelowLowLimitId - Notification event for valueBelowLowLimit.           |
  96. |  valueAboveHighLimitId - Notification event for valueAboveHighLimit.         |
  97. |  valueOutsideLimitsId - Notification event for valueOutsideLimits.           |
  98. |  valueWithinLimitsId - Notification event for valueWithinLimits.             |
  99. |  valueNotZeroId      - Notification event for valueNotZero.                  |
  100. |  valueZeroId         - Notification event for valueZero.                     |
  101. |  valuePositiveId     - Notification event for valuePositive.                 |
  102. |  valueNegativeId     - Notification event for valueNegative.                 |
  103. |  textId              - Notification event for text attribute.                |
  104. |  defaultTextId       - Notification event for defaultText attribute.         |
  105. |  textEqualDefaultId  - Notification event for textEqualDefault.              |
  106. |  textNotEqualDefaultId - Notification event for textNotEqualDefault.         |
  107. |  textLengthId        - Notification event for textLength attribute.          |
  108. |  lowerCaseId         - Notification event for lowerCase.                     |
  109. |  upperCaseId         - Notification event for upperCase.                     |
  110. |  digitsId            - Notification event for digits.                        |
  111. |  inputStringNotValidId - Notification event for string not valid.            |
  112. |  inputStringIsValidId - Notification event for string is valid.              |
  113. ------------------------------------------------------------------------------*/
  114.  
  115. static INotificationId const
  116.   IVB_IMPORT valueId,
  117.   IVB_IMPORT defaultValueId,
  118.   IVB_IMPORT valueEqualDefaultId,
  119.   IVB_IMPORT valueNotEqualDefaultId,
  120.   IVB_IMPORT lowLimitId,
  121.   IVB_IMPORT highLimitId,
  122.   IVB_IMPORT valueEqualLowLimitId,
  123.   IVB_IMPORT valueEqualHighLimitId,
  124.   IVB_IMPORT valueBelowLowLimitId,
  125.   IVB_IMPORT valueAboveHighLimitId,
  126.   IVB_IMPORT valueOutsideLimitsId,
  127.   IVB_IMPORT valueWithinLimitsId,
  128.   IVB_IMPORT valueNotZeroId,
  129.   IVB_IMPORT valueZeroId,
  130.   IVB_IMPORT valuePositiveId,
  131.   IVB_IMPORT valueNegativeId,
  132.   IVB_IMPORT textId,
  133.   IVB_IMPORT defaultTextId,
  134.   IVB_IMPORT textEqualDefaultId,
  135.   IVB_IMPORT textNotEqualDefaultId,
  136.   IVB_IMPORT textLengthId,
  137.   IVB_IMPORT lowerCaseId,
  138.   IVB_IMPORT upperCaseId,
  139.   IVB_IMPORT digitsId,
  140.   IVB_IMPORT inputStringNotValidId,
  141.   IVB_IMPORT inputStringIsValidId;
  142.  
  143. };
  144.  
  145. /*----------------------------------------------------------------------------*/
  146. /* Resume compiler default packing.                                           */
  147. /*----------------------------------------------------------------------------*/
  148. #pragma pack()
  149.  
  150. #endif
  151.