[Compbench-devel] CompBenchmarks++/libcompbenchmarks/UI UI-Console.cpp, 1.4, 1.5 UI.cpp, 1.10, 1.11
Brought to you by:
xfred
From: Frederic T. <xf...@us...> - 2007-07-31 17:25:49
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv28914 Modified Files: UI-Console.cpp UI.cpp UI.h UI-Msg.cpp UI-Msg.h Log Message: Many improvements and/or fixes. Index: UI.h =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI/UI.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** UI.h 13 Jun 2007 18:10:35 -0000 1.9 --- UI.h 31 Jul 2007 17:25:44 -0000 1.10 *************** *** 67,70 **** --- 67,72 ---- virtual UIMsg *msgPlanOptionsRegister(std::string _name); virtual UIMsg *msgPlanOptionsUnregister(std::string _name); + virtual UIMsg *msgPlanOptionRegister(std::string _name); + virtual UIMsg *msgPlanOptionUnregister(std::string _name); virtual UIMsg *msgPlanBenchmarkRegister(std::string _name); virtual UIMsg *msgPlanBenchmarkUnregister(std::string _name); Index: UI.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI/UI.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** UI.cpp 13 Jun 2007 18:10:35 -0000 1.10 --- UI.cpp 31 Jul 2007 17:25:44 -0000 1.11 *************** *** 290,293 **** --- 290,309 ---- } + UIMsg *UI::msgPlanOptionRegister(std::string _name) + { + UIMsg *msg = new UIMsgPlanOptionRegister(_name); + postMsg(msg); + + return(msg); + } + + UIMsg *UI::msgPlanOptionUnregister(std::string _name) + { + UIMsg *msg = new UIMsgPlanOptionUnregister(_name); + postMsg(msg); + + return(msg); + } + UIMsg *UI::msgPlanBenchmarkRegister(std::string _name) { Index: UI-Msg.h =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI/UI-Msg.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** UI-Msg.h 13 Jun 2007 18:10:35 -0000 1.4 --- UI-Msg.h 31 Jul 2007 17:25:44 -0000 1.5 *************** *** 60,63 **** --- 60,64 ---- PlanOptionsetRegister, PlanOptionsetUnregister, PlanOptionsRegister, PlanOptionsUnregister, + PlanOptionRegister, PlanOptionUnregister, PlanBenchmarkRegister, PlanBenchmarkUnregister }; *************** *** 280,283 **** --- 281,296 ---- }; + class UIMsgPlanOptionRegister : public UIMsg { + public: + UIMsgPlanOptionRegister(std::string _name); + virtual ~UIMsgPlanOptionRegister(); + }; + + class UIMsgPlanOptionUnregister : public UIMsg { + public: + UIMsgPlanOptionUnregister(std::string _name); + virtual ~UIMsgPlanOptionUnregister(); + }; + class UIMsgPlanBenchmarkRegister : public UIMsg { public: Index: UI-Msg.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI/UI-Msg.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** UI-Msg.cpp 13 Jun 2007 18:10:35 -0000 1.4 --- UI-Msg.cpp 31 Jul 2007 17:25:44 -0000 1.5 *************** *** 434,437 **** --- 434,459 ---- } + UIMsgPlanOptionRegister::UIMsgPlanOptionRegister(std::string _name) + : UIMsg() + { + addObject(UndefObject, _name); + addAction(PlanOptionRegister); + } + + UIMsgPlanOptionRegister::~UIMsgPlanOptionRegister() + { + } + + UIMsgPlanOptionUnregister::UIMsgPlanOptionUnregister(std::string _name) + : UIMsg() + { + addObject(UndefObject, _name); + addAction(PlanOptionUnregister); + } + + UIMsgPlanOptionUnregister::~UIMsgPlanOptionUnregister() + { + } + UIMsgPlanBenchmarkRegister::UIMsgPlanBenchmarkRegister(std::string _name) : UIMsg() Index: UI-Console.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI/UI-Console.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** UI-Console.cpp 13 Jun 2007 18:10:35 -0000 1.4 --- UI-Console.cpp 31 Jul 2007 17:25:44 -0000 1.5 *************** *** 246,250 **** case UIMsg::PlanOptionsetUnregister: ! curmsg+="Unregistering option set "; curmsg+=objectField(_msg, "name"); break; --- 246,250 ---- case UIMsg::PlanOptionsetUnregister: ! curmsg+="Unregistering option set "; curmsg+=objectField(_msg, "name"); break; |