home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / sctypes.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-01-24  |  2.5 KB  |  94 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. /* %Z% %I% %W% %G% %U% [%H% %T%] */
  14.  
  15. /*
  16.  */
  17.  
  18. #ifndef sctypes_h
  19. #define sctypes_h
  20.  
  21. #ifdef __SOMIDL__
  22.     interface SOMTEntryC;
  23.     interface SOMTEmitC;
  24.     interface SOMTMetaClassEntryC;
  25.     interface SOMTAttributeEntryC;
  26.     interface SOMTTypedefEntryC;
  27.     interface SOMTBaseClassEntryC;
  28.     interface SOMTPassthruEntryC;
  29.     interface SOMTDataEntryC;
  30.     interface SOMTMethodEntryC;
  31.     interface SOMTClassEntryC;
  32.     interface SOMTModuleEntryC;
  33.     interface SOMTParameterEntryC;
  34.     interface SOMTStructEntryC;
  35.     interface SOMTUnionEntryC;
  36.     interface SOMTEnumEntryC;
  37.     interface SOMTConstEntryC;
  38.     interface SOMTSequenceEntryC;
  39.     interface SOMTStringEntryC;
  40.     interface SOMTEnumNameEntryC;
  41.     interface SOMTCommonEntryC;
  42.     interface SOMTUserDefinedTypeEntryC;
  43. #else
  44.     #ifdef __cplusplus
  45.     #undef __STR__
  46.     #endif
  47.     #include <stdio.h>
  48.     #include <string.h>
  49.     #include <som.h>
  50. #endif  /* __SOMIDL__ */
  51.  
  52. #include <sm.h>
  53.  
  54. #define SOMT_MAX_STRING_LENGTH 10000
  55. #define SOMT_MAX_SMALL_STRING 1000
  56.  
  57. enum SOMTTargetTypeT {
  58.     somtPrivateE,
  59.     somtPublicE,
  60.     somtImplementationE,
  61.     somtAllE
  62. };
  63.  
  64. #ifdef __SOMIDL__
  65. typedef unsigned long SOMTTypes;
  66. #else
  67. typedef enum SOMTTargetTypeT SOMTTargetTypeT;
  68. #endif
  69.  
  70.  
  71. #ifndef __SOMIDL__
  72.  
  73. #ifdef SOM_STRICT_IDL
  74. SOMEXTERN SOMTEntryC SOMLINK somtGetObjectWrapper(Entry *ep);
  75. SOMEXTERN void SOMLINK printEntry(SOMTEntryC entry, int level);
  76. SOMEXTERN void SOMLINK dumpEntry(SOMTEntryC entry, int level);
  77. #else
  78. SOMEXTERN SOMTEntryC * SOMLINK somtGetObjectWrapper(Entry * ep);
  79. SOMEXTERN void SOMLINK printEntry(SOMTEntryC * entry, int level);
  80. SOMEXTERN void SOMLINK dumpEntry(SOMTEntryC * entry, int level);
  81. #endif
  82. SOMEXTERN void SOMLINK somtShowEntry(Entry * ep);
  83. SOMEXTERN char * SOMLINK somtStrDup(char *str);
  84. SOMEXTERN char * SOMLINK somtStrCat(int count,...);
  85. SOMEXTERN char * SOMLINK somtMakeIncludeStr(boolean local, char *stem, char *suffix);
  86. SOMEXTERN char * SOMLINK somtNewSymbol(char *prefix, char *stem);
  87. SOMEXTERN char * SOMLINK somtGetFileStem(char *fullName);
  88. SOMEXTERN char * SOMLINK somtEntryTypeName(SOMTTypes type);
  89.  
  90. #endif /* __SOMIDL__ */
  91.  
  92.  
  93. #endif /* sctypes_h */
  94.