Skip to content

Instantly share code, notes, and snippets.

@petrstepanov
Last active July 16, 2019 03:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petrstepanov/7cb67ec3876e2f44c455b59f27e97f31 to your computer and use it in GitHub Desktop.
Save petrstepanov/7cb67ec3876e2f44c455b59f27e97f31 to your computer and use it in GitHub Desktop.
CERN ROOT MVP Presenter source
#include "__Presenter.h"
#include "__View.h"
#include "../AbstractPresenter.h"
#include "../../model/Model.h"
#include <TGFileDialog.h>
__Presenter::__Presenter(__View* view) : AbstractPresenter<Model, __View>(view) {
model = instantinateModel();
onInitModel();
}
__Presenter::~__Presenter(){}
Model* __Presenter::instantinateModel() {
return Model::getInstance();
}
// Slots from Model
void __Presenter::onInitModel() {
}
// Slots from View
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment