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

#include <CrestRequest.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 28 of file CrestRequest.h.

Member Function Documentation

◆ add()

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

Definition at line 34 of file CrestRequest.h.

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

◆ getParams()

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

Definition at line 51 of file CrestRequest.h.

52  {
53  return m_str;
54  }

◆ reset()

void Crest::urlParameters::reset ( )
inline

Definition at line 56 of file CrestRequest.h.

57  {
58  m_str.clear();
59  }

Member Data Documentation

◆ m_str

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

Definition at line 31 of file CrestRequest.h.


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