Two classes provide various utilities. See below.
“Util” module provides following methods. We list below the main methods:
“Util.printRes” method can be used for debugging post-processing.
“Util.printGrp” method can be used for debugging post-processing.
“Util.printDbResList” method can be used for debugging post-processing.
“Util.printDbGrpList” method can be used for debugging post-processing.
“Util.iter_csv” method is used to scan the lines of a CSV file. Each line is translated to an Array of Strings. This method is used to define the post-processing objects. (See section IV.4.2.)
“Util.convert_csv_line” method is used to convert an Array of String obtained by reading a CSV file, to an Array of values according to specified types. This method is used to define the post-processing objects. (See section IV.4.2.)
“Util.ensureDirectoryForFile” method creates, if necessary, a directory prior to creating a file in that directory.
This class is very short. It is wrapping around SQLite::database class, and has been introduced in such a way that all SQL code specific to SQLite is contained in this class. The purpose of this class is to ease the transfer of post-processing project to another SQL database system, if necessary. The class proposes only three methods: “initialize”, “execute” and “timeStamp”.