kwsys_ios_fstream.h.in 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*=========================================================================
  2. Program: KWSys - Kitware System Library
  3. Module: $RCSfile$
  4. Copyright (c) Kitware, Inc., Insight Consortium. All rights reserved.
  5. See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even
  7. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  8. PURPOSE. See the above copyright notices for more information.
  9. =========================================================================*/
  10. #ifndef @KWSYS_NAMESPACE@_ios_fstream
  11. #define @KWSYS_NAMESPACE@_ios_fstream
  12. #include <@KWSYS_NAMESPACE@/Configure.hxx>
  13. #ifdef _MSC_VER
  14. #pragma warning (push, 1)
  15. #pragma warning (disable: 4702)
  16. #endif
  17. #if @KWSYS_NAMESPACE@_IOS_USE_ANSI
  18. # include <fstream>
  19. #else
  20. # include <fstream.h>
  21. #endif
  22. #if !@KWSYS_NAMESPACE@_IOS_USE_SSTREAM
  23. namespace @KWSYS_NAMESPACE@_ios
  24. {
  25. using @KWSYS_NAMESPACE@_ios_namespace::ostream;
  26. using @KWSYS_NAMESPACE@_ios_namespace::istream;
  27. using @KWSYS_NAMESPACE@_ios_namespace::ofstream;
  28. using @KWSYS_NAMESPACE@_ios_namespace::ifstream;
  29. using @KWSYS_NAMESPACE@_ios_namespace::ios;
  30. using @KWSYS_NAMESPACE@_ios_namespace::endl;
  31. using @KWSYS_NAMESPACE@_ios_namespace::flush;
  32. }
  33. #endif
  34. #ifdef _MSC_VER
  35. #pragma warning(pop)
  36. #endif
  37. #endif