|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef ATHENAKERNEL_IIOSVC_H
12 #define ATHENAKERNEL_IIOSVC_H 1
18 #include "GaudiKernel/IService.h"
28 :
virtual public ::IService
51 static std::map<IoType, std::string> s_names;
52 if (s_names.empty()) {
54 s_names[
READ] =
"READ";
55 s_names[
UPDATE] =
"UPDATE";
56 s_names[
CREATE] =
"CREATE";
64 static std::map<std::string, IoType> s_names;
65 if (s_names.empty()) {
67 s_names[
"READ"] =
READ;
68 s_names[
"UPDATE"] =
UPDATE;
69 s_names[
"CREATE"] =
CREATE;
121 #endif //> !ATHENAKERNEL_IIOSVC_H
static const std::string & IoTypeName(IoType mode)
virtual Fd open(const std::string &fname, IoType mode)=0
open file fname with open mode mode
virtual ~IIoSvc()
Destructor:
virtual bool has_fd(Fd fd) const =0
test if a given file descriptor fd is known to us
DeclareInterfaceID(IIoSvc, 1, 0)
InterfaceID.
virtual const std::string & fname(Fd fd) const =0
retrieve the file fname associated with file descriptor fd
IoType
I/O Connection types.
virtual StatusCode close(Fd fd)=0
close file fd
::StatusCode StatusCode
StatusCode definition for legacy code.
static IoType IoTypeFromName(const std::string &name)
virtual IoType mode(Fd fd) const =0
retrieve the open mode associated with file descriptor fd
int Fd
unix-y file descriptor
virtual Fd fd(const std::string &fname) const =0
retrieve the file descriptor associated with file fname