Pass data in MVC pattern
I have a Sensor class that I want to represent in a GUI using MVC, how can I do this if I cannot have a reference to the Sensor in the View, and so its members?
Confused about MVC Pattern
I just started to learn some architecture patterns and right now i’m learning about MVC while making a small project in c++.
In this specific project i have a list of Players (objects) that are composed by 6 strings, 2 integers and 2 floats, now in the view i need to display each Player with his attributes.
The question is: how do i do this? i cannot pass the list of Players because the View doesn’t know about the Player class (or the Model)
Im confused about MVC Pattern
I just started to learn some architecture patterns and right now i’m learning about MVC while making a small project in c++.
In this specific project i have a list of Players (objects) that are composed by 6 strings, 2 integers and 2 floats, now in the view i need to display each Player with his attributes.
The question is: how do i do this? i cannot pass the list of Players because the View doesn’t know about the Player class (or the Model)