rasdaman complete source
Public Member Functions | List of all members
akg::File Class Reference

#include <akgnet_file.hh>

Inheritance diagram for akg::File:
akg::FileDescriptor

Public Member Functions

 File () throw ()
 Default constructor. More...
 
 File (int osFileDescriptor) throw ()
 
void connectToDescriptor (int osFileDescriptor) throw ()
 
- Public Member Functions inherited from akg::FileDescriptor
 ~FileDescriptor () throw ()
 Destructor, if open, closes the file descriptor. More...
 
int operator() () throw ()
 Returns the OS file descriptor. More...
 
bool isOpen () throw ()
 
void close () throw ()
 Closes the descriptor. More...
 
int getErrno () throw ()
 Returns the error number of the last operation. More...
 
int write (const void *buffer, int count) throw ()
 
int read (void *buffer, int count) throw ()
 
bool setNonBlocking (bool nonBlocking) throw ()
 
bool isNonBlocking () throw ()
 Returns true if the descriptors is in non-blocking mode. More...
 

Additional Inherited Members

- Protected Member Functions inherited from akg::FileDescriptor
 FileDescriptor () throw ()
 Protected constructor. More...
 
void saveErrno () throw ()
 Saves the errno. More...
 
- Protected Attributes inherited from akg::FileDescriptor
int fileDescriptor
 
int savedErrno
 

Detailed Description

This class represents the files in the file descriptor hierarchie. Since this is a network library, our concearn is only for the descriptor of the files. The primary use of this class is access to file descriptors opened in other ways than sockets, like stdin or stdout

Constructor & Destructor Documentation

akg::File::File ( )
throw (
)

Default constructor.

akg::File::File ( int  osFileDescriptor)
throw (
)

Constructor taking an already opened file descriptor Assert: osFileDescriptor > 0

Member Function Documentation

void akg::File::connectToDescriptor ( int  osFileDescriptor)
throw (
)

Connect to an already opened file descriptor Assert: osFileDescriptor > 0


The documentation for this class was generated from the following file: