Debug/Trace Output Alternative Test / 3-20-2013
(I) Simple Example -- Phil's preferred vernacular:
Source Code: static const char* mname ("LoadSaveMgr::doSaveModelFile"); ... std::cout << mname << " " << menuCommandStr (cmd) << std::endl; |
Output: LoadSaveMgr::doSaveModelFile SAVE_MODEL_FILE |
(I) Simple Example -- Possible Qt Alternative (with Qt 4.8.4):
Source Code: std::cout << Q_FUNC_INFO << " " << menuCommandStr (cmd) << std::endl; |
Output: void __cdecl LoadSaveMgr::doSaveModelFile(int,const class QString *) SAVE_MODEL_FILE |
(II) More Complex Example -- Phil's preferred vernacular:
Source Code: static const char* mname ("LoadSaveMgr::doSaveModelFile"); ... |
Output: LoadSaveMgr::doSaveModelFile SAVE_MODEL_FILE; no model; RiverWare Workspace |
(II) More Complex Example -- Possible Qt Alternative (with Qt 4.8.4):
Source Code: std::cout << Q_FUNC_INFO << " " << menuCommandStr (cmd) |
Output: void __cdecl LoadSaveMgr::doSaveModelFile(int,const class QString *) SAVE_MODEL_FILE; no model; RiverWare Workspace |
---