![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
00001 /******************************************************************************** 00002 * * 00003 * P i p e C l a s s * 00004 * * 00005 ********************************************************************************* 00006 * Copyright (C) 2005,2012 by Jeroen van der Zijp. All Rights Reserved. * 00007 ********************************************************************************* 00008 * This library is free software; you can redistribute it and/or modify * 00009 * it under the terms of the GNU Lesser General Public License as published by * 00010 * the Free Software Foundation; either version 3 of the License, or * 00011 * (at your option) any later version. * 00012 * * 00013 * This library is distributed in the hope that it will be useful, * 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00016 * GNU Lesser General Public License for more details. * 00017 * * 00018 * You should have received a copy of the GNU Lesser General Public License * 00019 * along with this program. If not, see <http://www.gnu.org/licenses/> * 00020 ********************************************************************************/ 00021 #ifndef FXPIPE_H 00022 #define FXPIPE_H 00023 00024 #ifndef FXIODEVICE_H 00025 #include "FXIODevice.h" 00026 #endif 00027 00028 00030 00031 00032 namespace FX { 00033 00034 00038 class FXAPI FXPipe : public FXIODevice { 00039 private: 00040 FXPipe(const FXPipe&); 00041 FXPipe &operator=(const FXPipe&); 00042 public: 00043 00045 FXPipe(){ } 00046 00048 FXPipe(FXInputHandle h,FXuint m); 00049 00051 virtual FXbool open(FXInputHandle h,FXuint m); 00052 00054 virtual FXival readBlock(void* data,FXival count); 00055 00057 virtual FXival writeBlock(const void* data,FXival count); 00058 00060 virtual FXbool close(); 00061 00063 static FXbool create(const FXString& file,FXuint perm=FXIO::AllReadWrite); 00064 00066 virtual ~FXPipe(); 00067 }; 00068 00069 } 00070 00071 #endif
|
|