blob: 169890a6f197fb010d77f9863dc50d6b650fcc58 [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 <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_