YODA::WriterYODA Class Reference Persistency writer for YODA flat text format. More...
Inheritance diagram for YODA::WriterYODA:
Detailed DescriptionPersistency writer for YODA flat text format. Definition at line 15 of file WriterYODA.h. Member Function Documentation◆ create()
Singleton creation function. Definition at line 21 of file WriterYODA.cc. 21 {
22 static WriterYODA _instance;
23 _instance.setPrecision(6);
24 return _instance;
25 }
References YODA::Writer::setPrecision(). Referenced by YODA::mkWriter(). ◆ writeAO()
Implements YODA::Writer. Definition at line 59 of file WriterYODA.cc. 59 {
60 ios_base::fmtflags oldflags = os.flags();
61 os << scientific << showpoint << setprecision(_aoprecision);
62 os << "BEGIN " << _iotypestr(ao.type()) << " " << ao.path() << "\n";
63 _writeAnnotations(os, ao);
64 ao._renderYODA(os, _aoprecision+7); // = "-1." + _aoprecision + "e+23"
65 os << "END " << _iotypestr(ao.type()) << "\n\n";
66 os << flush;
67 os.flags(oldflags);
68 }
References YODA::AnalysisObject::path(), and YODA::AnalysisObject::type(). 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 |