Template / design pattern for C++ constructor and accessors
Archive - Originally posted on "The Horse's Mouth" - 2014-12-29 17:39:17 - Graham EllisWould you believe I'm giving a C++ course on Monday, 29th December? If a customer wants a weekend or holiday time course, yes, we can arrange it!
From this afternoon - a first example in C++ - [here]. I've defined the API to a class, the class itself and the first (test) program all in the one file with clear markers to how you would split it once it was set up and working. There are comments, too , showing you the various parts of the program.
Just one delegate these few days; he's using my example template overnight (I'm going to use the rail survey data as my object source) to create a different class using objects of a type relevant to him, and using the property accessors and calculators along with what I have - a simple example of a design pattern.