telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
David Beck | ecb56cd | 2018-09-05 12:52:57 +0100 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 4 | // |
| 5 | #pragma once |
| 6 | |
| 7 | #include <vector> |
| 8 | #include <string> |
| 9 | |
| 10 | namespace armnnUtils |
| 11 | { |
| 12 | |
| 13 | struct CsvRow |
| 14 | { |
| 15 | std::vector<std::string> values; |
| 16 | }; |
| 17 | |
| 18 | class CsvReader |
| 19 | { |
| 20 | public: |
| 21 | static std::vector<CsvRow> ParseFile(const std::string& csvFile); |
| 22 | |
| 23 | static std::vector<CsvRow> ParseVector(const std::vector<std::string>& csvVector); |
| 24 | }; |
| 25 | } // namespace armnnUtils |