Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Benchmark
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv32089
Modified Files:
Package.h
Log Message:
SWIG directives.
Index: Package.h
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Benchmark/Package.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Package.h 22 Jan 2007 18:21:47 -0000 1.1
--- Package.h 26 Jan 2007 12:58:32 -0000 1.2
***************
*** 15,18 ****
--- 15,33 ----
#include <vector>
+ #ifdef SWIG
+
+ /* !!! If in SWIG parser, we need to define CBM::Benchmark so that all methods get
+ * correctly wrapped. Hope there's a better solution... */
+ %module CBM
+ %{
+ #include <Benchmark/Benchmark.h>
+ %}
+ #include <Benchmark/Benchmark.h>
+ #define CBM_BM CBM::Benchmark
+
+ #else
+ # define CBM_BM class Benchmark
+ #endif
+
namespace CBM {
class System;
***************
*** 195,203 ****
\sa Benchmarks()
\return A pointer to the benchmark instance */
! virtual class Benchmark *Benchmark(int i);
/** Get a benchmark according to its identifier.
\return References to a Benchmark object */
! virtual class Benchmark *Benchmark(std::string bid);
/** Stores benchmark status
--- 210,218 ----
\sa Benchmarks()
\return A pointer to the benchmark instance */
! virtual CBM_BM *Benchmark(int i);
/** Get a benchmark according to its identifier.
\return References to a Benchmark object */
! virtual CBM_BM *Benchmark(std::string bid);
/** Stores benchmark status
|