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

  1. #ifndef _IVBLAND_
  2.   #define _IVBLAND_
  3. /*******************************************************************************
  4. * FILE NAME: ivbland.hpp                                                       *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the class(es):                                              *
  8. *    IVBLogicalAndPart - VB Logical And 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 _IVBDTYPE_
  33.   #include <ivbdtype.hpp>
  34. #endif
  35.  
  36. #ifndef _ISTRING_
  37.   #include <istring.hpp>
  38. #endif
  39.  
  40. /*-------------------------- Pragma Library Support --------------------------*/
  41. #ifndef __NO_DEFAULT_LIBS__
  42.   #ifdef __OS2__
  43.     #ifdef __IMPORTLIB__
  44.        #pragma library("CPPOV03I.LIB")
  45.     #else
  46.        #pragma library("CPPOV03.LIB")
  47.     #endif
  48.   #endif
  49.   #ifdef __WINDOWS__
  50.     #ifdef __IMPORTLIB__
  51.        #pragma library("CPPWV03I.LIB")
  52.     #else
  53.        #pragma library("CPPWV03.LIB")
  54.     #endif
  55.   #endif
  56. #endif
  57.  
  58. /*----------------------------------------------------------------------------*/
  59. /* Align classes on four byte boundary.                                       */
  60. /*----------------------------------------------------------------------------*/
  61. #pragma pack(4)
  62.  
  63. class IVBLogicalAndPart : public IVBDataTypePart
  64. {
  65. typedef IVBDataTypePart
  66.   Inherited;
  67. public:
  68. /*--------------------------- PUBLIC -----------------------------------------*/
  69.  
  70. /*------------------------- Constructors/Destructor ----------------------------
  71. ------------------------------------------------------------------------------*/
  72.   IVBLogicalAndPart ();
  73.   IVBLogicalAndPart (const IVBLogicalAndPart& partCopy);
  74. virtual
  75.   ~IVBLogicalAndPart ();
  76.  
  77. /*-------------------------------- Operators -----------------------------------
  78. |   operator ==       - Operator == (return true if equal).                    |
  79. |   operator !=       - Operator != (return true if not equal).                |
  80. ------------------------------------------------------------------------------*/
  81.   IVBLogicalAndPart& operator= (const IVBLogicalAndPart& aIVBLogicalAndPart);
  82. Boolean
  83.   operator == (const IVBLogicalAndPart& aValue) const,
  84.   operator != (const IVBLogicalAndPart& aValue) const,
  85.   operator == (const IVBLogicalAndPart* aValue) const,
  86.   operator != (const IVBLogicalAndPart* aValue) const;
  87.  
  88. virtual IString
  89.   asString    ( ) const;
  90.  
  91. /*-------------------------------- Attributes ----------------------------------
  92. | List of query and set members functions for this class:                      |
  93. |                                                                              |
  94. |   value             - Query the value (Boolean) attribute.                   |
  95. |   notValue          - Query the notValue (Boolean) attribute.                |
  96. |   valueAsText       - Query the valueAsText (IString) attribute.             |
  97. |   input1            - Query the input1 (Boolean) attribute.                  |
  98. |   input2            - Query the input2 (Boolean) attribute.                  |
  99. |   input3            - Query the input3 (Boolean) attribute.                  |
  100. |   input4            - Query the input4 (Boolean) attribute.                  |
  101. |   input5            - Query the input5 (Boolean) attribute.                  |
  102. |   input6            - Query the input6 (Boolean) attribute.                  |
  103. |   input7            - Query the input7 (Boolean) attribute.                  |
  104. |   input8            - Query the input8 (Boolean) attribute.                  |
  105. |   input9            - Query the input9 (Boolean) attribute.                  |
  106. |   input10           - Query the input10 (Boolean) attribute.                 |
  107. |   notInput1         - Query the notInput1 (Boolean) attribute.               |
  108. |   notInput2         - Query the notInput2 (Boolean) attribute.               |
  109. |   notInput3         - Query the notInput3 (Boolean) attribute.               |
  110. |   notInput4         - Query the notInput4 (Boolean) attribute.               |
  111. |   notInput5         - Query the notInput5 (Boolean) attribute.               |
  112. |   notInput6         - Query the notInput6 (Boolean) attribute.               |
  113. |   notInput7         - Query the notInput7 (Boolean) attribute.               |
  114. |   notInput8         - Query the notInput8 (Boolean) attribute.               |
  115. |   notInput9         - Query the notInput9 (Boolean) attribute.               |
  116. |   notInput10        - Query the notInput10 (Boolean) attribute.              |
  117. |   defaultInput      - Query the defaultInput (Boolean) attribute.             |
  118. |   setInput1         - Set the input1 (Boolean) attribute.                    |
  119. |   setInput2         - Set the input2 (Boolean) attribute.                    |
  120. |   setInput3         - Set the input3 (Boolean) attribute.                    |
  121. |   setInput4         - Set the input4 (Boolean) attribute.                    |
  122. |   setInput5         - Set the input5 (Boolean) attribute.                    |
  123. |   setInput6         - Set the input6 (Boolean) attribute.                    |
  124. |   setInput7         - Set the input7 (Boolean) attribute.                    |
  125. |   setInput8         - Set the input8 (Boolean) attribute.                    |
  126. |   setInput9         - Set the input9 (Boolean) attribute.                    |
  127. |   setInput10        - Set the input10 (Boolean) attribute.                   |
  128. |   setNotInput1      - Set the notInput1 (Boolean) attribute.                 |
  129. |   setNotInput2      - Set the notInput2 (Boolean) attribute.                 |
  130. |   setNotInput3      - Set the notInput3 (Boolean) attribute.                 |
  131. |   setNotInput4      - Set the notInput4 (Boolean) attribute.                 |
  132. |   setNotInput5      - Set the notInput5 (Boolean) attribute.                 |
  133. |   setNotInput6      - Set the notInput6 (Boolean) attribute.                 |
  134. |   setNotInput7      - Set the notInput7 (Boolean) attribute.                 |
  135. |   setNotInput8      - Set the notInput8 (Boolean) attribute.                 |
  136. |   setNotInput9      - Set the notInput9 (Boolean) attribute.                 |
  137. |   setNotInput10     - Set the notInput10 (Boolean) attribute.                |
  138. ------------------------------------------------------------------------------*/
  139.  
  140. virtual Boolean
  141.   value () const;
  142.  
  143. virtual Boolean
  144.   notValue () const;
  145.  
  146. virtual IString
  147.   valueAsText () const;
  148.  
  149. virtual Boolean
  150.   input1 () const;
  151. virtual IVBLogicalAndPart
  152.  &setInput1 (Boolean input1),
  153.  &setInput1 ();
  154.  
  155. virtual Boolean
  156.   input2 () const;
  157. virtual IVBLogicalAndPart
  158.  &setInput2 (Boolean input2),
  159.  &setInput2 ();
  160.  
  161. virtual Boolean
  162.   input3 () const;
  163. virtual IVBLogicalAndPart
  164.  &setInput3 (Boolean input3),
  165.  &setInput3 ();
  166.  
  167. virtual Boolean
  168.   input4 () const;
  169. virtual IVBLogicalAndPart
  170.  &setInput4 (Boolean input4),
  171.  &setInput4 ();
  172.  
  173. virtual Boolean
  174.   input5 () const;
  175. virtual IVBLogicalAndPart
  176.  &setInput5 (Boolean input5),
  177.  &setInput5 ();
  178.  
  179. virtual Boolean
  180.   input6 () const;
  181. virtual IVBLogicalAndPart
  182.  &setInput6 (Boolean input6),
  183.  &setInput6 ();
  184.  
  185. virtual Boolean
  186.   input7 () const;
  187. virtual IVBLogicalAndPart
  188.  &setInput7 (Boolean input7),
  189.  &setInput7 ();
  190.  
  191. virtual Boolean
  192.   input8 () const;
  193. virtual IVBLogicalAndPart
  194.  &setInput8 (Boolean input8),
  195.  &setInput8 ();
  196.  
  197. virtual Boolean
  198.   input9 () const;
  199. virtual IVBLogicalAndPart
  200.  &setInput9 (Boolean input9),
  201.  &setInput9 ();
  202.  
  203. virtual Boolean
  204.   input10 () const;
  205. virtual IVBLogicalAndPart
  206.  &setInput10 (Boolean input10),
  207.  &setInput10 ();
  208.  
  209. virtual Boolean
  210.   notInput1 () const;
  211. virtual IVBLogicalAndPart
  212.  &setNotInput1 (Boolean notInput1),
  213.  &setNotInput1 ();
  214.  
  215. virtual Boolean
  216.   notInput2 () const;
  217. virtual IVBLogicalAndPart
  218.  &setNotInput2 (Boolean notInput2),
  219.  &setNotInput2 ();
  220.  
  221. virtual Boolean
  222.   notInput3 () const;
  223. virtual IVBLogicalAndPart
  224.  &setNotInput3 (Boolean notInput3),
  225.  &setNotInput3 ();
  226.  
  227. virtual Boolean
  228.   notInput4 () const;
  229. virtual IVBLogicalAndPart
  230.  &setNotInput4 (Boolean notInput4),
  231.  &setNotInput4 ();
  232.  
  233. virtual Boolean
  234.   notInput5 () const;
  235. virtual IVBLogicalAndPart
  236.  &setNotInput5 (Boolean notInput5),
  237.  &setNotInput5 ();
  238.  
  239. virtual Boolean
  240.   notInput6 () const;
  241. virtual IVBLogicalAndPart
  242.  &setNotInput6 (Boolean notInput6),
  243.  &setNotInput6 ();
  244.  
  245. virtual Boolean
  246.   notInput7 () const;
  247. virtual IVBLogicalAndPart
  248.  &setNotInput7 (Boolean notInput7),
  249.  &setNotInput7 ();
  250.  
  251. virtual Boolean
  252.   notInput8 () const;
  253. virtual IVBLogicalAndPart
  254.  &setNotInput8 (Boolean notInput8),
  255.  &setNotInput8 ();
  256.  
  257. virtual Boolean
  258.   notInput9 () const;
  259. virtual IVBLogicalAndPart
  260.  &setNotInput9 (Boolean notInput9),
  261.  &setNotInput9 ();
  262.  
  263. virtual Boolean
  264.   notInput10 () const;
  265. virtual IVBLogicalAndPart
  266.  &setNotInput10 (Boolean notInput10),
  267.  &setNotInput10 ();
  268.  
  269. virtual Boolean
  270.   defaultInput () const;
  271.  
  272. /*-------------------------------- Actions -------------------------------------
  273. | List of operations or services provided by this class:                       |
  274. |                                                                              |
  275. ------------------------------------------------------------------------------*/
  276.  
  277.  
  278.  
  279. /*----------------------- Notification Event Descriptions ----------------------
  280. | List of attribute and event notification identifiers:                        |
  281. |                                                                              |
  282. |   valueId           - Notification ID provided to observers when the         |
  283. |                       value attribute changes.                               |
  284. |   input1Id          - Notification ID provided to observers when the         |
  285. |                       input1 attribute changes.                              |
  286. |   input2Id          - Notification ID provided to observers when the         |
  287. |                       input2 attribute changes.                              |
  288. |   input3Id          - Notification ID provided to observers when the         |
  289. |                       input3 attribute changes.                              |
  290. |   input4Id          - Notification ID provided to observers when the         |
  291. |                       input4 attribute changes.                              |
  292. |   input5Id          - Notification ID provided to observers when the         |
  293. |                       input5 attribute changes.                              |
  294. |   input6Id          - Notification ID provided to observers when the         |
  295. |                       input6 attribute changes.                              |
  296. |   input7Id          - Notification ID provided to observers when the         |
  297. |                       input7 attribute changes.                              |
  298. |   input8Id          - Notification ID provided to observers when the         |
  299. |                       input8 attribute changes.                              |
  300. |   input9Id          - Notification ID provided to observers when the         |
  301. |                       input9 attribute changes.                              |
  302. |   input10Id         - Notification ID provided to observers when the         |
  303. |                       input10 attribute changes.                             |
  304. ------------------------------------------------------------------------------*/
  305. static INotificationId const
  306.   IVB_IMPORT valueId,
  307.   IVB_IMPORT input1Id,
  308.   IVB_IMPORT input2Id,
  309.   IVB_IMPORT input3Id,
  310.   IVB_IMPORT input4Id,
  311.   IVB_IMPORT input5Id,
  312.   IVB_IMPORT input6Id,
  313.   IVB_IMPORT input7Id,
  314.   IVB_IMPORT input8Id,
  315.   IVB_IMPORT input9Id,
  316.   IVB_IMPORT input10Id;
  317.  
  318.  
  319. protected:
  320. /*-------------------------------- Protected Services --------------------------
  321. | List of protected operations or services provided by this class:             |
  322. |                                                                              |
  323. |   compute           - compute action.                                        |
  324. ------------------------------------------------------------------------------*/
  325. virtual IVBLogicalAndPart
  326.   &compute ();
  327.  
  328. private:
  329. /*--------------------------- PRIVATE ----------------------------------------*/
  330.   Boolean iValue;                       //Data member for value attribute
  331.   Boolean iInput1;                      //Data member for input1 attribute
  332.   Boolean iInput2;                      //Data member for input2 attribute
  333.   Boolean iInput3;                      //Data member for input3 attribute
  334.   Boolean iInput4;                      //Data member for input4 attribute
  335.   Boolean iInput5;                      //Data member for input5 attribute
  336.   Boolean iInput6;                      //Data member for input6 attribute
  337.   Boolean iInput7;                      //Data member for input7 attribute
  338.   Boolean iInput8;                      //Data member for input8 attribute
  339.   Boolean iInput9;                      //Data member for input9 attribute
  340.   Boolean iInput10;                     //Data member for input10 attribute
  341. };
  342.  
  343. /*----------------------------------------------------------------------------*/
  344. /* Resume compiler default packing.                                           */
  345. /*----------------------------------------------------------------------------*/
  346. #pragma pack()
  347.  
  348. #endif
  349.