| // 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 GARNET_BIN_NETEMUL_RUNNER_MODEL_LAUNCH_SERVICE_H_ |
| #define GARNET_BIN_NETEMUL_RUNNER_MODEL_LAUNCH_SERVICE_H_ |
| |
| #include "launch_app.h" |
| #include "lib/fxl/macros.h" |
| #include "lib/json/json_parser.h" |
| |
| namespace netemul { |
| namespace config { |
| |
| class LaunchService { |
| public: |
| explicit LaunchService(std::string name); |
| LaunchService(LaunchService&& other) = default; |
| |
| bool ParseFromJSON(const rapidjson::Value& value, json::JSONParser* parser); |
| |
| const std::string& name() const; |
| const LaunchApp& launch() const; |
| |
| private: |
| std::string name_; |
| LaunchApp launch_; |
| |
| FXL_DISALLOW_COPY_AND_ASSIGN(LaunchService); |
| }; |
| |
| } // namespace config |
| } // namespace netemul |
| |
| #endif // GARNET_BIN_NETEMUL_RUNNER_MODEL_LAUNCH_SERVICE_H_ |