home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vgserv45.zip / BASE / HPTWGS2 / include / fcwmsqiu.h < prev    next >
C/C++ Source or Header  |  2001-03-21  |  2KB  |  54 lines

  1. /*****************************************************************************/
  2. /*                                                                           */
  3. /*                           OCO SOURCE MATERIALS                            */
  4. /*                             IBM CONFIDENTIAL                              */
  5. /*                                    OR                                     */
  6. /*                        IBM CONFIDENTIAL RESTRICTED                        */
  7. /*            WHEN COMBINED WITH THE AGGREGATED OCO SOURCE MODULES           */
  8. /*                           FOR THIS PROGRAM PRODUCT                        */
  9. /*                                                                           */
  10. /*      VisualAge Generator Server for OS/2, AIX, HP-UX, and Windows NT      */
  11. /*                          Version 3.0  5697-C28                            */
  12. /*                    (C) COPYRIGHT IBM CORP. 1994,1997                      */
  13. /*                                                                           */
  14. /*                                                                           */
  15. /*  Type    Date     Userid   Description of problem                         */
  16. /*  ----  --------  --------  ---------------------------------------------  */
  17. /*  A1    08/07/99  Lui       Feature 11712: Unicode Data Item Support       */
  18. /*                                                                           */
  19. /*****************************************************************************/
  20. #ifndef  FCWMSQIU_H
  21. #define  FCWMSQIU_H
  22.  
  23.  
  24. // -----------------------------------------------------------------
  25. // SQL Row Unicode Data Item                              @A1
  26. // -----------------------------------------------------------------
  27.  
  28. class SQLUNICODE : public UNICODE
  29. {
  30.     enum { SQL_NULL_DATA = -1 };
  31.  
  32.   public:
  33.  
  34.     SQLUNICODE (Parent&, Level, int, int, int, int);
  35.  
  36.     void SetNull( short ) const;
  37.     void SetNull() const;
  38.     short GetNull() const;
  39.     Bool IsNull() const;
  40.     Bool IsTrunc() const;
  41.     void SetEmpty () const;
  42.  
  43.     // Interactions with other Unicode objects
  44.     void operator =  (const UNICODE& v);
  45.     void operator =  (const SQLUNICODE& v);
  46.  
  47.     // Interactions with character literals
  48.     void operator =  (const char *v);
  49.  
  50. };
  51.  
  52.  
  53. #endif
  54.