Jpp  master_rocky-43-ge265d140c
the software that should make you happy
Functions
JFitParameters.cc File Reference
#include "JSystem/JStat.hh"
#include "JROOT/JRootStreamer.hh"
#include "JROOT/JRootDictionary.hh"
#include "JLang/JStringStream.hh"
#include "JAcoustics/JFitParameters.hh"

Go to the source code of this file.

Functions

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

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 15 of file JFitParameters.cc.

16 {
17  using namespace JPP;
18 
19  JStringStream is(in);
20 
21  if (getFileStatus(is.str().c_str())) {
22  is.load();
23  }
24 
26 
27  return in;
28 }
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).
static JStat getFileStatus
Function object for file status.
Definition: JStat.hh:173
static data_type & getInstance()
Get unique instance of template class.
Definition: JSingleton.hh:27

◆ 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 38 of file JFitParameters.cc.

39 {
40  using namespace JPP;
41 
42  const size_t n = out.precision(6);
43 
45 
46  out.precision(n);
47 
48  return out;
49 }
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:786