home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / scconst.idl < prev    next >
Encoding:
Text File  |  1996-02-21  |  2.4 KB  |  78 lines

  1. //
  2. //   COMPONENT_NAME: some
  3. //
  4. //   ORIGINS: 27
  5. //
  6. //
  7. //   10H9767, 10H9769  (C) COPYRIGHT International Business Machines Corp. 1992,1994
  8. //   All Rights Reserved
  9. //   Licensed Materials - Property of IBM
  10. //   US Government Users Restricted Rights - Use, duplication or
  11. //   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  12. //
  13.  
  14. #ifndef scconst_idl
  15. #define scconst_idl
  16.  
  17. #include <scentry.idl>
  18.  
  19. interface SOMTConstEntryC : SOMTEntryC
  20. {
  21.   readonly attribute SOMTEntryC somtConstTypeObj;
  22.   // A pointer to an object representing 
  23.   // the type of the const.
  24.  
  25.   readonly attribute string somtConstType;
  26.   // The type of the constant's value.
  27.  
  28.   readonly attribute string somtConstStringVal;
  29.   // The string value of the constant (unevaluated).
  30.  
  31.   readonly attribute unsigned long somtConstNumVal;
  32.   // The number value of the constant.
  33.   // This attribute is not valid if the value cannot
  34.   // be stored in an unsigned long (string, float, double, negative).
  35.   // The somtConstIsNegative attribute can be used to determine
  36.   // if the value is negative.  The somtConstType attribute can
  37.   // be used to determine whether the value is a float or double.
  38.  
  39.   readonly attribute long somtConstNumNegVal;
  40.   // The number value of the constant, if negative.
  41.  
  42.   readonly attribute boolean somtConstIsNegative;
  43.   // Whether the constant's value is a negative integer and
  44.   // must be obtained using somtConstNumNegVal rather than somtConstNumVal.
  45.  
  46.   readonly attribute string somtConstVal;
  47.   // The string value of the constant (evaluated).
  48.   // The "get" method for this attribute returns a string whose
  49.   // ownership is transferred to the caller.
  50.  
  51. #ifdef __SOMIDL__
  52.   implementation {
  53.     releaseorder: _get_somtConstStringVal, _get_somtConstNumVal, 
  54.                   _get_somtConstType, _get_somtConstTypeObj, 
  55.                   _get_somtConstVal, _get_somtConstNumNegVal,
  56.             _get_somtConstIsNegative;
  57.  
  58.     majorversion = 2;
  59.     minorversion = 1;
  60.     filestem = scconst;
  61.     callstyle = oidl;
  62.  
  63.     somDumpSelfInt: override;
  64.     somtSetSymbolsOnEntry: override;
  65.  
  66.     somtConstStringVal: nodata;
  67.     somtConstNumVal: nodata;
  68.     somtConstVal: nodata;
  69.     somtConstNumNegVal: nodata;
  70.     somtConstType: nodata;
  71.     somtConstTypeObj: nodata;
  72.     somtConstIsNegative: nodata;
  73.   };
  74. #endif /* __SOMIDL__ */
  75. };
  76.  
  77. #endif  /* scconst*/
  78.