Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FXPipe.h
Go to the documentation of this file.
1 /********************************************************************************
2 * *
3 * P i p e C l a s s *
4 * *
5 *********************************************************************************
6 * Copyright (C) 2005,2006 by Jeroen van der Zijp. All Rights Reserved. *
7 *********************************************************************************
8 * This library is free software; you can redistribute it and/or *
9 * modify it under the terms of the GNU Lesser General Public *
10 * License as published by the Free Software Foundation; either *
11 * version 2.1 of the License, or (at your option) any later version. *
12 * *
13 * This library is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16 * Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public *
19 * License along with this library; if not, write to the Free Software *
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
21 *********************************************************************************
22 * $Id: FXPipe.h,v 1.7.2.1 2007/08/02 21:31:17 fox Exp $ *
23 ********************************************************************************/
24 #ifndef FXPIPE_H
25 #define FXPIPE_H
26 
27 #ifndef FXIO_H
28 #include "FXIO.h"
29 #endif
30 
31 
32 //////////////////////////// UNDER DEVELOPMENT ////////////////////////////////
33 
34 
35 namespace FX {
36 
37 
38 /**
39 * Pipe i/o device.
40 */
41 class FXAPI FXPipe : public FXIO {
42 private:
43  FXPipe(const FXPipe&);
44  FXPipe &operator=(const FXPipe&);
45 public:
46 
47  /// Construct socket
48  FXPipe(){ }
49 
50  /// Construct file and attach existing handle h
51  FXPipe(FXInputHandle handle,FXuint mode);
52 
53  /// Open device with access mode and handle
54  virtual bool open(FXInputHandle handle,FXuint mode);
55 
56  /// Read block of bytes, returning number of bytes read
57  virtual FXival readBlock(void* data,FXival count);
58 
59  /// Write block of bytes, returning number of bytes written
60  virtual FXival writeBlock(const void* data,FXival count);
61 
62  /// Close socket
63  virtual bool close();
64 
65  /// Create a named pipe
67 
68  /// Destroy
69  virtual ~FXPipe();
70  };
71 
72 }
73 
74 #endif
unsigned int FXuint
Definition: fxdefs.h:396
Others have read and write permission.
Definition: FXIO.h:47
#define FXAPI
Definition: fxdefs.h:122
long FXival
Definition: fxdefs.h:435
Definition: FX4Splitter.h:31
Group has read and write permission.
Definition: FXIO.h:53
FXint FXInputHandle
Definition: fxdefs.h:468
Owner has read and write permission.
Definition: FXIO.h:59
Pipe i/o device.
Definition: FXPipe.h:41
FXIO manipulates a handle to an abstract i/o device.
Definition: FXIO.h:37
FXString provides essential string manipulation capabilities.
Definition: FXString.h:33

Copyright © 1997-2005 Jeroen van der Zijp