I'm trying to apply MVC architecture on my project. Refering to spring-webmvc, I found that View will be rendered by ModelMap(a class inherit LinkHashMap<String, Object>).
However, in C++, not everything is an Object. A view cannot simply get attributes it wants from map<string, object>. How to deal with this problem?
Aucun commentaire:
Enregistrer un commentaire