pipestream.h 1.1 KB

1234567891011121314151617181920212223242526272829
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/private/pipestream.h
  3. // Purpose: Declares wxPipeInputStream and wxPipeOutputStream.
  4. // Author: Vadim Zeitlin
  5. // Modified by: Rob Bresalier
  6. // Created: 2013-04-27
  7. // Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
  8. // (c) 2013 Rob Bresalier
  9. // Licence: wxWindows licence
  10. ///////////////////////////////////////////////////////////////////////////////
  11. #ifndef _WX_PRIVATE_PIPESTREAM_H_
  12. #define _WX_PRIVATE_PIPESTREAM_H_
  13. #include "wx/platform.h"
  14. // wxPipeInputStream is a platform-dependent input stream class (i.e. deriving,
  15. // possible indirectly, from wxInputStream) for reading from a pipe, i.e. a
  16. // pipe FD under Unix or a pipe HANDLE under MSW. It provides a single extra
  17. // IsOpened() method.
  18. //
  19. // wxPipeOutputStream is similar but has no additional methods at all.
  20. #if defined(__UNIX__) && !defined(__WINDOWS__)
  21. #include "wx/unix/private/pipestream.h"
  22. #elif defined(__WINDOWS__) && !defined(__WXWINCE__)
  23. #include "wx/msw/private/pipestream.h"
  24. #endif
  25. #endif // _WX_PRIVATE_PIPESTREAM_H_