Model View Controller

From Bitpost wiki
Revision as of 21:36, 24 March 2016 by M (talk | contribs) (Created page with "C++11 Model View Controller skeleton Three objects contain most of the functionality. In addition, utilities.* provides crosscut features like global logging. '''CONTROLLER...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

C++11 Model View Controller skeleton

Three objects contain most of the functionality. In addition, utilities.* provides crosscut features like global logging.

CONTROLLER header

#include "HTDJInterface.h"
#include "HTDJLocalModel.h"
#include "HTDJRemoteModel.h"

class HTDJController
    HTDJController(
        HTDJLocalModel& local,
        HTDJRemoteModel& remote,
        HTDJInterface& hinterface

VIEW header

class HTDJController;
class HTDJInterface
{
   HTDJInterface( HTDJController* p_controller)

MODEL header

class HTDJLocalModel;

// Note that we want GLOBAL ACCESS to a GENERIC local model.
extern HTDJLocalModel* g_p_local;
class HTDJLocalModel
{
    HTDJLocalModel();