ATLAS Offline Software
Loading...
Searching...
No Matches
PixelModuleDataStream.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
11 #ifndef PixelModuleDataStream_h
12 #define PixelModuleDataStream_h
13 #include <iostream>
14 class PixelModuleData;
15 //stream insertion to output all values from PixelModuleData
16 std::ostream & operator << (std::ostream &out, const PixelModuleData &c);
17 //stream extraction to get all values into PixelModuleData from string or file
18 std::istream & operator >> (std::istream &in, PixelModuleData &c);
19 //input pseudo-manipulator to read in soshi's file format
21 std::istream * m_is{};
22 bool run1=false;
23 SoshiFormat() = default;
24 SoshiFormat(bool run1arg):m_is{}, run1(run1arg){};
25 friend SoshiFormat & operator>>(std::istream & i, SoshiFormat & f){
26 f.m_is = &i;
27 return f;
28 }
29 };
30 std::istream & operator >>(SoshiFormat & f, PixelModuleData & md);
31 #endif
32
std::istream & operator>>(std::istream &in, PixelModuleData &c)
std::ostream & operator<<(std::ostream &out, const PixelModuleData &c)
SoshiFormat(bool run1arg)
friend SoshiFormat & operator>>(std::istream &i, SoshiFormat &f)
std::istream * m_is
SoshiFormat()=default