Jpp 21.0.1
the software that should make you happy
Loading...
Searching...
No Matches
software/JAcoustics/JTriggerParameters.cc
Go to the documentation of this file.
5#include "JAcoustics/JAcousticsDictionary.hh"
6
7
8/**
9 * Read parameters from input stream.
10 *
11 * \param in input stream
12 * \param parameters parameters
13 * \return input stream
14 */
15std::istream& operator>>(std::istream& in, JACOUSTICS::JTriggerParameters& parameters)
16{
17 using namespace JPP;
18
19 JStringStream is(in);
20
21 JRootReader(is, JEquationParameters(), JAcousticsDictionary::getInstance()).get(parameters);
22
23 return in;
24}
25
26
27/**
28 * Write parameters to output stream.
29 *
30 * \param out output stream
31 * \param parameters parameters
32 * \return output stream
33 */
34std::ostream& operator<<(std::ostream& out, const JACOUSTICS::JTriggerParameters& parameters)
35{
36 using namespace std;
37 using namespace JPP;
38
39 JRootWriter(out, JEquationParameters(), JAcousticsDictionary::getInstance()).put(parameters);
40
41 return out;
42}
Acoustic trigger parameters.
ASCII I/O of objects with ROOT dictionary.
Simple data structure to support I/O of equations (see class JLANG::JEquation).
Wrapper class around STL stringstream class to facilitate optional loading of data from file.
Implementation for ASCII input of objects with ROOT dictionary.
JRootReader & get(T &object)
Read object according equation format.
Implementation for ASCII output of objects with ROOT dictionary.
JRootWriter & put(const T &object)
Write object according equation format.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
std::ostream & operator<<(std::ostream &out, const JACOUSTICS::JTriggerParameters &parameters)
Write parameters to output stream.
std::istream & operator>>(std::istream &in, JACOUSTICS::JTriggerParameters &parameters)
Read parameters from input stream.