1
/* -*- mode: java; c-basic-offset: 4; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=4:tabstop=4:smarttab:
4
* Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 2 of the License.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29
#include "Properties.hpp"
30
#include "hrt_utils.h"
33
using std::ostringstream;
37
using utils::Properties;
43
* Parses the benchmark's command-line arguments.
45
static void parseArguments(int argc, const char* argv[]);
48
* Creates an instance.
53
* Deletes an instance.
64
// command-line arguments
65
static vector< string > propFileNames;
66
static string logFileName;
68
static void exitUsage();
87
// driver intializers/finalizers
90
virtual void loadProperties();
91
virtual void initProperties();
92
virtual void printProperties();
93
virtual void openLogFile();
94
virtual void closeLogFile();
96
// benchmark operations
97
virtual void runTests() = 0;
98
virtual void begin(const string& name);
99
virtual void commit(const string& name);