Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
10 #include "GaudiKernel/MsgStream.h"
14 #include <string_view>
65 log << MSG::WARNING <<
"line " << std::setw(4) <<
m_line <<
" -|" <<
m_data.c_str() <<
" .. not understood!" <<
endmsg;
86 if (
start == std::string::npos) {
93 if constexpr(std::is_unsigned_v<type>) {
107 if (
start == std::string::npos) {
126 if (
pos == std::string::npos) {
140 const size_t pos =
str.find(
'"');
141 if (
pos == std::string::npos)
146 }
else if (
pos ==
str.length() - 1) {
187 if (
pos != std::string::npos) {
188 const size_t finalpos =
pos +
token.length();
190 char foll = (finalpos <
m_data.length()) ?
m_data[finalpos] :
' ';
191 if (prev ==
' ' && foll ==
' ')
201 const size_t pos =
str.find(
'#');
202 if (
pos != std::string::npos) {
205 std::string new_token{
str};
206 new_token.replace(
pos,
rep.length(),
rep);
215 const size_t pos =
str.find(
'#');
216 if (
pos != std::string::npos) {
217 std::ostringstream
rep;
218 rep << std::setw(2) << std::setfill(
'0') <<
t;
220 std::string new_token{
str};
221 new_token.replace(
pos,
rep.str().length(),
rep.str());
282 const std::ios_base::fmtflags
fmt =
f.flags() & std::ios_base::basefield;
284 case std::ios::hex:
m_base = 16;
break;
285 case std::ios::oct:
m_base = 8;
break;
298 if (
pos != std::string::npos)
316 for (
int j = -1; j <
i; j++) {
324 for (
int j = 0; j <
i; j++) {
335 DBline::operator
bool() {
return !(m_fail | !
static_cast<bool>(m_extraction)); }
337 DBline::operator
DBstatus() {
return m_extraction; }
361 this->unsetf(std::ios::skipws | std::ios::left | std::ios::right | std::ios::internal | std::ios::oct | std::ios::hex |
362 std::ios::showbase | std::ios::showpoint | std::ios::uppercase | std::ios::scientific | std::ios::fixed |
363 std::ios::showpos | std::ios::boolalpha);
365 m_dbfmt_hex.setf(std::ios::hex, std::ios::basefield);
366 m_dbfmt_oct.setf(std::ios::oct, std::ios::basefield);
367 m_dbfmt_dec.setf(std::ios::dec, std::ios::basefield);
424 this->setf(std::ios::unitbuf | std::ios::dec);
425 this->unsetf(std::ios::skipws | std::ios::left | std::ios::right | std::ios::internal | std::ios::oct | std::ios::hex |
426 std::ios::showbase | std::ios::showpoint | std::ios::uppercase | std::ios::scientific | std::ios::fixed |
427 std::ios::showpos | std::ios::boolalpha);
singleton-like access to IMessageSvc via open function and helper
quote check_quote(std::string &) const
DBline & operator<<(std::istream &input)
void GetValue(type &value)
DBstatus operator&(DBstatus s1, DBstatus s2)
DBline & operator()(std::string_view)
std::ios::fmtflags m_default
DBline & token(std::string_view)
IMessageSvc * getMessageSvc(bool quiet=false)
enum DBline::exist_quote quote
void GetToken(size_t pos, std::string_view token)
void GetLine(std::istream &input)
void GoodExtraction(void)
std::ostream & operator<<(std::ostream &stream, DBline &db)
std::string to_string(const DetectorType &type)
void connect(std::ifstream &file)
void go_until(std::string_view token)
DBline & operator+(int i)
DBstatus operator|(DBstatus s1, DBstatus s2)
enum result_extraction DBstatus
setBGCode setTAP setLVL2ErrorBits bool
void GetStr(std::string &)
std::ifstream & operator>>(std::ifstream &file, DBline &db)
DBline & operator>>(std::string &str)