YODA::WriterFLAT Class Reference Persistency writer for flat text format. More...
Inheritance diagram for YODA::WriterFLAT:
Detailed DescriptionPersistency writer for flat text format. Definition at line 15 of file WriterFLAT.h. Member Function Documentation◆ create()
Singleton creation function. Definition at line 17 of file WriterFLAT.cc. 17 {
18 static WriterFLAT _instance;
19 _instance.setPrecision(6);
20 return _instance;
21 }
References YODA::Writer::setPrecision(). Referenced by YODA::mkWriter(). ◆ writeAO()
Implements YODA::Writer. Definition at line 35 of file WriterFLAT.cc. 35 {
36 ios_base::fmtflags oldflags = os.flags();
37 os << scientific << showpoint << setprecision(_aoprecision);
38 os << "BEGIN SCATTER" << std::to_string(ao.dim()) << "D " << ao.path() << "\n";
39 _writeAnnotations(os, ao);
40 ao._renderFLAT(os, _aoprecision+7); // = "-1." + _aoprecision + "e+23"
41 os << "END SCATTER" << std::to_string(ao.dim()) << "D" << "\n\n";
42
43 os << flush;
44 os.flags(oldflags);
45 }
References YODA::AnalysisObject::dim(), and YODA::AnalysisObject::path(). The documentation for this class was generated from the following files:
Generated on Mon Oct 28 2024 13:47:24 for YODA - Yet more Objects for Data Analysis by 1.9.8 |