blob: 42ab9e26504b40ab1d60be551b73bf80f3668fd2 [file] [log] [blame]
// Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GESTURES_SALSA_TRY_TOUCH_EXPERIMENT_RUNNER_H_
#define GESTURES_SALSA_TRY_TOUCH_EXPERIMENT_RUNNER_H_
#include <string>
#include <base/stringprintf.h>
#include <base/string_util.h>
#include <ncurses.h>
#include "experiment.h"
class SalsaExperimentRunner {
public:
bool LoadExperiment(const std::string &exp_string);
void run() const;
private:
static void StartCurses();
static void EndCurses();
std::string Decode(const std::string &exp_string) const;
Experiment exp_;
};
#endif // GESTURES_SALSA_TRY_TOUCH_EXPERIMENT_RUNNER_H_