OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. | |
3 * | |
4 * Use of this source code is governed by a BSD-style license | |
5 * that can be found in the LICENSE file in the root of the source | |
6 * tree. An additional intellectual property rights grant can be found | |
7 * in the file PATENTS. All contributing project authors may | |
8 * be found in the AUTHORS file in the root of the source tree. | |
9 */ | |
10 | |
11 #ifndef WEBRTC_TOOLS_NETWORK_TESTER_CONFIG_READER_H_ | |
12 #define WEBRTC_TOOLS_NETWORK_TESTER_CONFIG_READER_H_ | |
13 | |
14 #include <fstream> | |
15 #include <string> | |
16 | |
17 #include "webrtc/base/constructormagic.h" | |
18 #include "webrtc/base/optional.h" | |
19 | |
20 namespace webrtc { | |
21 | |
22 class ConfigReader { | |
23 public: | |
24 struct Config { | |
25 int packet_send_interval_ms; | |
26 int packet_size; | |
27 int execution_time_ms; | |
28 }; | |
29 explicit ConfigReader(const std::string& config_file_path); | |
30 ~ConfigReader(); | |
31 | |
32 rtc::Optional<Config> GetNextConfig(); | |
33 std::ifstream config_stream_; | |
34 RTC_DISALLOW_COPY_AND_ASSIGN(ConfigReader); | |
stefan-webrtc
2017/03/30 07:56:53
Empty line above this
michaelt
2017/03/30 08:29:26
Done.
| |
35 }; | |
36 | |
37 } // namespace webrtc | |
38 | |
39 #endif // WEBRTC_TOOLS_NETWORK_TESTER_CONFIG_READER_H_ | |
OLD | NEW |