Jpp 21.0.0
the software that should make you happy
Loading...
Searching...
No Matches
JFitParameters.cc File Reference

Go to the source code of this file.

Functions

std::istream & operator>> (std::istream &in, JACOUSTICS::JFitParameters &parameters)
 Read parameters from input stream.
 
std::ostream & operator<< (std::ostream &out, const JACOUSTICS::JFitParameters &parameters)
 Write parameters to output stream.
 

Function Documentation

◆ operator>>()

std::istream & operator>> ( std::istream & in,
JACOUSTICS::JFitParameters & parameters )

Read parameters from input stream.

Parameters
ininput stream
parametersparameters
Returns
input stream

Definition at line 14 of file JFitParameters.cc.

15{
16 using namespace JPP;
17
18 JStringStream is(in);
19
20 JRootReader(is, JEquationParameters(), JRootDictionary::getInstance()).get(parameters);
21
22 return in;
23}
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.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).

◆ operator<<()

std::ostream & operator<< ( std::ostream & out,
const JACOUSTICS::JFitParameters & parameters )

Write parameters to output stream.

Parameters
outoutput stream
parametersparameters
Returns
output stream

Definition at line 33 of file JFitParameters.cc.

34{
35 using namespace JPP;
36
37 const size_t n = out.precision(6);
38
39 JRootWriter(out, JEquationParameters(), JRootDictionary::getInstance()).put(parameters);
40
41 out.precision(n);
42
43 return out;
44}
Implementation for ASCII output of objects with ROOT dictionary.
JRootWriter & put(const T &object)
Write object according equation format.
const int n
Definition JPolint.hh:791