|
ATLAS Offline Software
|
Go to the documentation of this file.
19 #include "Gaudi/Property.h"
32 ISvcLocator* pSvcLocator ) :
33 base_class(
name, pSvcLocator ),
55 return StatusCode::SUCCESS;
62 return StatusCode::SUCCESS;
81 for (FdMap_t::const_iterator
86 if (itr->second.fname ==
fname) {
98 FdMap_t::const_iterator itr =
m_fds.find(
fd);
99 if (itr !=
m_fds.end()) {
100 return itr->second.fname;
102 static const std::string s_empty =
"";
110 FdMap_t::const_iterator itr =
m_fds.find(
fd);
111 if (itr !=
m_fds.end()) {
112 return itr->second.mode;
132 m_fds.insert(std::make_pair(
fd, infos));
149 FdMap_t::const_iterator itr =
m_fds.find(
fd);
150 if (itr !=
m_fds.end()) {
152 return StatusCode::SUCCESS;
154 return StatusCode::FAILURE;
virtual Fd fd(const std::string &fname) const override
retrieve the file descriptor associated with file fname
virtual Fd open(const std::string &fname, IoType mode) override
open file fname with open mode mode
virtual bool has_fd(Fd fd) const override
test if a given file descriptor fd is known to us
IoType
I/O Connection types.
::StatusCode StatusCode
StatusCode definition for legacy code.
Fd m_last_fd
last created Fd
virtual IoType mode(Fd fd) const override
retrieve the open mode associated with file descriptor fd
virtual StatusCode close(Fd fd) override
close file fd
virtual ~IoSvc()
Destructor:
virtual const std::string & fname(Fd fd) const override
retrieve the file fname associated with file descriptor fd
virtual StatusCode finalize() override
virtual StatusCode initialize() override
Gaudi Service Implementation.
int Fd
unix-y file descriptor
IoSvc()
Default constructor:
FdMap_t m_fds
map of fd->fdinfos