Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv22928
Modified Files:
UI-Console.cpp UI.cpp UI.h UI-Msg.cpp UI-Msg.h
Log Message:
Improvements on compiler autodection message handling.
Index: UI.h
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI/UI.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** UI.h 11 Sep 2007 20:16:51 -0000 1.17
--- UI.h 12 Sep 2007 18:58:43 -0000 1.18
***************
*** 265,268 ****
--- 265,275 ----
virtual UIMsg *msgPlanBatchUnregister(std::string _name);
+ /** Emit a compiler autodetection message
+ *
+ * \return Created message
+ */
+ virtual UIMsg *msgCompilerAutodetect(void);
+
+
/** Emit a compiler registration message
*
Index: UI.cpp
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI/UI.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** UI.cpp 11 Sep 2007 20:16:51 -0000 1.16
--- UI.cpp 12 Sep 2007 18:58:43 -0000 1.17
***************
*** 331,334 ****
--- 331,342 ----
}
+ UIMsg *UI::msgCompilerAutodetect(void)
+ {
+ UIMsg *msg = new UIMsgCompilerAutodetect();
+ postMsg(msg);
+
+ return(msg);
+ }
+
UIMsg *UI::msgPlanCompilerRegister(std::string _name)
{
Index: UI-Msg.h
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI/UI-Msg.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** UI-Msg.h 6 Sep 2007 17:12:35 -0000 1.8
--- UI-Msg.h 12 Sep 2007 18:58:43 -0000 1.9
***************
*** 275,278 ****
--- 275,284 ----
};
+ class UIMsgCompilerAutodetect : public UIMsg {
+ public:
+ UIMsgCompilerAutodetect();
+ virtual ~UIMsgCompilerAutodetect();
+ };
+
class UIMsgPlanCompilerRegister : public UIMsg {
public:
Index: UI-Msg.cpp
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI/UI-Msg.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** UI-Msg.cpp 21 Aug 2007 19:53:14 -0000 1.7
--- UI-Msg.cpp 12 Sep 2007 18:58:43 -0000 1.8
***************
*** 307,313 ****
}
-
-
-
UIMsgPlanRegister::UIMsgPlanRegister(std::string _file,
int _default)
--- 307,310 ----
***************
*** 379,382 ****
--- 376,389 ----
}
+ UIMsgCompilerAutodetect::UIMsgCompilerAutodetect()
+ : UIMsg(Progress)
+ {
+ addAction(CompilerAutodetect);
+ }
+
+ UIMsgCompilerAutodetect::~UIMsgCompilerAutodetect()
+ {
+ }
+
UIMsgPlanCompilerUnregister::UIMsgPlanCompilerUnregister(std::string _name)
: UIMsg()
Index: UI-Console.cpp
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI/UI-Console.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** UI-Console.cpp 11 Sep 2007 20:16:51 -0000 1.9
--- UI-Console.cpp 12 Sep 2007 18:58:43 -0000 1.10
***************
*** 161,165 ****
curmsg+=objectField(_msg, "name");
break;
!
case UIMsg::PlanCompilerRegister:
curmsg+="Registering compiler ";
--- 161,167 ----
curmsg+=objectField(_msg, "name");
break;
! case UIMsg::CompilerAutodetect:
! curmsg+="Auto-detecting compilers";
! break;
case UIMsg::PlanCompilerRegister:
curmsg+="Registering compiler ";
|