aboutsummaryrefslogtreecommitdiff
path: root/src/armnnUtils/CsvReader.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/armnnUtils/CsvReader.hpp')
-rw-r--r--src/armnnUtils/CsvReader.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/armnnUtils/CsvReader.hpp b/src/armnnUtils/CsvReader.hpp
new file mode 100644
index 0000000000..0d529804b6
--- /dev/null
+++ b/src/armnnUtils/CsvReader.hpp
@@ -0,0 +1,25 @@
+//
+// Copyright © 2017 Arm Ltd. All rights reserved.
+// See LICENSE file in the project root for full license information.
+//
+#pragma once
+
+#include <vector>
+#include <string>
+
+namespace armnnUtils
+{
+
+struct CsvRow
+{
+ std::vector<std::string> values;
+};
+
+class CsvReader
+{
+public:
+ static std::vector<CsvRow> ParseFile(const std::string& csvFile);
+
+ static std::vector<CsvRow> ParseVector(const std::vector<std::string>& csvVector);
+};
+} // namespace armnnUtils