![]() |
ATLAS Offline Software
|
is a registry of file handles, storing their name and openmode. More...
#include <IIoSvc.h>
Public Types | |
| enum | IoType { INVALID = 0 , READ = 1<<1 , UPDATE = 1<<2 , CREATE = 1<<3 , RECREATE = (1<<4)+(1<<3) } |
| I/O Connection types. More... | |
| typedef int | Fd |
| unix-y file descriptor | |
Public Member Functions | |
| DeclareInterfaceID (IIoSvc, 1, 0) | |
| InterfaceID. | |
| virtual | ~IIoSvc () |
| Destructor: | |
| virtual Fd | open (const std::string &fname, IoType mode)=0 |
| open file fname with open mode mode | |
| virtual StatusCode | close (Fd fd)=0 |
| close file fd | |
| virtual bool | has_fd (Fd fd) const =0 |
| test if a given file descriptor fd is known to us | |
| virtual Fd | fd (const std::string &fname) const =0 |
| retrieve the file descriptor associated with file fname | |
| virtual const std::string & | fname (Fd fd) const =0 |
| retrieve the file fname associated with file descriptor fd | |
| virtual IoType | mode (Fd fd) const =0 |
| retrieve the open mode associated with file descriptor fd | |
Static Public Member Functions | |
| static const std::string & | IoTypeName (IoType mode) |
| static IoType | IoTypeFromName (const std::string &name) |
is a registry of file handles, storing their name and openmode.
| typedef int IIoSvc::Fd |
| enum IIoSvc::IoType |
|
virtual |
| IIoSvc::DeclareInterfaceID | ( | IIoSvc | , |
| 1 | , | ||
| 0 | ) |
InterfaceID.
|
pure virtual |
test if a given file descriptor fd is known to us
retrieve the open mode associated with file descriptor fd