home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / idocstor.inl < prev    next >
Encoding:
Text File  |  1996-02-22  |  2.0 KB  |  68 lines

  1. #ifndef _IDOCSTOR_INL_
  2. #define _IDOCSTOR_INL_ 0
  3. /*******************************************************************************
  4. * FILE NAME: idocstor.inl                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   This file contains the definition of the inline functions for the          *
  8. *   classes declared in idocstor.hpp.                                          *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   IBM Open Class Library                                                     *
  12. *   (C) Copyright International Business Machines Corporation 1992, 1996       *
  13. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  14. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  15. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  16. *                                                                              *
  17. *******************************************************************************/
  18. #ifndef _IDOCSTOR_
  19.   #undef  _IDOCSTOR_INL_
  20.   #define _IDOCSTOR_INL_ 1
  21.   #include <idocstor.hpp>
  22. #endif
  23.  
  24. #if _IDOCSTOR_INL_
  25.   #define inline
  26. #endif
  27.  
  28.  
  29. //===============================================================================
  30. //
  31. // inline members of class IDocumentStorage
  32. //
  33.  
  34. inline
  35. const IString&
  36. IDocumentStorage::fileName() const
  37. {
  38.     return fFileName;
  39. }
  40.  
  41. inline
  42. IString
  43. IDocumentStorage::fileToUse( const char* name ) const
  44. {
  45.     if (name)
  46.         return name;
  47.     else
  48.         return fFileName;
  49. }
  50.  
  51. inline
  52. CAswStorage*
  53. IDocumentStorage::storage() const
  54. {
  55.     return fpStorage;
  56. }
  57.  
  58. inline
  59. IComponent&
  60. IDocumentStorage::component() const
  61. {
  62.     return *fpComponent;
  63. }
  64.  
  65.  
  66. #endif /* _IDOCSTOR_INL_ */
  67.  
  68.