Jpp in_tag_pdf_generation
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 166 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 176 of file JEvtWeightFactorTFormula.hh.

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

◆ 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 198 of file JEvtWeightFactorTFormula.hh.

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

Member Data Documentation

◆ FORMULA_DELIMITER

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

Formula string delimiter.

Definition at line 206 of file JEvtWeightFactorTFormula.hh.


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