![]() |
ATLAS Offline Software
|
#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 More... | |
Public Member Functions | |
| DeclareInterfaceID (IIoSvc, 1, 0) | |
| InterfaceID. More... | |
| virtual | ~IIoSvc () |
| Destructor: More... | |
| virtual Fd | open (const std::string &fname, IoType mode)=0 |
open file fname with open mode mode More... | |
| virtual StatusCode | close (Fd fd)=0 |
close file fd More... | |
| virtual bool | has_fd (Fd fd) const =0 |
test if a given file descriptor fd is known to us More... | |
| virtual Fd | fd (const std::string &fname) const =0 |
retrieve the file descriptor associated with file fname More... | |
| virtual const std::string & | fname (Fd fd) const =0 |
retrieve the file fname associated with file descriptor fd More... | |
| virtual IoType | mode (Fd fd) const =0 |
retrieve the open mode associated with file descriptor fd More... | |
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 |
|
pure virtual |
close file fd
| IIoSvc::DeclareInterfaceID | ( | IIoSvc | , |
| 1 | , | ||
| 0 | |||
| ) |
InterfaceID.
retrieve the file descriptor associated with file fname
fname is known retrieve the file fname associated with file descriptor fd
fd is known
|
pure virtual |
test if a given file descriptor fd is known to us
retrieve the open mode associated with file descriptor fd
open file fname with open mode mode
1.8.18