Cpp/DesignPatterns/MVC-MVP/00_MVP.cpp
Application(std::string const& title)
  {
    // Title of the application
    std::cout << "Application title: " << title << std::endl;
    // Because ": m_presenter(*this)" is forbidden
    m_presenter = new Presenter(*this);
    // Simulate a user typing in the entry text widget.
    textEntry();
    // Do computation with the string return by the entry text widget.
    m_presenter->compute();
  }
//! \brief Create a fake GUI and runs it
\brief Create a fake GUI and runs it
\ brief Create a fake GUI and runs it
Application(std::string const& title)
  {
    std::cout << "Application title: " << title << std::endl;
    m_presenter = new Presenter(*this);
    textEntry();
    m_presenter->compute();
  }
Application ( std :: string const & title ) { std :: cout << " " << title << std :: endl ; m_presenter = new Presenter ( * this ) ; textEntry ( ) ; m_presenter -> compute ( ) ; }
\brief Create a fake GUI and runs it
\ brief Create a fake GUI and runs it
// Title of the application // Because ": m_presenter(*this)" is forbidden // Simulate a user typing in the entry text widget. // Do computation with the string return by the entry text widget.