YODA::AOReaderBase Class Referenceabstract
Inheritance diagram for YODA::AOReaderBase:
![]()
Detailed DescriptionDefinition at line 52 of file ReaderUtils.h. Constructor & Destructor Documentation◆ AOReaderBase()
◆ ~AOReaderBase()
Member Function Documentation◆ assemble()
◆ extractVector()
template<typename T >
Definition at line 156 of file ReaderUtils.h. 156 {
157 if constexpr (std::is_same<T, std::string>::value) {
158 string::const_iterator initpos( line.cbegin() );
159 const string::const_iterator finpos( line.cend() );
160 std::smatch m;
161 while ( std::regex_search(initpos, finpos, m, regex_string_pat) ) {
162 string label;
163 std::stringstream ss(m[0].str());
164 ss >> std::quoted(label); // removes outer quotes and de-escapes inner quotes
165 vec.push_back(label);
166 initpos = m.suffix().first;
167 }
168 }
169 else {
170 std::string content = line.substr(line.find(": [")+3);
171 content.pop_back(); // remove the "]" at the end
172 for (const std::string& item : Utils::split(content, ",")) {
173 aiss.reset(item);
174 T tmp;
175 aiss >> tmp;
176 vec.push_back(std::move(tmp));
177 }
178 }
179 }
References aiss. ◆ mkFromH5()
◆ parse()
◆ skip()
Reimplemented in YODA::AOReader< Estimate0D >, YODA::AOReader< BinnedDbn< DbnN, AxisT... > >, and YODA::AOReader< BinnedEstimate< AxisT... > >. Definition at line 149 of file ReaderUtils.h. 149 {
150 h5file.skipCommon();
151 }
References YODA::H5FileManager::skipCommon(). Member Data Documentation◆ aiss
Definition at line 183 of file ReaderUtils.h. Referenced by extractVector(). The documentation for this class was generated from the following file:
Generated on Fri Mar 7 2025 09:06:40 for YODA - Yet more Objects for Data Analysis by |