Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JAANET::JEvtWeightFactorTFormula::JEvtWeightFactorTFormulaExpression Struct Reference

Auxiliary class for I/O of TFormula expression. More...

Inheritance diagram for JAANET::JEvtWeightFactorTFormula::JEvtWeightFactorTFormulaExpression:
JLANG::JLoadProperty< JAANET::JEvtWeightFactorTFormula, JAANET::JEvtWeightFactorTFormula::JEvtWeightFactorTFormulaExpression >

Static Private Attributes

static const char FORMULA_DELIMITER = '"'
 Formula string delimiter.
 

Friends

std::istream & operator>> (std::istream &in, JEvtWeightFactorTFormulaExpression &object)
 Read event category from input.
 
std::ostream & operator<< (std::ostream &out, const JEvtWeightFactorTFormulaExpression &object)
 Write event category to output.
 

Detailed Description

Auxiliary class for I/O of TFormula expression.

Definition at line 165 of file JEvtWeightFactorTFormula.hh.

Friends And Related Symbol Documentation

◆ operator>>

std::istream & operator>> ( std::istream & in,
JEvtWeightFactorTFormulaExpression & object )
friend

Read event category from input.

Parameters
ininput stream
objectevent category
Returns
input stream

Definition at line 175 of file JEvtWeightFactorTFormula.hh.

176 {
177 if (in.peek() == (int) FORMULA_DELIMITER) {
178
179 in.ignore();
180
181 return std::getline(in, object, FORMULA_DELIMITER);
182
183 } else {
184
185 return in >> static_cast<std::string&>(object);
186 }
187 }

◆ operator<<

std::ostream & operator<< ( std::ostream & out,
const JEvtWeightFactorTFormulaExpression & object )
friend

Write event category to output.

Parameters
outoutput stream
objectevent category
Returns
output stream

Definition at line 197 of file JEvtWeightFactorTFormula.hh.

198 {
199 return out << static_cast<const std::string&>(object);
200 }

Member Data Documentation

◆ FORMULA_DELIMITER

const char JAANET::JEvtWeightFactorTFormula::JEvtWeightFactorTFormulaExpression::FORMULA_DELIMITER = '"'
staticprivate

Formula string delimiter.

Definition at line 205 of file JEvtWeightFactorTFormula.hh.


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