Replace ad-hoc or locally defined power-of-2 tests
[gem5.git] / base / stats / mysql.hh
index fcbe8c5e0f6ae94bbe02a00da6a0b747cf335aab..25ea22b97d7f87422a8247946246f56058b24d0e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2004 The Regents of The University of Michigan
+ * Copyright (c) 2004-2005 The Regents of The University of Michigan
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -37,6 +37,7 @@
 namespace MySQL { class Connection; }
 namespace Stats {
 
+class MainBin;
 class DistDataData;
 class MySqlRun;
 bool MySqlConnected();
@@ -130,7 +131,7 @@ class MySql : public Output
 
   protected:
     // Output helper
-    void output(const std::string &bin);
+    void output(MainBin *bin);
     void output(const DistDataData &data);
     void output(const ScalarData &data);
     void output(const VectorData &data);
@@ -140,7 +141,7 @@ class MySql : public Output
     void output(const FormulaData &data);
 
     void configure();
-    void configure(const StatData &data, std::string type);
+    bool configure(const StatData &data, std::string type);
     void configure(const ScalarData &data);
     void configure(const VectorData &data);
     void configure(const DistData &data);