summaryrefslogtreecommitdiff
path: root/project2/view.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/view.hpp')
-rw-r--r--project2/view.hpp76
1 files changed, 0 insertions, 76 deletions
diff --git a/project2/view.hpp b/project2/view.hpp
deleted file mode 100644
index a065097..0000000
--- a/project2/view.hpp
+++ /dev/null
@@ -1,76 +0,0 @@
-#include "view.h"
-
-template <class Driver>
-_GenericView<Driver>::_GenericView(const xmlpp::Element * p) :
- _SourceObject(p),
- _View(p),
- Driver(p),
- node(NULL)
-{
-}
-
-template <class Driver>
-void
-_GenericView<Driver>::execute(xmlpp::Element * e) const
-{
- node = e->add_child(name);
- Driver::execute();
-}
-
-template <class Driver>
-void
-_GenericView<Driver>::rowReady() const
-{
- xmlpp::Element * record = node->add_child(recordName);
- unsigned int cols = Driver::columnCount();
- for (unsigned int col = 0; col < cols; col += 1) {
- if (!Driver::isNull(col)) {
- xmlpp::Element * ch = record->add_child(Driver::getColumnName(col));
- ch->set_child_text(Driver::getCurrentValue(col));
- }
- }
- executeChildren(record);
-}
-
-template <class Driver>
-unsigned int
-_GenericView<Driver>:: columnCount() const
-{
- return Driver::columnCount();
-}
-
-template <class Driver>
-void
-_GenericView<Driver>:: loadComplete()
-{
- Driver::loadComplete();
-}
-
-template <class Driver>
-bool
-_GenericView<Driver>:: isNull(const unsigned int id) const
-{
- return Driver::isNull(id);
-}
-
-template <class Driver>
-const Glib::ustring &
-_GenericView<Driver>:: getCurrentValue(const unsigned int id) const
-{
- return Driver::getCurrentValue(id);
-}
-
-template <class Driver>
-const Glib::ustring &
-_GenericView<Driver>:: getCurrentValue(const Glib::ustring & id) const
-{
- return Driver::getCurrentValue(id);
-}
-
-template <class Driver>
-const Glib::ustring &
-_GenericView<Driver>:: getColumnName(const unsigned int id) const
-{
- return Driver::getColumnName(id);
-}
-