| 1 |
|
|---|
| 2 | /*
|
|---|
| 3 | * This file was generated by the SOM Compiler.
|
|---|
| 4 | * FileName: include\wpimage.ih.
|
|---|
| 5 | * Generated using:
|
|---|
| 6 | * SOM Precompiler somipc: 2.29.1.7
|
|---|
| 7 | * SOM Emitter emitih: 2.42
|
|---|
| 8 | */
|
|---|
| 9 |
|
|---|
| 10 | /*
|
|---|
| 11 | * Module Header
|
|---|
| 12 | *
|
|---|
| 13 | * Module Name: WPIMAGEFILE
|
|---|
| 14 | *
|
|---|
| 15 | * OS/2 Presentation Manager Workplace class definitions
|
|---|
| 16 | *
|
|---|
| 17 | *
|
|---|
| 18 | */
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 | /*
|
|---|
| 22 | * -- By default, for classes declared using IDL,
|
|---|
| 23 | * -- this emitter doesn't define redispatch/apply stubs.
|
|---|
| 24 | * -- Instead, it requests that the SOM kernel produce them.
|
|---|
| 25 | * -- To override this default, use the "notc" modifier.
|
|---|
| 26 | */
|
|---|
| 27 |
|
|---|
| 28 | #ifndef SOM_WPImageFile_ih
|
|---|
| 29 | #define SOM_WPImageFile_ih
|
|---|
| 30 |
|
|---|
| 31 | #pragma checkout(suspend)
|
|---|
| 32 |
|
|---|
| 33 | #include <wpimage.h>
|
|---|
| 34 |
|
|---|
| 35 | /*
|
|---|
| 36 | * Set the scope of methods functions
|
|---|
| 37 | */
|
|---|
| 38 | #ifndef SOM_Scope
|
|---|
| 39 | #ifdef __cplusplus
|
|---|
| 40 | #define SOM_Scope extern "C"
|
|---|
| 41 | #else
|
|---|
| 42 | #define SOM_Scope extern
|
|---|
| 43 | #endif /* __cplusplus */
|
|---|
| 44 | #endif /* SOM_Scope */
|
|---|
| 45 |
|
|---|
| 46 | #ifndef SOM_CurrentClass
|
|---|
| 47 | #define SOM_CurrentClass WPImageFileCClassData.parentMtab
|
|---|
| 48 | #endif /* SOM_CurrentClass */
|
|---|
| 49 |
|
|---|
| 50 | #define WPImageFile_MaxNoMethods 6
|
|---|
| 51 |
|
|---|
| 52 | /*
|
|---|
| 53 | * -- Instance data
|
|---|
| 54 | */
|
|---|
| 55 | typedef void WPImageFileData;
|
|---|
| 56 |
|
|---|
| 57 | /*
|
|---|
| 58 | * This class introduces no instance data, so no GetData macro is provided
|
|---|
| 59 | */
|
|---|
| 60 |
|
|---|
| 61 | /*
|
|---|
| 62 | * Primary Implementation File Support
|
|---|
| 63 | */
|
|---|
| 64 | #if (defined(WPImageFile_Class_Source) || defined(SOM_Module_wpimage_Source))
|
|---|
| 65 |
|
|---|
| 66 | /*
|
|---|
| 67 | * Trace/Debug macro
|
|---|
| 68 | */
|
|---|
| 69 | #ifndef WPImageFileMethodDebug
|
|---|
| 70 | #define WPImageFileMethodDebug(c,m) SOMMethodDebug(c,m)
|
|---|
| 71 | #endif /* WPImageFileMethodDebug */
|
|---|
| 72 |
|
|---|
| 73 | /*
|
|---|
| 74 | * Current class macros for Instance and Meta classes.
|
|---|
| 75 | */
|
|---|
| 76 | #undef SOMMeta
|
|---|
| 77 | #define SOMMeta M_WPImageFileCClassData.parentMtab
|
|---|
| 78 | #undef SOMInstance
|
|---|
| 79 | #define SOMInstance WPImageFileCClassData.parentMtab
|
|---|
| 80 |
|
|---|
| 81 | #ifndef M_WPImageFile_Class_Source
|
|---|
| 82 | #define M_WPImageFile_Class_Source
|
|---|
| 83 | #endif /* M_WPImageFile_Class_Source */
|
|---|
| 84 |
|
|---|
| 85 | /*
|
|---|
| 86 | * Overridden method: wpUnInitData
|
|---|
| 87 | */
|
|---|
| 88 | #pragma linkage(wpimg_wpUnInitData, system)
|
|---|
| 89 | SOM_Scope void SOMLINK wpimg_wpUnInitData(WPImageFile *somSelf);
|
|---|
| 90 | static char *somMN_WPImageFilewpUnInitData = "WPObject::wpUnInitData";
|
|---|
| 91 | static somId somId_WPImageFilewpUnInitData = &somMN_WPImageFilewpUnInitData;
|
|---|
| 92 | #ifdef somId_wpUnInitData
|
|---|
| 93 | #undef somId_wpUnInitData
|
|---|
| 94 | #else
|
|---|
| 95 | #define somId_wpUnInitData somId_WPImageFilewpUnInitData
|
|---|
| 96 | #endif
|
|---|
| 97 | static somMethodProc* WPImageFile_parent_WPDataFile_wpUnInitData_resolved;
|
|---|
| 98 | #define WPImageFile_parent_WPDataFile_wpUnInitData(somSelf) \
|
|---|
| 99 | ((( somTD_WPObject_wpUnInitData ) \
|
|---|
| 100 | WPImageFile_parent_WPDataFile_wpUnInitData_resolved) \
|
|---|
| 101 | (somSelf))
|
|---|
| 102 | #ifndef SOMGD_pmc_WPDataFile_wpUnInitData
|
|---|
| 103 | #ifdef parent_WPDataFile_wpUnInitData
|
|---|
| 104 | #undef parent_WPDataFile_wpUnInitData
|
|---|
| 105 | #define SOMGD_pmc_WPDataFile_wpUnInitData 1
|
|---|
| 106 | #else
|
|---|
| 107 | #define parent_WPDataFile_wpUnInitData WPImageFile_parent_WPDataFile_wpUnInitData
|
|---|
| 108 | #endif /* parent_WPDataFile_wpUnInitData */
|
|---|
| 109 | #endif /* SOMGD_pmc_WPDataFile_wpUnInitData */
|
|---|
| 110 | #ifndef parent_wpUnInitData
|
|---|
| 111 | #define parent_wpUnInitData WPImageFile_parent_WPDataFile_wpUnInitData
|
|---|
| 112 | #endif /* parent_wpUnInitData */
|
|---|
| 113 | #define WPImageFile_parents_wpUnInitData(somSelf) (\
|
|---|
| 114 | WPImageFile_parent_WPDataFile_wpUnInitData(somSelf))
|
|---|
| 115 |
|
|---|
| 116 | /*
|
|---|
| 117 | * Initialize the class data structure
|
|---|
| 118 | */
|
|---|
| 119 | SOMEXTERN struct WPImageFileClassDataStructure SOMDLINK WPImageFileClassData = {(SOMAny *) NULL};
|
|---|
| 120 |
|
|---|
| 121 | /*
|
|---|
| 122 | * Define the C class data structure
|
|---|
| 123 | */
|
|---|
| 124 | SOMEXTERN struct WPImageFileCClassDataStructure SOMDLINK WPImageFileCClassData = {(somMethodTabs) NULL};
|
|---|
| 125 |
|
|---|
| 126 | /*
|
|---|
| 127 | * New Method: wpQueryBitmapHandle
|
|---|
| 128 | */
|
|---|
| 129 | #pragma linkage(wpimg_wpQueryBitmapHandle, system)
|
|---|
| 130 | SOM_Scope BOOL SOMLINK wpimg_wpQueryBitmapHandle(WPImageFile *somSelf,
|
|---|
| 131 | HBITMAP* phBitmap,
|
|---|
| 132 | HPAL* phPalette,
|
|---|
| 133 | ULONG ulWidth,
|
|---|
| 134 | ULONG ulHeight,
|
|---|
| 135 | ULONG ulFlags,
|
|---|
| 136 | long lBackgroundColor,
|
|---|
| 137 | BOOL* pbQuitEarly);
|
|---|
| 138 | #ifndef somMN_wpQueryBitmapHandle_defined
|
|---|
| 139 | #define somMN_wpQueryBitmapHandle_defined
|
|---|
| 140 | static char *somMN_wpQueryBitmapHandle = "wpQueryBitmapHandle";
|
|---|
| 141 | static somId somId_wpQueryBitmapHandle = &somMN_wpQueryBitmapHandle;
|
|---|
| 142 | #endif /* somMN_wpQueryBitmapHandle_defined */
|
|---|
| 143 | #ifndef somDS_wpQueryBitmapHandle_defined
|
|---|
| 144 | #define somDS_wpQueryBitmapHandle_defined
|
|---|
| 145 | static char *somDS_wpQueryBitmapHandle = "::WPImageFile::wpQueryBitmapHandle";
|
|---|
| 146 | static somId somDI_wpQueryBitmapHandle = &somDS_wpQueryBitmapHandle;
|
|---|
| 147 | #endif /* somDS_wpQueryBitmapHandle_defined */
|
|---|
| 148 |
|
|---|
| 149 | static somMethodInfo wpQueryBitmapHandleMethodInfo = {0, 32, 0};
|
|---|
| 150 |
|
|---|
| 151 | static somApRdInfo wpQueryBitmapHandleStubs = {0, 0, &wpQueryBitmapHandleMethodInfo};
|
|---|
| 152 |
|
|---|
| 153 | /*
|
|---|
| 154 | * New Method: wpQueryBitmapInfoHeader
|
|---|
| 155 | */
|
|---|
| 156 | #pragma linkage(wpimg_wpQueryBitmapInfoHeader, system)
|
|---|
| 157 | SOM_Scope PBYTE SOMLINK wpimg_wpQueryBitmapInfoHeader(WPImageFile *somSelf);
|
|---|
| 158 | #ifndef somMN_wpQueryBitmapInfoHeader_defined
|
|---|
| 159 | #define somMN_wpQueryBitmapInfoHeader_defined
|
|---|
| 160 | static char *somMN_wpQueryBitmapInfoHeader = "wpQueryBitmapInfoHeader";
|
|---|
| 161 | static somId somId_wpQueryBitmapInfoHeader = &somMN_wpQueryBitmapInfoHeader;
|
|---|
| 162 | #endif /* somMN_wpQueryBitmapInfoHeader_defined */
|
|---|
| 163 | #ifndef somDS_wpQueryBitmapInfoHeader_defined
|
|---|
| 164 | #define somDS_wpQueryBitmapInfoHeader_defined
|
|---|
| 165 | static char *somDS_wpQueryBitmapInfoHeader = "::WPImageFile::wpQueryBitmapInfoHeader";
|
|---|
| 166 | static somId somDI_wpQueryBitmapInfoHeader = &somDS_wpQueryBitmapInfoHeader;
|
|---|
| 167 | #endif /* somDS_wpQueryBitmapInfoHeader_defined */
|
|---|
| 168 | #define wpQueryBitmapInfoHeader_somApRdDefault
|
|---|
| 169 |
|
|---|
| 170 | /*
|
|---|
| 171 | * New Method: wpQueryBitmapData
|
|---|
| 172 | */
|
|---|
| 173 | #pragma linkage(wpimg_wpQueryBitmapData, system)
|
|---|
| 174 | SOM_Scope PBYTE SOMLINK wpimg_wpQueryBitmapData(WPImageFile *somSelf,
|
|---|
| 175 | ULONG* pulSize);
|
|---|
| 176 | #ifndef somMN_wpQueryBitmapData_defined
|
|---|
| 177 | #define somMN_wpQueryBitmapData_defined
|
|---|
| 178 | static char *somMN_wpQueryBitmapData = "wpQueryBitmapData";
|
|---|
| 179 | static somId somId_wpQueryBitmapData = &somMN_wpQueryBitmapData;
|
|---|
| 180 | #endif /* somMN_wpQueryBitmapData_defined */
|
|---|
| 181 | #ifndef somDS_wpQueryBitmapData_defined
|
|---|
| 182 | #define somDS_wpQueryBitmapData_defined
|
|---|
| 183 | static char *somDS_wpQueryBitmapData = "::WPImageFile::wpQueryBitmapData";
|
|---|
| 184 | static somId somDI_wpQueryBitmapData = &somDS_wpQueryBitmapData;
|
|---|
| 185 | #endif /* somDS_wpQueryBitmapData_defined */
|
|---|
| 186 | #define wpQueryBitmapData_somApRdDefault
|
|---|
| 187 |
|
|---|
| 188 | /*
|
|---|
| 189 | * New Method: wpSetBitmapData
|
|---|
| 190 | */
|
|---|
| 191 | #pragma linkage(wpimg_wpSetBitmapData, system)
|
|---|
| 192 | SOM_Scope BOOL SOMLINK wpimg_wpSetBitmapData(WPImageFile *somSelf,
|
|---|
| 193 | PBYTE pBitmapData,
|
|---|
| 194 | ULONG ulSize);
|
|---|
| 195 | #ifndef somMN_wpSetBitmapData_defined
|
|---|
| 196 | #define somMN_wpSetBitmapData_defined
|
|---|
| 197 | static char *somMN_wpSetBitmapData = "wpSetBitmapData";
|
|---|
| 198 | static somId somId_wpSetBitmapData = &somMN_wpSetBitmapData;
|
|---|
| 199 | #endif /* somMN_wpSetBitmapData_defined */
|
|---|
| 200 | #ifndef somDS_wpSetBitmapData_defined
|
|---|
| 201 | #define somDS_wpSetBitmapData_defined
|
|---|
| 202 | static char *somDS_wpSetBitmapData = "::WPImageFile::wpSetBitmapData";
|
|---|
| 203 | static somId somDI_wpSetBitmapData = &somDS_wpSetBitmapData;
|
|---|
| 204 | #endif /* somDS_wpSetBitmapData_defined */
|
|---|
| 205 | #define wpSetBitmapData_somApRdDefault
|
|---|
| 206 |
|
|---|
| 207 | /*
|
|---|
| 208 | * New Method: wpReadImageFile
|
|---|
| 209 | */
|
|---|
| 210 | #pragma linkage(wpimg_wpReadImageFile, system)
|
|---|
| 211 | SOM_Scope BOOL SOMLINK wpimg_wpReadImageFile(WPImageFile *somSelf);
|
|---|
| 212 | #ifndef somMN_wpReadImageFile_defined
|
|---|
| 213 | #define somMN_wpReadImageFile_defined
|
|---|
| 214 | static char *somMN_wpReadImageFile = "wpReadImageFile";
|
|---|
| 215 | static somId somId_wpReadImageFile = &somMN_wpReadImageFile;
|
|---|
| 216 | #endif /* somMN_wpReadImageFile_defined */
|
|---|
| 217 | #ifndef somDS_wpReadImageFile_defined
|
|---|
| 218 | #define somDS_wpReadImageFile_defined
|
|---|
| 219 | static char *somDS_wpReadImageFile = "::WPImageFile::wpReadImageFile";
|
|---|
| 220 | static somId somDI_wpReadImageFile = &somDS_wpReadImageFile;
|
|---|
| 221 | #endif /* somDS_wpReadImageFile_defined */
|
|---|
| 222 | #define wpReadImageFile_somApRdDefault
|
|---|
| 223 |
|
|---|
| 224 | /*
|
|---|
| 225 | * New Method: wpWriteImageFile
|
|---|
| 226 | */
|
|---|
| 227 | #pragma linkage(wpimg_wpWriteImageFile, system)
|
|---|
| 228 | SOM_Scope BOOL SOMLINK wpimg_wpWriteImageFile(WPImageFile *somSelf);
|
|---|
| 229 | #ifndef somMN_wpWriteImageFile_defined
|
|---|
| 230 | #define somMN_wpWriteImageFile_defined
|
|---|
| 231 | static char *somMN_wpWriteImageFile = "wpWriteImageFile";
|
|---|
| 232 | static somId somId_wpWriteImageFile = &somMN_wpWriteImageFile;
|
|---|
| 233 | #endif /* somMN_wpWriteImageFile_defined */
|
|---|
| 234 | #ifndef somDS_wpWriteImageFile_defined
|
|---|
| 235 | #define somDS_wpWriteImageFile_defined
|
|---|
| 236 | static char *somDS_wpWriteImageFile = "::WPImageFile::wpWriteImageFile";
|
|---|
| 237 | static somId somDI_wpWriteImageFile = &somDS_wpWriteImageFile;
|
|---|
| 238 | #endif /* somDS_wpWriteImageFile_defined */
|
|---|
| 239 | #define wpWriteImageFile_somApRdDefault
|
|---|
| 240 |
|
|---|
| 241 | /*
|
|---|
| 242 | * Routines and Structures to create the class object
|
|---|
| 243 | */
|
|---|
| 244 |
|
|---|
| 245 |
|
|---|
| 246 | /*
|
|---|
| 247 | * Declare the Static Methods table.
|
|---|
| 248 | */
|
|---|
| 249 | static somStaticMethod_t WPImageFileSM[] = {
|
|---|
| 250 | { &WPImageFileClassData.wpQueryBitmapHandle,
|
|---|
| 251 | &somId_wpQueryBitmapHandle,
|
|---|
| 252 | &somDI_wpQueryBitmapHandle,
|
|---|
| 253 | (somMethodProc *) wpimg_wpQueryBitmapHandle,
|
|---|
| 254 | (somMethodProc *)((void*)-1),
|
|---|
| 255 | #ifdef wpQueryBitmapHandle_somApRdDefault
|
|---|
| 256 | 0},
|
|---|
| 257 | #else
|
|---|
| 258 | (somMethodProc *) ((void*)&wpQueryBitmapHandleStubs) },
|
|---|
| 259 | #endif
|
|---|
| 260 | { &WPImageFileClassData.wpQueryBitmapInfoHeader,
|
|---|
| 261 | &somId_wpQueryBitmapInfoHeader,
|
|---|
| 262 | &somDI_wpQueryBitmapInfoHeader,
|
|---|
| 263 | (somMethodProc *) wpimg_wpQueryBitmapInfoHeader,
|
|---|
| 264 | (somMethodProc *)((void*)-1),
|
|---|
| 265 | #ifdef wpQueryBitmapInfoHeader_somApRdDefault
|
|---|
| 266 | 0},
|
|---|
| 267 | #else
|
|---|
| 268 | (somMethodProc *) ((void*)&wpQueryBitmapInfoHeaderStubs) },
|
|---|
| 269 | #endif
|
|---|
| 270 | { &WPImageFileClassData.wpQueryBitmapData,
|
|---|
| 271 | &somId_wpQueryBitmapData,
|
|---|
| 272 | &somDI_wpQueryBitmapData,
|
|---|
| 273 | (somMethodProc *) wpimg_wpQueryBitmapData,
|
|---|
| 274 | (somMethodProc *)((void*)-1),
|
|---|
| 275 | #ifdef wpQueryBitmapData_somApRdDefault
|
|---|
| 276 | 0},
|
|---|
| 277 | #else
|
|---|
| 278 | (somMethodProc *) ((void*)&wpQueryBitmapDataStubs) },
|
|---|
| 279 | #endif
|
|---|
| 280 | { &WPImageFileClassData.wpSetBitmapData,
|
|---|
| 281 | &somId_wpSetBitmapData,
|
|---|
| 282 | &somDI_wpSetBitmapData,
|
|---|
| 283 | (somMethodProc *) wpimg_wpSetBitmapData,
|
|---|
| 284 | (somMethodProc *)((void*)-1),
|
|---|
| 285 | #ifdef wpSetBitmapData_somApRdDefault
|
|---|
| 286 | 0},
|
|---|
| 287 | #else
|
|---|
| 288 | (somMethodProc *) ((void*)&wpSetBitmapDataStubs) },
|
|---|
| 289 | #endif
|
|---|
| 290 | { &WPImageFileClassData.wpReadImageFile,
|
|---|
| 291 | &somId_wpReadImageFile,
|
|---|
| 292 | &somDI_wpReadImageFile,
|
|---|
| 293 | (somMethodProc *) wpimg_wpReadImageFile,
|
|---|
| 294 | (somMethodProc *)((void*)-1),
|
|---|
| 295 | #ifdef wpReadImageFile_somApRdDefault
|
|---|
| 296 | 0},
|
|---|
| 297 | #else
|
|---|
| 298 | (somMethodProc *) ((void*)&wpReadImageFileStubs) },
|
|---|
| 299 | #endif
|
|---|
| 300 | { &WPImageFileClassData.wpWriteImageFile,
|
|---|
| 301 | &somId_wpWriteImageFile,
|
|---|
| 302 | &somDI_wpWriteImageFile,
|
|---|
| 303 | (somMethodProc *) wpimg_wpWriteImageFile,
|
|---|
| 304 | (somMethodProc *)((void*)-1),
|
|---|
| 305 | #ifdef wpWriteImageFile_somApRdDefault
|
|---|
| 306 | 0},
|
|---|
| 307 | #else
|
|---|
| 308 | (somMethodProc *) ((void*)&wpWriteImageFileStubs) },
|
|---|
| 309 | #endif
|
|---|
| 310 | };
|
|---|
| 311 |
|
|---|
| 312 |
|
|---|
| 313 | /*
|
|---|
| 314 | * Declare the Override Methods table.
|
|---|
| 315 | */
|
|---|
| 316 | static somOverrideMethod_t WPImageFileOM[] = {
|
|---|
| 317 | { &somId_WPImageFilewpUnInitData,
|
|---|
| 318 | (somMethodProc *) wpimg_wpUnInitData },
|
|---|
| 319 | };
|
|---|
| 320 |
|
|---|
| 321 |
|
|---|
| 322 | /*
|
|---|
| 323 | * Initializers for class Ids
|
|---|
| 324 | */
|
|---|
| 325 | static char * somCN_WPImageFile = "WPImageFile";
|
|---|
| 326 | #ifndef somEMC_M_WPImageFile_defined
|
|---|
| 327 | #define somEMC_M_WPImageFile_defined
|
|---|
| 328 | static char * somEMC_M_WPImageFile = "M_WPImageFile";
|
|---|
| 329 | #endif
|
|---|
| 330 | static char * somPCN_WPImageFile_WPDataFile = "WPDataFile";
|
|---|
| 331 |
|
|---|
| 332 | static somId somPCWPImageFile[] = {
|
|---|
| 333 | &somPCN_WPImageFile_WPDataFile,
|
|---|
| 334 | };
|
|---|
| 335 |
|
|---|
| 336 | static somStaticClassInfo WPImageFileSCI = {
|
|---|
| 337 | 4, 6, 1, 0, 0, 0,
|
|---|
| 338 | WPImageFile_MajorVersion, WPImageFile_MinorVersion,
|
|---|
| 339 | 0, WPImageFile_MaxNoMethods, 1,
|
|---|
| 340 | &somCN_WPImageFile,
|
|---|
| 341 | &somEMC_M_WPImageFile, 0,
|
|---|
| 342 | somPCWPImageFile,
|
|---|
| 343 | (somClassDataStructure *) &WPImageFileClassData,
|
|---|
| 344 | (somCClassDataStructure *) &WPImageFileCClassData,
|
|---|
| 345 | WPImageFileSM, WPImageFileOM,
|
|---|
| 346 | (char *) NULL,
|
|---|
| 347 | (somNonInternalData_t *) NULL, (somProcMethods_t *) NULL,
|
|---|
| 348 | (somVarargsFuncs_t *) NULL,
|
|---|
| 349 | (somTP_somClassInitFunc *) NULL,
|
|---|
| 350 | 0, /* type code alignment */
|
|---|
| 351 | -1, /* use parents as directinitclasses */
|
|---|
| 352 | 0, /* no explicit directinitclasses */
|
|---|
| 353 | 0, /* number of general method entries */
|
|---|
| 354 | (somMethods_t *) NULL,
|
|---|
| 355 | 0, /* no public data offset */
|
|---|
| 356 | 0, /* no sci development level check */
|
|---|
| 357 | 0, /* number of SelectInheritedMethods */
|
|---|
| 358 | 0, /* no SelectInheritedMethods */
|
|---|
| 359 | 6, /* number of classdata entries */
|
|---|
| 360 | 0, /* no entry names provided currently */
|
|---|
| 361 | 0, /* number of migrated methods */
|
|---|
| 362 | 0, /* no migrated method implementations */
|
|---|
| 363 | 0, /* number of initializers */
|
|---|
| 364 | 0, /* no initializers */
|
|---|
| 365 | 0, /* used to identify a DTS class */
|
|---|
| 366 | 0, /* used to register dynamically computed info */
|
|---|
| 367 | };
|
|---|
| 368 |
|
|---|
| 369 |
|
|---|
| 370 | /*
|
|---|
| 371 | * Class Creation and Initialization
|
|---|
| 372 | */
|
|---|
| 373 |
|
|---|
| 374 | SOMClass * SOMLINK WPImageFileNewClass (integer4 somtmajorVersion,
|
|---|
| 375 | integer4 somtminorVersion)
|
|---|
| 376 | {
|
|---|
| 377 | SOMClass *result;
|
|---|
| 378 | WPDataFileNewClass(WPDataFile_MajorVersion,WPDataFile_MinorVersion); /* static reference */
|
|---|
| 379 | /* Explicit metaclass, so get it */
|
|---|
| 380 | M_WPImageFileNewClass(M_WPImageFile_MajorVersion,M_WPImageFile_MinorVersion); /* static reference */
|
|---|
| 381 | result = somBuildClass(1,&WPImageFileSCI, somtmajorVersion, somtminorVersion);
|
|---|
| 382 | WPImageFile_parent_WPDataFile_wpUnInitData_resolved =
|
|---|
| 383 | somParentNumResolve(WPImageFileCClassData.parentMtab, 1, WPObjectClassData.wpUnInitData);
|
|---|
| 384 | return result;
|
|---|
| 385 | }
|
|---|
| 386 |
|
|---|
| 387 | /*
|
|---|
| 388 | * Functions for attributes.
|
|---|
| 389 | */
|
|---|
| 390 |
|
|---|
| 391 | #endif /* Primary Implementation Support */
|
|---|
| 392 | #pragma checkout(resume)
|
|---|
| 393 |
|
|---|
| 394 | #endif /* SOM_WPImageFile_ih */
|
|---|
| 395 |
|
|---|
| 396 | /*
|
|---|
| 397 | * -- By default, for classes declared using IDL,
|
|---|
| 398 | * -- this emitter doesn't define redispatch/apply stubs.
|
|---|
| 399 | * -- Instead, it requests that the SOM kernel produce them.
|
|---|
| 400 | * -- To override this default, use the "notc" modifier.
|
|---|
| 401 | */
|
|---|
| 402 |
|
|---|
| 403 | #ifndef SOM_M_WPImageFile_ih
|
|---|
| 404 | #define SOM_M_WPImageFile_ih
|
|---|
| 405 |
|
|---|
| 406 | #pragma checkout(suspend)
|
|---|
| 407 |
|
|---|
| 408 | #include <wpimage.h>
|
|---|
| 409 |
|
|---|
| 410 | /*
|
|---|
| 411 | * Set the scope of methods functions
|
|---|
| 412 | */
|
|---|
| 413 | #ifndef SOM_Scope
|
|---|
| 414 | #ifdef __cplusplus
|
|---|
| 415 | #define SOM_Scope extern "C"
|
|---|
| 416 | #else
|
|---|
| 417 | #define SOM_Scope extern
|
|---|
| 418 | #endif /* __cplusplus */
|
|---|
| 419 | #endif /* SOM_Scope */
|
|---|
| 420 |
|
|---|
| 421 | #ifndef SOM_CurrentClass
|
|---|
| 422 | #define SOM_CurrentClass M_WPImageFileCClassData.parentMtab
|
|---|
| 423 | #endif /* SOM_CurrentClass */
|
|---|
| 424 |
|
|---|
| 425 | #define M_WPImageFile_MaxNoMethods 0
|
|---|
| 426 |
|
|---|
| 427 | /*
|
|---|
| 428 | * -- Instance data
|
|---|
| 429 | */
|
|---|
| 430 | typedef void M_WPImageFileData;
|
|---|
| 431 |
|
|---|
| 432 | /*
|
|---|
| 433 | * This class introduces no instance data, so no GetData macro is provided
|
|---|
| 434 | */
|
|---|
| 435 |
|
|---|
| 436 | /*
|
|---|
| 437 | * Primary Implementation File Support
|
|---|
| 438 | */
|
|---|
| 439 | #if (defined(WPImageFile_Class_Source) || defined(M_WPImageFile_Class_Source) || defined(SOM_Module_wpimage_Source))
|
|---|
| 440 |
|
|---|
| 441 | /*
|
|---|
| 442 | * Trace/Debug macro
|
|---|
| 443 | */
|
|---|
| 444 | #ifndef M_WPImageFileMethodDebug
|
|---|
| 445 | #define M_WPImageFileMethodDebug(c,m) SOMMethodDebug(c,m)
|
|---|
| 446 | #endif /* M_WPImageFileMethodDebug */
|
|---|
| 447 |
|
|---|
| 448 | /*
|
|---|
| 449 | * Current class macros for Instance and Meta classes.
|
|---|
| 450 | */
|
|---|
| 451 |
|
|---|
| 452 | /*
|
|---|
| 453 | * Overridden method: wpclsQueryInstanceType
|
|---|
| 454 | */
|
|---|
| 455 | #pragma linkage(wpimgM_wpclsQueryInstanceType, system)
|
|---|
| 456 | SOM_Scope PSZ SOMLINK wpimgM_wpclsQueryInstanceType(M_WPImageFile *somSelf);
|
|---|
| 457 | static char *somMN_M_WPImageFilewpclsQueryInstanceType = "M_WPFileSystem::wpclsQueryInstanceType";
|
|---|
| 458 | static somId somId_M_WPImageFilewpclsQueryInstanceType = &somMN_M_WPImageFilewpclsQueryInstanceType;
|
|---|
| 459 | #ifdef somId_wpclsQueryInstanceType
|
|---|
| 460 | #undef somId_wpclsQueryInstanceType
|
|---|
| 461 | #else
|
|---|
| 462 | #define somId_wpclsQueryInstanceType somId_M_WPImageFilewpclsQueryInstanceType
|
|---|
| 463 | #endif
|
|---|
| 464 | static somMethodProc* M_WPImageFile_parent_M_WPDataFile_wpclsQueryInstanceType_resolved;
|
|---|
| 465 | #define M_WPImageFile_parent_M_WPDataFile_wpclsQueryInstanceType(somSelf) \
|
|---|
| 466 | ((( somTD_M_WPFileSystem_wpclsQueryInstanceType ) \
|
|---|
| 467 | M_WPImageFile_parent_M_WPDataFile_wpclsQueryInstanceType_resolved) \
|
|---|
| 468 | (somSelf))
|
|---|
| 469 | #ifndef SOMGD_pmc_M_WPDataFile_wpclsQueryInstanceType
|
|---|
| 470 | #ifdef parent_M_WPDataFile_wpclsQueryInstanceType
|
|---|
| 471 | #undef parent_M_WPDataFile_wpclsQueryInstanceType
|
|---|
| 472 | #define SOMGD_pmc_M_WPDataFile_wpclsQueryInstanceType 1
|
|---|
| 473 | #else
|
|---|
| 474 | #define parent_M_WPDataFile_wpclsQueryInstanceType M_WPImageFile_parent_M_WPDataFile_wpclsQueryInstanceType
|
|---|
| 475 | #endif /* parent_M_WPDataFile_wpclsQueryInstanceType */
|
|---|
| 476 | #endif /* SOMGD_pmc_M_WPDataFile_wpclsQueryInstanceType */
|
|---|
| 477 | #ifndef parent_wpclsQueryInstanceType
|
|---|
| 478 | #define parent_wpclsQueryInstanceType M_WPImageFile_parent_M_WPDataFile_wpclsQueryInstanceType
|
|---|
| 479 | #endif /* parent_wpclsQueryInstanceType */
|
|---|
| 480 | #define M_WPImageFile_parents_wpclsQueryInstanceType(somSelf) (\
|
|---|
| 481 | M_WPImageFile_parent_M_WPDataFile_wpclsQueryInstanceType(somSelf))
|
|---|
| 482 |
|
|---|
| 483 | /*
|
|---|
| 484 | * Overridden method: wpclsQueryStyle
|
|---|
| 485 | */
|
|---|
| 486 | #pragma linkage(wpimgM_wpclsQueryStyle, system)
|
|---|
| 487 | SOM_Scope ULONG SOMLINK wpimgM_wpclsQueryStyle(M_WPImageFile *somSelf);
|
|---|
| 488 | static char *somMN_M_WPImageFilewpclsQueryStyle = "M_WPObject::wpclsQueryStyle";
|
|---|
| 489 | static somId somId_M_WPImageFilewpclsQueryStyle = &somMN_M_WPImageFilewpclsQueryStyle;
|
|---|
| 490 | #ifdef somId_wpclsQueryStyle
|
|---|
| 491 | #undef somId_wpclsQueryStyle
|
|---|
| 492 | #else
|
|---|
| 493 | #define somId_wpclsQueryStyle somId_M_WPImageFilewpclsQueryStyle
|
|---|
| 494 | #endif
|
|---|
| 495 | static somMethodProc* M_WPImageFile_parent_M_WPDataFile_wpclsQueryStyle_resolved;
|
|---|
| 496 | #define M_WPImageFile_parent_M_WPDataFile_wpclsQueryStyle(somSelf) \
|
|---|
| 497 | ((( somTD_M_WPObject_wpclsQueryStyle ) \
|
|---|
| 498 | M_WPImageFile_parent_M_WPDataFile_wpclsQueryStyle_resolved) \
|
|---|
| 499 | (somSelf))
|
|---|
| 500 | #ifndef SOMGD_pmc_M_WPDataFile_wpclsQueryStyle
|
|---|
| 501 | #ifdef parent_M_WPDataFile_wpclsQueryStyle
|
|---|
| 502 | #undef parent_M_WPDataFile_wpclsQueryStyle
|
|---|
| 503 | #define SOMGD_pmc_M_WPDataFile_wpclsQueryStyle 1
|
|---|
| 504 | #else
|
|---|
| 505 | #define parent_M_WPDataFile_wpclsQueryStyle M_WPImageFile_parent_M_WPDataFile_wpclsQueryStyle
|
|---|
| 506 | #endif /* parent_M_WPDataFile_wpclsQueryStyle */
|
|---|
| 507 | #endif /* SOMGD_pmc_M_WPDataFile_wpclsQueryStyle */
|
|---|
| 508 | #ifndef parent_wpclsQueryStyle
|
|---|
| 509 | #define parent_wpclsQueryStyle M_WPImageFile_parent_M_WPDataFile_wpclsQueryStyle
|
|---|
| 510 | #endif /* parent_wpclsQueryStyle */
|
|---|
| 511 | #define M_WPImageFile_parents_wpclsQueryStyle(somSelf) (\
|
|---|
| 512 | M_WPImageFile_parent_M_WPDataFile_wpclsQueryStyle(somSelf))
|
|---|
| 513 |
|
|---|
| 514 | /*
|
|---|
| 515 | * Overridden method: wpclsQueryTitle
|
|---|
| 516 | */
|
|---|
| 517 | #pragma linkage(wpimgM_wpclsQueryTitle, system)
|
|---|
| 518 | SOM_Scope PSZ SOMLINK wpimgM_wpclsQueryTitle(M_WPImageFile *somSelf);
|
|---|
| 519 | static char *somMN_M_WPImageFilewpclsQueryTitle = "M_WPObject::wpclsQueryTitle";
|
|---|
| 520 | static somId somId_M_WPImageFilewpclsQueryTitle = &somMN_M_WPImageFilewpclsQueryTitle;
|
|---|
| 521 | #ifdef somId_wpclsQueryTitle
|
|---|
| 522 | #undef somId_wpclsQueryTitle
|
|---|
| 523 | #else
|
|---|
| 524 | #define somId_wpclsQueryTitle somId_M_WPImageFilewpclsQueryTitle
|
|---|
| 525 | #endif
|
|---|
| 526 | static somMethodProc* M_WPImageFile_parent_M_WPDataFile_wpclsQueryTitle_resolved;
|
|---|
| 527 | #define M_WPImageFile_parent_M_WPDataFile_wpclsQueryTitle(somSelf) \
|
|---|
| 528 | ((( somTD_M_WPObject_wpclsQueryTitle ) \
|
|---|
| 529 | M_WPImageFile_parent_M_WPDataFile_wpclsQueryTitle_resolved) \
|
|---|
| 530 | (somSelf))
|
|---|
| 531 | #ifndef SOMGD_pmc_M_WPDataFile_wpclsQueryTitle
|
|---|
| 532 | #ifdef parent_M_WPDataFile_wpclsQueryTitle
|
|---|
| 533 | #undef parent_M_WPDataFile_wpclsQueryTitle
|
|---|
| 534 | #define SOMGD_pmc_M_WPDataFile_wpclsQueryTitle 1
|
|---|
| 535 | #else
|
|---|
| 536 | #define parent_M_WPDataFile_wpclsQueryTitle M_WPImageFile_parent_M_WPDataFile_wpclsQueryTitle
|
|---|
| 537 | #endif /* parent_M_WPDataFile_wpclsQueryTitle */
|
|---|
| 538 | #endif /* SOMGD_pmc_M_WPDataFile_wpclsQueryTitle */
|
|---|
| 539 | #ifndef parent_wpclsQueryTitle
|
|---|
| 540 | #define parent_wpclsQueryTitle M_WPImageFile_parent_M_WPDataFile_wpclsQueryTitle
|
|---|
| 541 | #endif /* parent_wpclsQueryTitle */
|
|---|
| 542 | #define M_WPImageFile_parents_wpclsQueryTitle(somSelf) (\
|
|---|
| 543 | M_WPImageFile_parent_M_WPDataFile_wpclsQueryTitle(somSelf))
|
|---|
| 544 |
|
|---|
| 545 | /*
|
|---|
| 546 | * Overridden method: wpclsQueryDefaultHelp
|
|---|
| 547 | */
|
|---|
| 548 | #pragma linkage(wpimgM_wpclsQueryDefaultHelp, system)
|
|---|
| 549 | SOM_Scope BOOL SOMLINK wpimgM_wpclsQueryDefaultHelp(M_WPImageFile *somSelf,
|
|---|
| 550 | PULONG pHelpPanelId,
|
|---|
| 551 | PSZ pszHelpLibrary);
|
|---|
| 552 | static char *somMN_M_WPImageFilewpclsQueryDefaultHelp = "M_WPObject::wpclsQueryDefaultHelp";
|
|---|
| 553 | static somId somId_M_WPImageFilewpclsQueryDefaultHelp = &somMN_M_WPImageFilewpclsQueryDefaultHelp;
|
|---|
| 554 | #ifdef somId_wpclsQueryDefaultHelp
|
|---|
| 555 | #undef somId_wpclsQueryDefaultHelp
|
|---|
| 556 | #else
|
|---|
| 557 | #define somId_wpclsQueryDefaultHelp somId_M_WPImageFilewpclsQueryDefaultHelp
|
|---|
| 558 | #endif
|
|---|
| 559 | static somMethodProc* M_WPImageFile_parent_M_WPDataFile_wpclsQueryDefaultHelp_resolved;
|
|---|
| 560 | #define M_WPImageFile_parent_M_WPDataFile_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary) \
|
|---|
| 561 | ((( somTD_M_WPObject_wpclsQueryDefaultHelp ) \
|
|---|
| 562 | M_WPImageFile_parent_M_WPDataFile_wpclsQueryDefaultHelp_resolved) \
|
|---|
| 563 | (somSelf,pHelpPanelId,pszHelpLibrary))
|
|---|
| 564 | #ifndef SOMGD_pmc_M_WPDataFile_wpclsQueryDefaultHelp
|
|---|
| 565 | #ifdef parent_M_WPDataFile_wpclsQueryDefaultHelp
|
|---|
| 566 | #undef parent_M_WPDataFile_wpclsQueryDefaultHelp
|
|---|
| 567 | #define SOMGD_pmc_M_WPDataFile_wpclsQueryDefaultHelp 1
|
|---|
| 568 | #else
|
|---|
| 569 | #define parent_M_WPDataFile_wpclsQueryDefaultHelp M_WPImageFile_parent_M_WPDataFile_wpclsQueryDefaultHelp
|
|---|
| 570 | #endif /* parent_M_WPDataFile_wpclsQueryDefaultHelp */
|
|---|
| 571 | #endif /* SOMGD_pmc_M_WPDataFile_wpclsQueryDefaultHelp */
|
|---|
| 572 | #ifndef parent_wpclsQueryDefaultHelp
|
|---|
| 573 | #define parent_wpclsQueryDefaultHelp M_WPImageFile_parent_M_WPDataFile_wpclsQueryDefaultHelp
|
|---|
| 574 | #endif /* parent_wpclsQueryDefaultHelp */
|
|---|
| 575 | #define M_WPImageFile_parents_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary) (\
|
|---|
| 576 | M_WPImageFile_parent_M_WPDataFile_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary))
|
|---|
| 577 |
|
|---|
| 578 | /*
|
|---|
| 579 | * Initialize the class data structure
|
|---|
| 580 | */
|
|---|
| 581 | SOMEXTERN struct M_WPImageFileClassDataStructure SOMDLINK M_WPImageFileClassData = {(SOMAny *) NULL};
|
|---|
| 582 |
|
|---|
| 583 | /*
|
|---|
| 584 | * Define the C class data structure
|
|---|
| 585 | */
|
|---|
| 586 | SOMEXTERN struct M_WPImageFileCClassDataStructure SOMDLINK M_WPImageFileCClassData = {(somMethodTabs) NULL};
|
|---|
| 587 |
|
|---|
| 588 | /*
|
|---|
| 589 | * Routines and Structures to create the class object
|
|---|
| 590 | */
|
|---|
| 591 |
|
|---|
| 592 |
|
|---|
| 593 | /*
|
|---|
| 594 | * Declare the Override Methods table.
|
|---|
| 595 | */
|
|---|
| 596 | static somOverrideMethod_t M_WPImageFileOM[] = {
|
|---|
| 597 | { &somId_M_WPImageFilewpclsQueryInstanceType,
|
|---|
| 598 | (somMethodProc *) wpimgM_wpclsQueryInstanceType },
|
|---|
| 599 | { &somId_M_WPImageFilewpclsQueryStyle,
|
|---|
| 600 | (somMethodProc *) wpimgM_wpclsQueryStyle },
|
|---|
| 601 | { &somId_M_WPImageFilewpclsQueryTitle,
|
|---|
| 602 | (somMethodProc *) wpimgM_wpclsQueryTitle },
|
|---|
| 603 | { &somId_M_WPImageFilewpclsQueryDefaultHelp,
|
|---|
| 604 | (somMethodProc *) wpimgM_wpclsQueryDefaultHelp },
|
|---|
| 605 | };
|
|---|
| 606 |
|
|---|
| 607 |
|
|---|
| 608 | /*
|
|---|
| 609 | * Initializers for class Ids
|
|---|
| 610 | */
|
|---|
| 611 | static char * somCN_M_WPImageFile = "M_WPImageFile";
|
|---|
| 612 | static char * somPCN_M_WPImageFile_M_WPDataFile = "M_WPDataFile";
|
|---|
| 613 |
|
|---|
| 614 | static somId somPCM_WPImageFile[] = {
|
|---|
| 615 | &somPCN_M_WPImageFile_M_WPDataFile,
|
|---|
| 616 | };
|
|---|
| 617 |
|
|---|
| 618 | static somStaticClassInfo M_WPImageFileSCI = {
|
|---|
| 619 | 4, 0, 4, 0, 0, 0,
|
|---|
| 620 | M_WPImageFile_MajorVersion, M_WPImageFile_MinorVersion,
|
|---|
| 621 | 0, M_WPImageFile_MaxNoMethods, 1,
|
|---|
| 622 | &somCN_M_WPImageFile,
|
|---|
| 623 | (somId) NULL, 1,
|
|---|
| 624 | somPCM_WPImageFile,
|
|---|
| 625 | (somClassDataStructure *) &M_WPImageFileClassData,
|
|---|
| 626 | (somCClassDataStructure *) &M_WPImageFileCClassData,
|
|---|
| 627 | (somStaticMethod_t *) NULL, M_WPImageFileOM,
|
|---|
| 628 | (char *) NULL,
|
|---|
| 629 | (somNonInternalData_t *) NULL, (somProcMethods_t *) NULL,
|
|---|
| 630 | (somVarargsFuncs_t *) NULL,
|
|---|
| 631 | (somTP_somClassInitFunc *) NULL,
|
|---|
| 632 | 0, /* type code alignment */
|
|---|
| 633 | -1, /* use parents as directinitclasses */
|
|---|
| 634 | 0, /* no explicit directinitclasses */
|
|---|
| 635 | 0, /* number of general method entries */
|
|---|
| 636 | (somMethods_t *) NULL,
|
|---|
| 637 | 0, /* no public data offset */
|
|---|
| 638 | 0, /* no sci development level check */
|
|---|
| 639 | 0, /* number of SelectInheritedMethods */
|
|---|
| 640 | 0, /* no SelectInheritedMethods */
|
|---|
| 641 | 0, /* number of classdata entries */
|
|---|
| 642 | 0, /* no entry names provided currently */
|
|---|
| 643 | 0, /* number of migrated methods */
|
|---|
| 644 | 0, /* no migrated method implementations */
|
|---|
| 645 | 0, /* number of initializers */
|
|---|
| 646 | 0, /* no initializers */
|
|---|
| 647 | 0, /* used to identify a DTS class */
|
|---|
| 648 | 0, /* used to register dynamically computed info */
|
|---|
| 649 | };
|
|---|
| 650 |
|
|---|
| 651 |
|
|---|
| 652 | /*
|
|---|
| 653 | * Class Creation and Initialization
|
|---|
| 654 | */
|
|---|
| 655 |
|
|---|
| 656 | SOMClass * SOMLINK M_WPImageFileNewClass (integer4 somtmajorVersion,
|
|---|
| 657 | integer4 somtminorVersion)
|
|---|
| 658 | {
|
|---|
| 659 | SOMClass *result;
|
|---|
| 660 | M_WPDataFileNewClass(M_WPDataFile_MajorVersion,M_WPDataFile_MinorVersion); /* static reference */
|
|---|
| 661 | result = somBuildClass(1,&M_WPImageFileSCI, somtmajorVersion, somtminorVersion);
|
|---|
| 662 | M_WPImageFile_parent_M_WPDataFile_wpclsQueryDefaultHelp_resolved =
|
|---|
| 663 | somParentNumResolve(M_WPImageFileCClassData.parentMtab, 1, M_WPObjectClassData.wpclsQueryDefaultHelp);
|
|---|
| 664 | M_WPImageFile_parent_M_WPDataFile_wpclsQueryTitle_resolved =
|
|---|
| 665 | somParentNumResolve(M_WPImageFileCClassData.parentMtab, 1, M_WPObjectClassData.wpclsQueryTitle);
|
|---|
| 666 | M_WPImageFile_parent_M_WPDataFile_wpclsQueryStyle_resolved =
|
|---|
| 667 | somParentNumResolve(M_WPImageFileCClassData.parentMtab, 1, M_WPObjectClassData.wpclsQueryStyle);
|
|---|
| 668 | M_WPImageFile_parent_M_WPDataFile_wpclsQueryInstanceType_resolved =
|
|---|
| 669 | somParentNumResolve(M_WPImageFileCClassData.parentMtab, 1, M_WPFileSystemClassData.wpclsQueryInstanceType);
|
|---|
| 670 | return result;
|
|---|
| 671 | }
|
|---|
| 672 |
|
|---|
| 673 | /*
|
|---|
| 674 | * Functions for attributes.
|
|---|
| 675 | */
|
|---|
| 676 |
|
|---|
| 677 | #endif /* Primary Implementation Support */
|
|---|
| 678 | #pragma checkout(resume)
|
|---|
| 679 |
|
|---|
| 680 | #endif /* SOM_M_WPImageFile_ih */
|
|---|