Jpp  master_rocky
the software that should make you happy
Public Member Functions | Friends | List of all members
KM3NETDAQ::JSource Class Reference

Data structure for configuration of JDQSimulator. More...

Inheritance diagram for KM3NETDAQ::JSource:

Public Member Functions

 JSource ()
 Default constructor. More...
 

Friends

std::istream & operator>> (std::istream &in, JSource &source)
 Read JSource from input stream. More...
 
std::ostream & operator<< (std::ostream &out, const JSource &source)
 Write JSource to output stream. More...
 

Detailed Description

Data structure for configuration of JDQSimulator.

Definition at line 39 of file JDQSimulator.cc.

Constructor & Destructor Documentation

◆ JSource()

KM3NETDAQ::JSource::JSource ( )
inline

Default constructor.

Definition at line 46 of file JDQSimulator.cc.

46  :
47  std::string()
48  {}

Friends And Related Function Documentation

◆ operator>>

std::istream& operator>> ( std::istream &  in,
JSource source 
)
friend

Read JSource from input stream.

Parameters
ininput stream
sourceJSource
Returns
input stream

Definition at line 58 of file JDQSimulator.cc.

59  {
60  int index;
61 
62  in >> index >> static_cast<std::string&>(source);
63 
64  return in;
65  }

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const JSource source 
)
friend

Write JSource to output stream.

Parameters
outoutput stream
sourceJSource
Returns
output stream

Definition at line 75 of file JDQSimulator.cc.

76  {
77  out << static_cast<const std::string&>(source);
78 
79  return out;
80  }

The documentation for this class was generated from the following file: