YODA::AOReaderBase Class Referenceabstract
Inheritance diagram for YODA::AOReaderBase:
Detailed DescriptionDefinition at line 40 of file ReaderUtils.h. Constructor & Destructor Documentation◆ AOReaderBase()
◆ ~AOReaderBase()
Member Function Documentation◆ assemble()
◆ extractVector()
template<typename T >
Definition at line 135 of file ReaderUtils.h. 135 {
136 if constexpr (std::is_same<T, std::string>::value) {
137 string::const_iterator initpos( line.cbegin() );
138 const string::const_iterator finpos( line.cend() );
139 std::smatch m;
140 while ( std::regex_search(initpos, finpos, m, regex_string_pat) ) {
141 string label;
142 std::stringstream ss(m[0].str());
143 ss >> std::quoted(label); // removes outer quotes and de-escapes inner quotes
144 vec.push_back(label);
145 initpos = m.suffix().first;
146 }
147 }
148 else {
149 std::string content = line.substr(line.find(": [")+3);
150 content.pop_back(); // remove the "]" at the end
151 for (const std::string& item : Utils::split(content, ",")) {
152 aiss.reset(item);
153 T tmp;
154 aiss >> tmp;
155 vec.push_back(std::move(tmp));
156 }
157 }
158 }
References aiss. ◆ parse()
Member Data Documentation◆ aiss
Definition at line 162 of file ReaderUtils.h. Referenced by extractVector(). The documentation for this class was generated from the following file:
Generated on Thu Feb 29 2024 12:47:15 for YODA - Yet more Objects for Data Analysis by 1.9.8 |