diff options
Diffstat (limited to 'project2/common/presenter.cpp')
-rw-r--r-- | project2/common/presenter.cpp | 80 |
1 files changed, 73 insertions, 7 deletions
diff --git a/project2/common/presenter.cpp b/project2/common/presenter.cpp index 48dd27e..b8fc545 100644 --- a/project2/common/presenter.cpp +++ b/project2/common/presenter.cpp @@ -4,6 +4,36 @@ #include "appEngine.h" #include <boost/foreach.hpp> +NameValuePairPresenter::NameValuePairPresenter() +{ +} + +NameValuePairPresenter::~NameValuePairPresenter() +{ +} + +void +NameValuePairPresenter::addAttribute(const Glib::ustring & name, const VariableType & value) const +{ + addNamedValue(name, value); +} + +RowSetPresenter::RowSetPresenter() +{ +} + +RowSetPresenter::~RowSetPresenter() +{ +} + +MultiRowSetPresenter::MultiRowSetPresenter() +{ +} + +MultiRowSetPresenter::~MultiRowSetPresenter() +{ +} + Presenter::Presenter() { } @@ -19,25 +49,25 @@ Presenter::pushSub(const Glib::ustring & name) const } void -Presenter::addAttr(const Glib::ustring & name, const VariableType & value) const +Presenter::addAttribute(const Glib::ustring & name, const VariableType & value) const { - addAttr(name, Glib::ustring(), value); + addAttribute(name, Glib::ustring(), value); } void -Presenter::addAttr(const Glib::ustring & name, const Glib::ustring & ns, const VariableType & value) const +Presenter::addAttribute(const Glib::ustring & name, const Glib::ustring & ns, const VariableType & value) const { - addField(name, ns, value); + addNamedValue(name, ns, value); } void -Presenter::addField(const Glib::ustring & name, const VariableType & value) const +Presenter::addNamedValue(const Glib::ustring & name, const VariableType & value) const { - addField(name, Glib::ustring(), value); + addNamedValue(name, Glib::ustring(), value); } void -Presenter::addField(const Glib::ustring & name, const Glib::ustring & ns, const VariableType & value) const +Presenter::addNamedValue(const Glib::ustring & name, const Glib::ustring & ns, const VariableType & value) const { pushSub(name, ns); addText(value); @@ -49,3 +79,39 @@ ContentPresenter::ContentPresenter(const Glib::ustring & ct) : { } + +void +Presenter::addNewRowSet(const Glib::ustring & name) const +{ + pushSub(name); +} +void +Presenter::addNewRowSet(const Glib::ustring & name, const Glib::ustring & ns) const +{ + pushSub(name, ns); +} +void +Presenter::addNewRow(const Glib::ustring & name) const +{ + pushSub(name); +} +void +Presenter::finishRow() const +{ + popSub(); +} +void +Presenter::finishRowSet() const +{ + popSub(); +} + +void +MultiRowSetPresenter::declareNamespace(const Glib::ustring &, const Glib::ustring &) const +{ +} +void +MultiRowSetPresenter::setNamespace(const Glib::ustring &, const Glib::ustring &) const +{ +} + |