WindowsStreams.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2005 Palmsource, Inc.
00003  * 
00004  * This software is licensed as described in the file LICENSE, which
00005  * you should have received as part of this distribution. The terms
00006  * are also available at http://www.openbinder.org/license.html.
00007  * 
00008  * This software consists of voluntary contributions made by many
00009  * individuals. For the exact contribution history, see the revision
00010  * history and logs, available at http://www.openbinder.org
00011  */
00012 
00013 #ifndef _SUPPORT2_WINDOWSSTREAMS_H
00014 #define _SUPPORT2_WINDOWSSTREAMS_H
00015 
00016 #include <sys/uio.h>
00017 #include <support/SupportDefs.h>
00018 #include <support/ByteStream.h>
00019 
00020 #if _SUPPORTS_NAMESPACE
00021 namespace palmos {
00022 namespace support {
00023 #endif
00024 
00025 /*---------------------------------------------------------------------*/
00026 
00027 class BWindowsOutputStream : public BnByteOutput
00028 {
00029     public:
00030                                 BWindowsOutputStream();
00031         virtual                 ~BWindowsOutputStream();
00032         
00033         virtual ssize_t         WriteV(const struct iovec *vector, ssize_t count, uint32_t flags = 0);
00034         virtual status_t        Sync();
00035 
00036     private:
00037 };
00038 
00039 /*-------------------------------------------------------------*/
00040 
00041 class BWindowsInputStream : public BnByteInput
00042 {
00043     public:
00044                                 BWindowsInputStream();
00045         virtual                 ~BWindowsInputStream();
00046         
00047         virtual ssize_t         ReadV(const struct iovec *vector, ssize_t count);
00048 
00049     private:
00050 };
00051 
00052 /*-------------------------------------------------------------*/
00053 
00054 #if _SUPPORTS_NAMESPACE
00055 } } // namespace palmos::support
00056 #endif
00057 
00058 #endif /* _SUPPORT2_WINDOWSSTREAMS_H */