// Options.cpp #include #include "Options.h" using namespace std; // The singleton object is not created until it's needed. Options *Options::s_options = 0; /** * makeOptions */ Options *Options::makeOptions() { if (s_options == 0) { // Create the singleton object. s_options = new Options(); } return s_options; }