Project 4 Corrections and Clarifications

Updated 10/30/2019

Most recent items appear first

Page numbers refer to the pdf document


NOTICE:

This document is part of the project specifications.

Your solution must follow these corrections and clarifications.


P. 15, first two bullet points; P. 17, 3rd bullet point: Clarification of requirement to use maps of strings to pointers-to-member-functions of Controller. 

The intent of this requirement is to ensure you get some practice using pointers-to-member-functions directly. Therefore, you may not use a map of strings to function objects such as std::function<>, bind<>, or your own equivalent that "hides" the pointer and its syntax. You must use a map of strings to "bare" pointers to member functions. Because your Controller member functions must be const-correct, you can expect to need at least two such maps, one containing pointers to const member functions, and another containing pointers to non-const member functions.  Depending on your Controller design, you might need three  or more maps if some of your command functions have parameters.  When you fetch the pointer from the map, you will need to use the pointer-to-member-function syntax to invoke the function using this to designate the object whose member function is being called. Review the lecture notes on pointers-to-member functions.