#include <fReadDavix.h>
Definition at line 12 of file fReadDavix.h.
◆ fReadDavix()
fReadDavix::fReadDavix |
( |
| ) |
|
Definition at line 33 of file fReadDavix.cxx.
41 m_pos =
new Davix::DavPosix(&
m_c);
46 const char *env_var = NULL;
47 if( ( env_var =
std::getenv(
"X509_CERT_DIR")) == NULL){
48 env_var =
"/etc/grid-security/certificates/";
52 m_cert =
new Davix::X509Credential();
53 m_davixParam->setClientCertCallbackX509(&TDavixFile_http_authn_cert_X509, NULL);
◆ ~fReadDavix()
fReadDavix::~fReadDavix |
( |
| ) |
|
◆ closeFile()
void fReadDavix::closeFile |
( |
| ) |
|
◆ fileExists()
bool fReadDavix::fileExists |
( |
std::string |
fName | ) |
const |
Definition at line 74 of file fReadDavix.cxx.
76 Davix::DavixError* err2 = NULL;
78 if(pfd == 0)
return false;
79 m_pos->close(pfd, &err2);
◆ getPosition()
int64_t fReadDavix::getPosition |
( |
| ) |
|
◆ isEoF()
bool fReadDavix::isEoF |
( |
| ) |
|
◆ isOpen()
bool fReadDavix::isOpen |
( |
| ) |
|
◆ newReader()
fRead * fReadDavix::newReader |
( |
| ) |
const |
◆ openFile()
void fReadDavix::openFile |
( |
std::string |
fName | ) |
|
◆ readData()
void fReadDavix::readData |
( |
char * |
buffer, |
|
|
unsigned int |
sizeBytes |
|
) |
| |
Definition at line 98 of file fReadDavix.cxx.
100 if (sizeBytes==0)
return;
103 unsigned int totalRead=0,ntry=0;
104 while(sizeBytes > totalRead)
108 std::stringstream mystream;
109 mystream <<
"fReadDavix::readData: can not read data with davix " <<
m_err->getErrMsg().c_str() <<
" " <<
m_err->getStatus();
110 Davix::DavixError::clearError(&
m_err);
111 EventStorage::ReadingIssue ci(ERS_HERE, mystream.str().c_str());
117 totalRead += ret; ++ntry;
119 std::stringstream mystream;
120 mystream <<
"Problem reading from the data file. "
121 <<
"fReadDavix::readData asked to read "<<sizeBytes
122 <<
" bytes and managed to read only "<<totalRead
124 EventStorage::ReadingIssue ci(ERS_HERE, mystream.str().c_str());
◆ setPosition()
void fReadDavix::setPosition |
( |
int64_t |
p | ) |
|
◆ setPositionFromEnd()
void fReadDavix::setPositionFromEnd |
( |
int64_t |
p | ) |
|
◆ ATLAS_THREAD_SAFE
Davix::DavPosix* m_pos fReadDavix::ATLAS_THREAD_SAFE |
|
private |
◆ m_c
Davix::Context fReadDavix::m_c |
|
private |
◆ m_cert
Davix::X509Credential* fReadDavix::m_cert |
|
private |
◆ m_davixParam
Davix::RequestParams* fReadDavix::m_davixParam |
|
private |
◆ m_err
Davix::DavixError* fReadDavix::m_err |
|
private |
◆ m_fd
DAVIX_FD* fReadDavix::m_fd |
|
private |
◆ m_offset
int64_t fReadDavix::m_offset |
|
private |
◆ m_pfd
The documentation for this class was generated from the following files: