home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / compiler / dts / xhmain / dtsdll / info.hh next >
Encoding:
Text File  |  1996-02-20  |  991 b   |  48 lines

  1. #include <som.hh>   
  2.  
  3. //
  4. // All SOM classes must directly or indirectly inherit from class SOMObject.
  5. //
  6.  
  7. #ifndef EXorIMP_Info
  8. #define EXorIMP_Info _Import
  9. #endif
  10.  
  11. class EXorIMP_Info Info : public SOMObject
  12. {
  13. //
  14. // Specify the SOM name for a class, as it would appear in IDL, using 
  15. // pragma SOMClassName. Otherwise, Info's SOM class name would be z-mangled 
  16. // to zinfo.
  17. //
  18.  
  19.    #pragma SOMClassName(*, "info")
  20.    public:
  21.  
  22. //
  23. // All SOM classes must declare a default constructor. If you don't specify
  24. // one, VA for C++ automatically declares one for you.
  25. //
  26.  
  27.       Info();
  28.  
  29. //
  30. // To access instance data indirectly via get/set methods use pragma 
  31. // SOMAttribute.
  32. //
  33.  
  34.       short    x;
  35.       #pragma SOMAttribute(x)
  36.  
  37.       char     y;
  38.       #pragma SOMAttribute(y)
  39.  
  40. //
  41. // To ensure version-to-version backwards binary-compatibility between 
  42. // a changing class definition, use pragma SOMReleaseOrder.
  43. //
  44.  
  45. #pragma SOMReleaseOrder( x, y )
  46. };
  47.  
  48.