home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / TRANSLTB.IDL < prev    next >
Text File  |  1995-12-13  |  3KB  |  81 lines

  1. /********************************************************************/
  2. /*  Licensed Materials - Property of IBM                            */
  3. /*                                                                  */
  4. /*                                                                  */
  5. /* Copyright (C) International Business Machines Corp., 1994.       */
  6. /* Copyright (C) Apple Computer, Inc., 1994                         */
  7. /*                                                                  */
  8. /*  US Government Users Restricted Rights -                         */
  9. /*  Use, duplication, or disclosure restricted                      */
  10. /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  11. /*                                                                  */
  12. /*                                                                  */
  13. /********************************************************************/
  14.  
  15.  
  16. #ifndef _TRANSLTB_
  17. #define _TRANSLTB_
  18.  
  19. #ifndef _ODOBJECT_
  20. #include "ODObject.idl"
  21. #endif
  22.  
  23. //=====================================================================================
  24. // Classes defined in this interface
  25. //=====================================================================================
  26. interface ODBaseTranslation;
  27.  
  28. //=====================================================================================
  29. // Classes used by this interface
  30. //=====================================================================================
  31. interface ODTypeList;
  32. interface ODStorageUnitView;
  33. interface ODSession;
  34.  
  35. //=====================================================================================
  36. // Class ODBaseTranslation
  37. //=====================================================================================
  38.  
  39. interface ODBaseTranslation :  ODObject
  40. {
  41.  
  42.     ODTranslateResult CanTranslate(in ODValueType fromType);
  43.  
  44.     ODTypeList GetTranslationOf(in ODValueType fromType);
  45.  
  46.     ODTranslateResult TranslateView(in ODStorageUnitView fromView,
  47.                                 in ODStorageUnitView toView);
  48.  
  49.     ODTranslateResult Translate(in ODValueType fromType,
  50.                                 in ODByteArray fromData,
  51.                                 in ODValueType  toType,
  52.                                 out ODByteArray toData);
  53.  
  54.     ODValueType GetISOTypeFromPlatformType(in ODPlatformType platformType,
  55.                                         in ODPlatformTypeSpace typeSpace);
  56.  
  57.     ODPlatformType GetPlatformTypeFromISOType(in ODValueType type);
  58.  
  59. #ifdef __SOMIDL__
  60.   implementation
  61.   {
  62.       functionprefix = ODBaseTranslation;
  63.       override:
  64.         Purge,
  65.         somInit,
  66.         somUninit;
  67.     releaseorder:
  68.         reserved1,
  69.         CanTranslate,
  70.         GetTranslationOf,
  71.         TranslateView,
  72.         Translate,
  73.         GetISOTypeFromPlatformType,
  74.         GetPlatformTypeFromISOType;
  75.   };
  76. #endif
  77.  
  78. };
  79.  
  80. #endif    // _TRANSLTB_
  81.