Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Compiler
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv22288
Modified Files:
Compiler-Options.cpp Compiler-Options.h
Log Message:
setId() method added.
Index: Compiler-Options.h
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Compiler/Compiler-Options.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Compiler-Options.h 10 Sep 2007 16:40:10 -0000 1.7
--- Compiler-Options.h 12 Sep 2007 20:20:53 -0000 1.8
***************
*** 92,95 ****
--- 92,100 ----
virtual std::string Id(void);
+ /** Set identifier.
+ * \param _id New identifier.
+ */
+ virtual void setId(std::string _id);
+
/** Retrieve an option by its identifier.
* \param _id Option's identifier
Index: Compiler-Options.cpp
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Compiler/Compiler-Options.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Compiler-Options.cpp 10 Sep 2007 16:40:10 -0000 1.7
--- Compiler-Options.cpp 12 Sep 2007 20:20:53 -0000 1.8
***************
*** 95,98 ****
--- 95,103 ----
}
+ void CompilerOptions::setId(std::string _id)
+ {
+ id=_id;
+ }
+
void CompilerOptions::add(CBM::CompilerOption *_option)
{
|