libmoost
/home/mhx/git/github/libmoost/include/moost/service/detail/dummy_stream_stealer.h
Go to the documentation of this file.
00001 /* vim:set ts=3 sw=3 sts=3 et: */
00028 #ifndef FM_LAST_MOOST_SERVICE_DETAIL_DUMMY_STREAM_STEALER
00029 #define FM_LAST_MOOST_SERVICE_DETAIL_DUMMY_STREAM_STEALER
00030 
00031 namespace moost { namespace service { namespace detail {
00032 
00033 class posix_stream_stealer
00034 {
00035 public:
00036    posix_stream_stealer(bool, bool)
00037    {
00038    }
00039 
00040    bool steal(FILE *);
00041 
00042    bool restore(bool)
00043    {
00044       return true;
00045    }
00046 
00047    int get_pipe_fd() const
00048    {
00049       return -1;
00050    }
00051 
00052    int get_backup_fd() const
00053    {
00054       return -1;
00055    }
00056 };
00057 
00058 } } }
00059 
00060 #endif