View.cpp 255 B

12345678910111213141516171819202122
  1. #include "View.h"
  2. using namespace Framework;
  3. View::View()
  4. : ReferenceCounter()
  5. {}
  6. View::~View()
  7. {}
  8. ActionView::ActionView( std::function< void( Model * ) > f )
  9. : View()
  10. {
  11. this->f = f;
  12. }
  13. void ActionView::update( Model *m )
  14. {
  15. f( m );
  16. }