ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
pool::URIParser Class Reference

#include <Database/APR/FileCatalog/URIParser.h>

Collaboration diagram for pool::URIParser:

Public Member Functions

 URIParser (const std::string &contactstr)
 Constructor. More...
 
 URIParser ()
 Default constructor. More...
 
 ~URIParser ()
 Destructor. More...
 
void dump () const
 Print the parsing result. More...
 
void setURI (const std::string &contactstr)
 
const std::string & contactstring () const
 
const std::string & prefix () const
 
const std::string & url () const
 
void parse ()
 

Private Attributes

std::string m_contactstr
 
std::string m_prefix
 
std::string m_url
 

Detailed Description

URI parsing utility class. The URI string can be read from environment variable POOL_CATALOG or from the URIParser constructor. Protocol, host, path MUST be specified.

Author
Zhen Xie

Definition at line 18 of file URIParser.h.

Constructor & Destructor Documentation

◆ URIParser() [1/2]

pool::URIParser::URIParser ( const std::string &  contactstr)

Constructor.

Contact string will be read from the environment variable POOL_CATALOG if no argument is given to the constructor.

Parameters
contactstrthe contact string to the catalog

◆ URIParser() [2/2]

pool::URIParser::URIParser ( )

Default constructor.

◆ ~URIParser()

pool::URIParser::~URIParser ( )

Destructor.

Member Function Documentation

◆ contactstring()

const std::string& pool::URIParser::contactstring ( ) const

◆ dump()

void pool::URIParser::dump ( ) const

Print the parsing result.

◆ parse()

void pool::URIParser::parse ( )

◆ prefix()

const std::string& pool::URIParser::prefix ( ) const

◆ setURI()

void pool::URIParser::setURI ( const std::string &  contactstr)

◆ url()

const std::string& pool::URIParser::url ( ) const

Member Data Documentation

◆ m_contactstr

std::string pool::URIParser::m_contactstr
private

Definition at line 38 of file URIParser.h.

◆ m_prefix

std::string pool::URIParser::m_prefix
private

Definition at line 39 of file URIParser.h.

◆ m_url

std::string pool::URIParser::m_url
private

Definition at line 40 of file URIParser.h.


The documentation for this class was generated from the following file: