home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / som / somk / c / tp / bt.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-01-24  |  1.2 KB  |  53 lines

  1.  
  2. /*
  3.  *  This file was generated by the SOM Compiler.
  4.  *  Generated using:
  5.  *     SOM incremental update: 6.34
  6.  */
  7.  
  8. #ifndef lint
  9. static char *sccsid = "%Z% %I% %W% %G% %U% [%H% %T%] (c)IBM Corp. 1992";
  10. #endif
  11.  
  12. /*
  13.  * This class is adapted from the book
  14.  *   Class Construction in C and C++, Object Oriented Fundamentals
  15.  *   by Roger Sessions, Copyright (c) 1992 Prentice Hall.
  16.  * Reprinted with permission.
  17.  */
  18.  
  19. #define baseType_Class_Source
  20. #if defined(_WIN32)
  21. #include "statcls.h"
  22. #endif
  23. #include "bt.ih"
  24. #include "helper.h"
  25.  
  26. /*
  27.  *   Returns TRUE if the target object matches target,
  28.  *   FALSE otherwise.
  29.  */
  30.  
  31. SOM_Scope boolean SOMLINK match(baseType * somSelf,
  32.                  string target)
  33. {
  34.     /* baseTypeData *somThis = baseTypeGetData(somSelf); */
  35.     baseTypeMethodDebug("baseType", "match");
  36.     shouldHaveOverridden(somSelf, "match");
  37.     SOM_IgnoreWarning (target);
  38.     return FALSE;
  39. }
  40.  
  41. /*
  42.  *    Prints the target object in some reasonable format.
  43.  */
  44.  
  45. SOM_Scope void SOMLINK print(baseType * somSelf,
  46.                   FILE * outputFile)
  47. {
  48.     /* baseTypeData *somThis = baseTypeGetData(somSelf); */
  49.     baseTypeMethodDebug("baseType", "print");
  50.     shouldHaveOverridden(somSelf, "print");
  51.     SOM_IgnoreWarning (outputFile);
  52. }
  53.