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

#include <CrestApi.h>

Collaboration diagram for Crest::urlParameters:

Public Member Functions

void add (const std::string &key, const std::string &value)
 
const std::string & getParams () const
 
void reset ()
 

Private Attributes

std::string m_str {}
 

Detailed Description

Definition at line 32 of file CrestApi.h.

Member Function Documentation

◆ add()

void Crest::urlParameters::add ( const std::string &  key,
const std::string &  value 
)
inline

Definition at line 37 of file CrestApi.h.

37  {
38  if (m_str.empty()) {
39  m_str = key;
40  m_str += '=';
41  m_str += value;
42  } else {
43  m_str +='&';
44  m_str += key;
45  m_str += '=';
46  m_str += value;
47  }
48  }

◆ getParams()

const std::string& Crest::urlParameters::getParams ( ) const
inline

Definition at line 50 of file CrestApi.h.

50  {
51  return m_str;
52  }

◆ reset()

void Crest::urlParameters::reset ( )
inline

Definition at line 54 of file CrestApi.h.

54  {
55  m_str.clear();
56  }

Member Data Documentation

◆ m_str

std::string Crest::urlParameters::m_str {}
private

Definition at line 35 of file CrestApi.h.


The documentation for this class was generated from the following file:
athena.value
value
Definition: athena.py:122
Crest::urlParameters::m_str
std::string m_str
Definition: CrestApi.h:35
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37