ATLAS Offline Software
Loading...
Searching...
No Matches
dbline.cxx File Reference
#include "MuonCablingTools/dbline.h"
#include <type_traits>
#include "AthenaKernel/getMessageSvc.h"
#include "GaudiKernel/MsgStream.h"
#include <charconv>
#include <iostream>
#include <string_view>
Include dependency graph for dbline.cxx:

Go to the source code of this file.

Functions

std::ifstream & operator>> (std::ifstream &file, DBline &db)
std::istream & operator>> (std::istream &stream, DBline &db)
std::ostream & operator<< (std::ostream &stream, DBline &db)
DBstatus operator| (DBstatus s1, DBstatus s2)
DBstatus operator& (DBstatus s1, DBstatus s2)

Function Documentation

◆ operator&()

DBstatus operator& ( DBstatus s1,
DBstatus s2 )

Definition at line 418 of file dbline.cxx.

418 {
419 if (s1 && s2) return extracted;
420 return not_extracted;
421}
@ not_extracted
Definition dbline.h:248
@ extracted
Definition dbline.h:248

◆ operator<<()

std::ostream & operator<< ( std::ostream & stream,
DBline & db )

Definition at line 408 of file dbline.cxx.

◆ operator>>() [1/2]

std::ifstream & operator>> ( std::ifstream & file,
DBline & db )

Definition at line 396 of file dbline.cxx.

396 {
397 db.connect(file);
398 db.GetLine(file);
399 return file;
400}
TFile * file

◆ operator>>() [2/2]

std::istream & operator>> ( std::istream & stream,
DBline & db )

Definition at line 402 of file dbline.cxx.

402 {
403 db.connect(stream);
404 db.GetLine(stream);
405 return stream;
406}

◆ operator|()

DBstatus operator| ( DBstatus s1,
DBstatus s2 )

Definition at line 413 of file dbline.cxx.

413 {
414 if (s1 || s2) return extracted;
415 return not_extracted;
416}