41 #ifndef __OPENFLUID_TOOLS_PROGRESSIVECHRONFILEREADER_HPP__
42 #define __OPENFLUID_TOOLS_PROGRESSIVECHRONFILEREADER_HPP__
54 template<
class DataType>
59 std::string m_DateFormat;
65 const std::string& DateFormat =
"%Y-%m-%dT%H:%M:%S",
66 const std::string& ColSeparators =
" \t\r\n") :
88 std::vector<std::string> Values;
92 while (getNextLine(Values))
94 if (Values.size() == 2)
106 "wrong data in " + m_FileName);
122 std::vector<std::string> Values;
126 while (getNextLine(Values))
128 if (Values.size() == 2)
140 "wrong data in " + m_FileName);
156 std::vector<std::string> Values;
159 while (getNextLine(Values))
161 if (Values.size() == 2)
172 "wrong data in " + m_FileName);
188 std::vector<std::string> Values;
191 while (getNextLine(Values))
193 if (Values.size() == 1 || Values.size() == 2)
198 Value.second = (Values.size() == 2) ? Values.back() :
"";
205 "wrong data in " + m_FileName);
222 std::vector<std::string> Values;
225 while (getNextLine(Values))
227 if (Values.size() >= 2)
232 Value.second.clear();
233 for (std::size_t i=1;i<Values.size();i++)
235 Value.second.push_back(Values[i]);
242 "wrong data in " + m_FileName);
Definition: FrameworkException.hpp:51
Class for management of date and time information.
Definition: DateTime.hpp:88
bool setFromString(const std::string &DateTimeStr, const std::string &FormatStr)
#define OPENFLUID_API
Definition: dllexport.hpp:86
bool OPENFLUID_API stringToBoolean(const std::string &Str)
Definition: ApplicationException.hpp:47