blob: 82e6d74361599c9bf83748edf791fad3fe178f3e [file] [log] [blame]
// Copyright 2018 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 SRC_CONNECTIVITY_NETWORK_TESTING_NETEMUL_RUNNER_MODEL_NETWORK_H_
#define SRC_CONNECTIVITY_NETWORK_TESTING_NETEMUL_RUNNER_MODEL_NETWORK_H_
#include "endpoint.h"
#include "src/lib/fxl/macros.h"
#include "src/lib/json_parser/json_parser.h"
namespace netemul {
namespace config {
class Network {
public:
Network() = default;
Network(Network&& other) = default;
bool ParseFromJSON(const rapidjson::Value& value, json::JSONParser* json_parser);
const std::string& name() const;
const std::vector<Endpoint>& endpoints() const;
private:
std::string name_;
std::vector<Endpoint> endpoints_;
FXL_DISALLOW_COPY_AND_ASSIGN(Network);
};
} // namespace config
} // namespace netemul
#endif // SRC_CONNECTIVITY_NETWORK_TESTING_NETEMUL_RUNNER_MODEL_NETWORK_H_