#include <TrigDBConnectionConfig.h>
Definition at line 21 of file TrigDBConnectionConfig.h.
◆ LumiPSPair
◆ PSKeys
◆ DBType
◆ TrigDBConnectionConfig() [1/6]
| TrigConf::TrigDBConnectionConfig::TrigDBConnectionConfig |
( |
| ) |
|
|
default |
◆ TrigDBConnectionConfig() [2/6]
| TrigConf::TrigDBConnectionConfig::TrigDBConnectionConfig |
( |
const std::string & | connectionStr | ) |
|
◆ TrigDBConnectionConfig() [3/6]
| TrigConf::TrigDBConnectionConfig::TrigDBConnectionConfig |
( |
DBType | type, |
|
|
const std::string & | server, |
|
|
unsigned int | smKey, |
|
|
unsigned int | hltPsKey ) |
|
inline |
◆ TrigDBConnectionConfig() [4/6]
| TrigConf::TrigDBConnectionConfig::TrigDBConnectionConfig |
( |
DBType | type, |
|
|
const std::string & | server, |
|
|
unsigned int | smKey, |
|
|
const PSKeys & | hltPsKeyStr ) |
|
inline |
◆ TrigDBConnectionConfig() [5/6]
| TrigConf::TrigDBConnectionConfig::TrigDBConnectionConfig |
( |
DBType | type, |
|
|
const std::string & | server, |
|
|
unsigned int | smKey, |
|
|
const std::string & | hltPsKeyStr ) |
◆ TrigDBConnectionConfig() [6/6]
| TrigConf::TrigDBConnectionConfig::TrigDBConnectionConfig |
( |
DBType | type, |
|
|
const std::string & | server, |
|
|
unsigned int | smKey ) |
|
inlineprivate |
◆ diggestStr()
| void TrigConf::TrigDBConnectionConfig::diggestStr |
( |
const std::string & | str | ) |
|
Definition at line 208 of file TrigDBConnectionConfig.cxx.
209{
211
212
213 if(!(val = extractValue(
TYPE, str)).
empty())
215 if(!(val = extractValue(SERVER, str)).
empty())
217 if(!(val = extractValue(SMKEY, str)).
empty())
219 if(!(val = extractValue(LVL1KEY, str)).
empty())
221 if(!(val = extractValue(SCHEMA, str)).
empty())
223 if(!(val = extractValue(USER, str)).
empty())
225 if(!(val = extractValue(PWD, str)).
empty())
227 if(!(val = extractValue(RETRPER, str)).
empty())
229 if(!(val = extractValue(MAXRETR, str)).
empty())
231 if(!(val = extractValue(USEFRONT, str)).
empty())
233
234
235 if(!(val = extractValue(HLTKEY, str)).
empty())
239}
#define TYPE(CODE, TYP, IOTYP)
static const Attributes_t empty
void setMaxRetrialsFromStr(const std::string &maxRetrialsStr)
void setRetrialPeriodFromStr(const std::string &retrialPeriodStr)
void setTypeFromStr(const std::string &typeStr)
void setSmKeyFromStr(const std::string &smKeyStr)
void setLvl1KeyFromStr(const std::string &lvl1KeyStr)
void setUseFrontierFromStr(const std::string &useFrontier)
◆ hltKeysToString()
| string TrigConf::TrigDBConnectionConfig::hltKeysToString |
( |
| ) |
const |
Definition at line 300 of file TrigDBConnectionConfig.cxx.
301{
302 ostringstream oss;
303
304 oss << '[';
305 for(PSKeys::const_iterator it =
m_hltkeys.begin();
307 {
309 oss << ',';
310 oss <<
'(' <<
it->first <<
',' <<
it->second <<
')';
311 }
312 oss << ']';
313
314 return oss.str();
315}
◆ setHltKeysFromStr()
| void TrigConf::TrigDBConnectionConfig::setHltKeysFromStr |
( |
const std::string & | hltKeyStr | ) |
|
◆ setLvl1KeyFromStr()
| void TrigConf::TrigDBConnectionConfig::setLvl1KeyFromStr |
( |
const std::string & | lvl1KeyStr | ) |
|
◆ setMaxRetrialsFromStr()
| void TrigConf::TrigDBConnectionConfig::setMaxRetrialsFromStr |
( |
const std::string & | maxRetrialsStr | ) |
|
◆ setRetrialPeriodFromStr()
| void TrigConf::TrigDBConnectionConfig::setRetrialPeriodFromStr |
( |
const std::string & | retrialPeriodStr | ) |
|
◆ setSmKeyFromStr()
| void TrigConf::TrigDBConnectionConfig::setSmKeyFromStr |
( |
const std::string & | smKeyStr | ) |
|
◆ setTypeFromStr()
| void TrigConf::TrigDBConnectionConfig::setTypeFromStr |
( |
const std::string & | typeStr | ) |
|
Definition at line 242 of file TrigDBConnectionConfig.cxx.
243{
244 string low = algorithm::to_lower_copy(typeStr);
245 if(low == "oracle")
247 else if(low == "mysql")
249 else if(low == "sqlite")
251 else
253}
◆ setUseFrontierFromStr()
| void TrigConf::TrigDBConnectionConfig::setUseFrontierFromStr |
( |
const std::string & | useFrontier | ) |
|
◆ toString()
| string TrigConf::TrigDBConnectionConfig::toString |
( |
| ) |
const |
Definition at line 185 of file TrigDBConnectionConfig.cxx.
186{
187 ostringstream oss;
190 outputParam(oss, SMKEY,
m_smkey);
193 outputParam(oss, USER,
m_user);
198
201 else
203
204 return oss.str();
205}
std::string typeToString() const
std::string hltKeysToString() const
◆ typeToString()
| std::string TrigConf::TrigDBConnectionConfig::typeToString |
( |
| ) |
const |
|
inline |
◆ m_hltkey
| unsigned int TrigConf::TrigDBConnectionConfig::m_hltkey {0} |
◆ m_hltkeys
| PSKeys TrigConf::TrigDBConnectionConfig::m_hltkeys |
◆ m_lvl1key
| unsigned int TrigConf::TrigDBConnectionConfig::m_lvl1key {0} |
◆ m_maxRetrials
| unsigned int TrigConf::TrigDBConnectionConfig::m_maxRetrials {1} |
◆ m_password
| std::string TrigConf::TrigDBConnectionConfig::m_password |
◆ m_retrialPeriod
| unsigned int TrigConf::TrigDBConnectionConfig::m_retrialPeriod {0} |
◆ m_schema
| std::string TrigConf::TrigDBConnectionConfig::m_schema |
◆ m_server
| std::string TrigConf::TrigDBConnectionConfig::m_server |
◆ m_smkey
| unsigned int TrigConf::TrigDBConnectionConfig::m_smkey {0} |
◆ m_type
◆ m_useFrontier
| bool TrigConf::TrigDBConnectionConfig::m_useFrontier {false} |
◆ m_user
| std::string TrigConf::TrigDBConnectionConfig::m_user |
The documentation for this class was generated from the following files: