diff options
Diffstat (limited to 'project2/fileRows.cpp')
-rw-r--r-- | project2/fileRows.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/project2/fileRows.cpp b/project2/fileRows.cpp index 3a16ed6..f9bdebf 100644 --- a/project2/fileRows.cpp +++ b/project2/fileRows.cpp @@ -2,10 +2,10 @@ #include "xmlObjectLoader.h" #include "exceptions.h" -ElementLoaderImpl<_FileRows> filerowsLoader("filerows"); +ElementLoaderImpl<FileRows> filerowsLoader("filerows"); -_FileRows::_FileRows(const xmlpp::Element * p) : - _SourceObject(p), +FileRows::FileRows(const xmlpp::Element * p) : + SourceObject(p), PerRowValues(p), path(p->get_attribute_value("path")), fieldSep(p->get_attribute_value("fieldSep")[0]), @@ -21,35 +21,35 @@ _FileRows::_FileRows(const xmlpp::Element * p) : } } -_FileRows::~_FileRows() +FileRows::~FileRows() { } void -_FileRows::loadComplete(const CommonObjects *) +FileRows::loadComplete(const CommonObjects *) { } void -_FileRows::setFilter(const Glib::ustring &) +FileRows::setFilter(const Glib::ustring &) { throw NotSupported(__PRETTY_FUNCTION__); } unsigned int -_FileRows::columnCount() const +FileRows::columnCount() const { return columns.size(); } const Glib::ustring & -_FileRows::getColumnName(unsigned int col) const +FileRows::getColumnName(unsigned int col) const { return columns[col]; } void -_FileRows::execute(const RowProcessor * rp) const +FileRows::execute(const RowProcessor * rp) const { rowNum = 0; FileStarChannel c(doOpen()); @@ -113,25 +113,25 @@ _FileRows::execute(const RowProcessor * rp) const } const Glib::ustring & -_FileRows::getCurrentValue(unsigned int col) const +FileRows::getCurrentValue(unsigned int col) const { return *values[col]; } bool -_FileRows::isNull(unsigned int col) const +FileRows::isNull(unsigned int col) const { return false; } bool -_FileRows::isNull(const Glib::ustring & col) const +FileRows::isNull(const Glib::ustring & col) const { return false; } const Glib::ustring & -_FileRows::getCurrentValue(const Glib::ustring & id) const +FileRows::getCurrentValue(const Glib::ustring & id) const { Values::const_iterator v = values.begin(); for (Columns::const_iterator i = columns.begin(); i != columns.end(); i++, v++) { @@ -143,7 +143,7 @@ _FileRows::getCurrentValue(const Glib::ustring & id) const } void -_FileRows::addColumn(const Glib::ustring & rawtok) const +FileRows::addColumn(const Glib::ustring & rawtok) const { columns.push_back(rawtok); Glib::ustring & tok(columns.back()); @@ -158,7 +158,7 @@ _FileRows::addColumn(const Glib::ustring & rawtok) const } FileStarChannel -_FileRows::doOpen() const +FileRows::doOpen() const { FILE * f = fopen(path->c_str(), "r"); if (!f) { |