blob: 541fb57aa2d6067b1bd2386ea8d750cd8f2d0f2d [file] [log] [blame]
// Copyright 2016 The Fuchsia 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 PERIDOT_EXAMPLES_TODO_CPP_GENERATOR_H_
#define PERIDOT_EXAMPLES_TODO_CPP_GENERATOR_H_
#include <random>
#include <string>
#include <vector>
#include <src/lib/fxl/macros.h>
namespace todo {
class Generator {
public:
explicit Generator(std::default_random_engine* rng);
~Generator();
std::string Generate();
private:
std::default_random_engine* rng_;
std::uniform_int_distribution<> action_distribution_;
std::vector<std::string> actions_;
std::uniform_int_distribution<> object_distribution_;
std::vector<std::string> objects_;
std::string tag_;
FXL_DISALLOW_COPY_AND_ASSIGN(Generator);
};
} // namespace todo
#endif // PERIDOT_EXAMPLES_TODO_CPP_GENERATOR_H_