summaryrefslogtreecommitdiff
path: root/project2/fileRows.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-12-29 21:59:54 +0000
committerrandomdan <randomdan@localhost>2010-12-29 21:59:54 +0000
commitf3503b00cbd8bf965d615a77d9836e078fb84842 (patch)
tree0b9d2d176a0a37577a5c5e0be3f164c330d51188 /project2/fileRows.cpp
parentFix row numbering in rowSets to behave as before (1 upwards, not 0 upwards) (diff)
downloadproject2-f3503b00cbd8bf965d615a77d9836e078fb84842.tar.bz2
project2-f3503b00cbd8bf965d615a77d9836e078fb84842.tar.xz
project2-f3503b00cbd8bf965d615a77d9836e078fb84842.zip
Remove file create date for not being the create date
Add option for keeping the blank lines in file rows
Diffstat (limited to 'project2/fileRows.cpp')
-rw-r--r--project2/fileRows.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/project2/fileRows.cpp b/project2/fileRows.cpp
index b7d0c7e..7251a9f 100644
--- a/project2/fileRows.cpp
+++ b/project2/fileRows.cpp
@@ -11,6 +11,7 @@ FileRows::FileRows(const xmlpp::Element * p) :
path(p->get_attribute_value("path")),
fieldSep(p->get_attribute_value("fieldSep")[0]),
quoteChar(p->get_attribute_value("quoteChar")[0]),
+ keepBlankRows(p->get_attribute_value("keepBlankRows") == "true"),
newline(p->get_attribute_value("newline")),
encoding(p->get_attribute_value("encoding"))
{
@@ -101,7 +102,7 @@ FileRows::execute(const RowProcessor * rp) const
curCol++;
}
}
- if (!mkCols && !values.empty()) {
+ if (!mkCols && (keepBlankRows || !values.empty())) {
while (values.size() < columns.size()) {
values.push_back(ValPtr(new Glib::ustring()));
curCol++;