rasdaman complete source
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
network
akgnet_fdescr.hh
Go to the documentation of this file.
1
/*
2
* This file is part of rasdaman community.
3
*
4
* Rasdaman community is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
*
9
* Rasdaman community is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with rasdaman community. If not, see <http://www.gnu.org/licenses/>.
16
*
17
* Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Peter Baumann /
18
rasdaman GmbH.
19
*
20
* For more information please see <http://www.rasdaman.org>
21
* or contact Peter Baumann via <baumann@rasdaman.com>.
22
/
34
#ifndef AKGNET_FDESCR_HH
35
#define AKGNET_FDESCR_HH
36
37
#include "akgnet_common.hh"
38
39
namespace akg
40
{
41
53
class FileDescriptor
54
{
55
public:
57
~FileDescriptor() throw();
58
60
int operator()() throw ();
61
67
bool isOpen() throw();
68
70
void close() throw();
71
73
int getErrno() throw();
74
79
int write(const void *buffer, int count) throw();
80
85
int read (void *buffer, int count) throw();
86
90
bool setNonBlocking(bool nonBlocking) throw();
91
93
bool isNonBlocking() throw();
94
protected:
96
FileDescriptor() throw();
97
99
void saveErrno() throw();
100
101
int fileDescriptor;
102
int savedErrno;
103
private:
105
FileDescriptor(const FileDescriptor&);
107
FileDescriptor& operator=(const FileDescriptor&);
108
};
109
110
} // namespace
111
#endif
Generated on Sat Mar 7 2015 23:57:58 for rasdaman complete source by
1.8.8