ATLAS Offline Software
Loading...
Searching...
No Matches
PoolMapElement Class Reference

#include <PoolMapElement.h>

Collaboration diagram for PoolMapElement:

Public Member Functions

 PoolMapElement ()
 PoolMapElement (const int usage, const std::string &foldertag)
void inccount ()
void setErrorBit (const int bit)
void setlfn (const std::string &lfn)
void setpfn (const std::string &pfn)
int count () const
int errcode () const
const std::string & lfn () const
const std::string & pfn () const
std::vector< std::string > & foldertag ()
const std::vector< std::string > & foldertag () const
void addfoldertag (const std::string &foldertag)

Private Attributes

int m_count
int m_errcode
std::string m_lfn
std::string m_pfn
std::vector< std::string > m_folders

Detailed Description

Definition at line 14 of file PoolMapElement.h.

Constructor & Destructor Documentation

◆ PoolMapElement() [1/2]

PoolMapElement::PoolMapElement ( )
inline

Definition at line 47 of file PoolMapElement.h.

47: m_count(0),m_errcode(0),m_lfn(),m_pfn(),m_folders() {}
std::string m_lfn
std::vector< std::string > m_folders
std::string m_pfn

◆ PoolMapElement() [2/2]

PoolMapElement::PoolMapElement ( const int usage,
const std::string & foldertag )
inline

Definition at line 41 of file PoolMapElement.h.

42 :
43 m_count(usage),m_errcode(0),m_lfn(""),m_pfn("") {
44 m_folders.push_back(foldertag);
45}
std::vector< std::string > & foldertag()
StatusCode usage()

Member Function Documentation

◆ addfoldertag()

void PoolMapElement::addfoldertag ( const std::string & foldertag)
inline

Definition at line 62 of file PoolMapElement.h.

62 {
63 if (find(m_folders.begin(),m_folders.end(),foldertag)==m_folders.end())
64 m_folders.push_back(foldertag);
65}
std::string find(const std::string &s)
return a remapped string
Definition hcg.cxx:138

◆ count()

int PoolMapElement::count ( ) const
inline

Definition at line 55 of file PoolMapElement.h.

55{ return m_count; }

◆ errcode()

int PoolMapElement::errcode ( ) const
inline

Definition at line 56 of file PoolMapElement.h.

56{return m_errcode; }

◆ foldertag() [1/2]

std::vector< std::string > & PoolMapElement::foldertag ( )
inline

Definition at line 60 of file PoolMapElement.h.

60{ return m_folders; }

◆ foldertag() [2/2]

const std::vector< std::string > & PoolMapElement::foldertag ( ) const
inline

Definition at line 61 of file PoolMapElement.h.

61{return m_folders; }

◆ inccount()

void PoolMapElement::inccount ( )
inline

Definition at line 49 of file PoolMapElement.h.

49{ ++m_count;}

◆ lfn()

const std::string & PoolMapElement::lfn ( ) const
inline

Definition at line 57 of file PoolMapElement.h.

57{return m_lfn; }

◆ pfn()

const std::string & PoolMapElement::pfn ( ) const
inline

Definition at line 58 of file PoolMapElement.h.

58{return m_pfn; }

◆ setErrorBit()

void PoolMapElement::setErrorBit ( const int bit)
inline

Definition at line 50 of file PoolMapElement.h.

51 { m_errcode=m_errcode | (1 << bit);}

◆ setlfn()

void PoolMapElement::setlfn ( const std::string & lfn)
inline

Definition at line 52 of file PoolMapElement.h.

52{ m_lfn=lfn;}
const std::string & lfn() const

◆ setpfn()

void PoolMapElement::setpfn ( const std::string & pfn)
inline

Definition at line 53 of file PoolMapElement.h.

53{ m_pfn=pfn;}
const std::string & pfn() const

Member Data Documentation

◆ m_count

int PoolMapElement::m_count
private

Definition at line 34 of file PoolMapElement.h.

◆ m_errcode

int PoolMapElement::m_errcode
private

Definition at line 35 of file PoolMapElement.h.

◆ m_folders

std::vector<std::string> PoolMapElement::m_folders
private

Definition at line 38 of file PoolMapElement.h.

◆ m_lfn

std::string PoolMapElement::m_lfn
private

Definition at line 36 of file PoolMapElement.h.

◆ m_pfn

std::string PoolMapElement::m_pfn
private

Definition at line 37 of file PoolMapElement.h.


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