#include <IoSvc.h>
Definition at line 30 of file IoSvc.h.
◆ Fd
◆ FdMap_t
◆ IoSvc() [1/2]
IoSvc::IoSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
Constructor with parameters:
Definition at line 31 of file IoSvc.cxx.
33 base_class(
name, pSvcLocator ),
◆ ~IoSvc()
◆ IoSvc() [2/2]
◆ close()
StatusCode IoSvc::close |
( |
Fd |
fd | ) |
|
|
overridevirtual |
close file fd
Definition at line 147 of file IoSvc.cxx.
149 FdMap_t::const_iterator itr =
m_fds.find(
fd);
150 if (itr !=
m_fds.end()) {
152 return StatusCode::SUCCESS;
154 return StatusCode::FAILURE;
◆ fd()
Fd IoSvc::fd |
( |
const std::string & |
fname | ) |
const |
|
overridevirtual |
retrieve the file descriptor associated with file fname
- Returns
- -1 if no such
fname
is known
Definition at line 79 of file IoSvc.cxx.
81 for (FdMap_t::const_iterator
86 if (itr->second.fname ==
fname) {
◆ finalize()
StatusCode IoSvc::finalize |
( |
| ) |
|
|
overridevirtual |
Definition at line 58 of file IoSvc.cxx.
62 return StatusCode::SUCCESS;
◆ fname()
const std::string & IoSvc::fname |
( |
Fd |
fd | ) |
const |
|
overridevirtual |
retrieve the file fname
associated with file descriptor fd
- Returns
- empty string if no such
fd
is known
Definition at line 96 of file IoSvc.cxx.
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 =
"";
◆ has_fd()
bool IoSvc::has_fd |
( |
Fd |
fd | ) |
const |
|
overridevirtual |
test if a given file descriptor fd
is known to us
Definition at line 71 of file IoSvc.cxx.
◆ initialize()
StatusCode IoSvc::initialize |
( |
| ) |
|
|
overridevirtual |
◆ mode()
retrieve the open mode associated with file descriptor fd
Definition at line 108 of file IoSvc.cxx.
110 FdMap_t::const_iterator itr =
m_fds.find(
fd);
111 if (itr !=
m_fds.end()) {
112 return itr->second.mode;
◆ open()
open file fname
with open mode mode
- Returns
- -1 if not successful
Definition at line 120 of file IoSvc.cxx.
132 m_fds.insert(std::make_pair(
fd, infos));
◆ SvcFactory< IoSvc >
◆ m_fds
map of fd->fdinfos
Definition at line 101 of file IoSvc.h.
◆ m_last_fd
last created Fd
Definition at line 104 of file IoSvc.h.
The documentation for this class was generated from the following files: