home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / OS / FWODMisc / Sources / FWSUSink.cpp < prev    next >
Encoding:
Text File  |  1996-08-16  |  2.9 KB  |  77 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWSUSink.cpp
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #include "FWOS.hpp"
  11.  
  12. #ifndef FWSUSINK_H
  13. #include "FWSUSink.h"
  14. #endif
  15.  
  16. #if defined(__MWERKS__) && GENERATING68K
  17. // A hack to work around a bug
  18. #pragma import list somNewObjectInstance
  19. #endif
  20.  
  21. //========================================================================================
  22. //    Runtime Informations
  23. //========================================================================================
  24.  
  25. #ifdef FW_BUILD_MAC    
  26. #pragma segment fwodmisc
  27. #endif
  28.  
  29. //========================================================================================
  30. //    RunTime Info
  31. //========================================================================================
  32.  
  33. #ifdef FW_BUILD_MAC
  34. #pragma segment fwodmisc
  35. #endif
  36.  
  37. //========================================================================================
  38. //    CLASS FW_PStorageUnitSink
  39. //========================================================================================
  40.  
  41.  
  42. //----------------------------------------------------------------------------------------
  43. //    FW_PStorageUnitSink::FW_PStorageUnitSink
  44. //----------------------------------------------------------------------------------------
  45. FW_PStorageUnitSink::FW_PStorageUnitSink(Environment* ev, FW_OStorageUnitSink* theStorageUnitSink) :
  46.     FW_PRandomAccessSink(ev, theStorageUnitSink)
  47. {
  48. }
  49.  
  50. //----------------------------------------------------------------------------------------
  51. //    FW_PStorageUnitSink::FW_PStorageUnitSink
  52. //----------------------------------------------------------------------------------------
  53. FW_PStorageUnitSink::FW_PStorageUnitSink(Environment* ev, ODStorageUnitView* storageUnitView) :
  54.     FW_PRandomAccessSink(ev, new FW_OStorageUnitSink())
  55. {
  56.     ((FW_OStorageUnitSink*)GetRep())->InitFromStorageUnitView(ev, storageUnitView);
  57. }
  58.  
  59. //----------------------------------------------------------------------------------------
  60. //    FW_PStorageUnitSink::FW_PStorageUnitSink
  61. //----------------------------------------------------------------------------------------
  62. FW_PStorageUnitSink::FW_PStorageUnitSink(Environment* ev, 
  63.                                          ODStorageUnit* storageUnit, 
  64.                                          ODPropertyName propertyName, 
  65.                                          ODValueType valueType) :
  66.     FW_PRandomAccessSink(ev, new FW_OStorageUnitSink())
  67. {
  68.     ((FW_OStorageUnitSink*)GetRep())->InitFromStorageUnitAndProperty(ev, storageUnit, propertyName, valueType);
  69. }
  70.  
  71. //----------------------------------------------------------------------------------------
  72. //    FW_PStorageUnitSink::~FW_PStorageUnitSink
  73. //----------------------------------------------------------------------------------------
  74. FW_PStorageUnitSink::~FW_PStorageUnitSink()
  75. {
  76. }
  77.