Logo ROOT   6.14/05
Reference Guide
Macros | Functions | Variables
TDavixFile.cxx File Reference
#include "TDavixFile.h"
#include "TROOT.h"
#include "TSocket.h"
#include "Bytes.h"
#include "TError.h"
#include "TSystem.h"
#include "TEnv.h"
#include "TBase64.h"
#include "TVirtualPerfStats.h"
#include "TDavixFileInternal.h"
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <davix.hpp>
#include <sstream>
#include <string>
#include <cstring>
Include dependency graph for TDavixFile.cxx:

Macros

#define ENVPFX   "Davix."
 

Functions

template<typename TRequestParams = Davix::RequestParams>
static auto awsAlternate (TRequestParams *parameters, bool option) -> decltype(parameters->setAwsAlternate(option), void())
 
template<typename TRequestParams = Davix::RequestParams>
static void awsAlternate (...)
 
template<typename TRequestParams = Davix::RequestParams>
static auto awsRegion (TRequestParams *parameters, const char *region) -> decltype(parameters->setAwsRegion(region), void())
 
template<typename TRequestParams = Davix::RequestParams>
static void awsRegion (...)
 
template<typename TRequestParams = Davix::RequestParams>
static auto awsToken (TRequestParams *parameters, const char *token) -> decltype(parameters->setAwsToken(token), void())
 
template<typename TRequestParams = Davix::RequestParams>
static void awsToken (...)
 
int configure_open_flag (const std::string &str, int old_flag)
 
static void ConfigureDavixLogLevel ()
 
bool isno (const char *str)
 
bool strToBool (const char *str, bool defvalue)
 
static int TDavixFile_http_authn_cert_X509 (void *userdata, const Davix::SessionInfo &info, Davix::X509Credential *cert, Davix::DavixError **err)
 
static void TDavixFile_http_get_ucert (std::string &ucert, std::string &ukey)
 

Variables

const char * ca_check_opt = "ca_check=no"
 
static TMutex createLock
 
static Contextdavix_context_s = NULL
 
const char * grid_mode_opt = "grid_mode=yes"
 
static const std::string gUserAgent
 
const char * open_mode_create = "CREATE"
 
const char * open_mode_new = "NEW"
 
const char * open_mode_read = "READ"
 
const char * open_mode_update = "UPDATE"
 
const char * s3_acckey_opt = "s3acckey="
 
const char * s3_alternate_opt = "s3alternate="
 
const char * s3_region_opt = "s3region="
 
const char * s3_seckey_opt = "s3seckey="
 
const char * s3_token_opt = "s3token="
 
static const std::string VERSION = "0.2.0"
 

Macro Definition Documentation

◆ ENVPFX

#define ENVPFX   "Davix."

Definition at line 62 of file TDavixFile.cxx.

Function Documentation

◆ awsAlternate() [1/2]

template<typename TRequestParams = Davix::RequestParams>
static auto awsAlternate ( TRequestParams *  parameters,
bool  option 
) -> decltype(parameters->setAwsAlternate(option), void())
static

Definition at line 356 of file TDavixFile.cxx.

◆ awsAlternate() [2/2]

template<typename TRequestParams = Davix::RequestParams>
static void awsAlternate (   ...)
static

Definition at line 364 of file TDavixFile.cxx.

◆ awsRegion() [1/2]

template<typename TRequestParams = Davix::RequestParams>
static auto awsRegion ( TRequestParams *  parameters,
const char *  region 
) -> decltype(parameters->setAwsRegion(region), void())
static

Definition at line 328 of file TDavixFile.cxx.

◆ awsRegion() [2/2]

template<typename TRequestParams = Davix::RequestParams>
static void awsRegion (   ...)
static

Definition at line 336 of file TDavixFile.cxx.

◆ awsToken() [1/2]

template<typename TRequestParams = Davix::RequestParams>
static auto awsToken ( TRequestParams *  parameters,
const char *  token 
) -> decltype(parameters->setAwsToken(token), void())
static

Definition at line 342 of file TDavixFile.cxx.

◆ awsToken() [2/2]

template<typename TRequestParams = Davix::RequestParams>
static void awsToken (   ...)
static

Definition at line 350 of file TDavixFile.cxx.

◆ configure_open_flag()

int configure_open_flag ( const std::string &  str,
int  old_flag 
)

Definition at line 107 of file TDavixFile.cxx.

◆ ConfigureDavixLogLevel()

static void ConfigureDavixLogLevel ( )
static

Definition at line 123 of file TDavixFile.cxx.

◆ isno()

bool isno ( const char *  str)

Definition at line 86 of file TDavixFile.cxx.

◆ strToBool()

bool strToBool ( const char *  str,
bool  defvalue 
)

Definition at line 96 of file TDavixFile.cxx.

◆ TDavixFile_http_authn_cert_X509()

static int TDavixFile_http_authn_cert_X509 ( void userdata,
const Davix::SessionInfo &  info,
Davix::X509Credential *  cert,
Davix::DavixError **  err 
)
static

Definition at line 211 of file TDavixFile.cxx.

◆ TDavixFile_http_get_ucert()

static void TDavixFile_http_get_ucert ( std::string &  ucert,
std::string &  ukey 
)
static

Definition at line 151 of file TDavixFile.cxx.

Variable Documentation

◆ ca_check_opt

const char* ca_check_opt = "ca_check=no"

Definition at line 69 of file TDavixFile.cxx.

◆ createLock

TMutex createLock
static

Definition at line 80 of file TDavixFile.cxx.

◆ davix_context_s

Context* davix_context_s = NULL
static

Definition at line 81 of file TDavixFile.cxx.

◆ grid_mode_opt

const char* grid_mode_opt = "grid_mode=yes"

Definition at line 68 of file TDavixFile.cxx.

◆ gUserAgent

const std::string gUserAgent
static
Initial value:
= "ROOT/" + std::string(gROOT->GetVersion()) +
" TDavixFile/" + VERSION + " davix/" + Davix::version()
#define gROOT
Definition: TROOT.h:410
static const std::string VERSION
Definition: TDavixFile.cxx:56

Definition at line 58 of file TDavixFile.cxx.

◆ open_mode_create

const char* open_mode_create = "CREATE"

Definition at line 76 of file TDavixFile.cxx.

◆ open_mode_new

const char* open_mode_new = "NEW"

Definition at line 77 of file TDavixFile.cxx.

◆ open_mode_read

const char* open_mode_read = "READ"

Definition at line 75 of file TDavixFile.cxx.

◆ open_mode_update

const char* open_mode_update = "UPDATE"

Definition at line 78 of file TDavixFile.cxx.

◆ s3_acckey_opt

const char* s3_acckey_opt = "s3acckey="

Definition at line 71 of file TDavixFile.cxx.

◆ s3_alternate_opt

const char* s3_alternate_opt = "s3alternate="

Definition at line 74 of file TDavixFile.cxx.

◆ s3_region_opt

const char* s3_region_opt = "s3region="

Definition at line 72 of file TDavixFile.cxx.

◆ s3_seckey_opt

const char* s3_seckey_opt = "s3seckey="

Definition at line 70 of file TDavixFile.cxx.

◆ s3_token_opt

const char* s3_token_opt = "s3token="

Definition at line 73 of file TDavixFile.cxx.

◆ VERSION

const std::string VERSION = "0.2.0"
static

Definition at line 56 of file TDavixFile.cxx.