Colm Donelan | 366023f | 2019-09-05 10:03:56 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2019 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | #pragma once |
| 6 | |
Colm Donelan | a85e215 | 2019-09-09 11:59:08 +0100 | [diff] [blame] | 7 | #include <string> |
| 8 | |
Colm Donelan | 366023f | 2019-09-05 10:03:56 +0100 | [diff] [blame] | 9 | namespace armnn |
| 10 | { |
| 11 | |
| 12 | namespace gatordmock |
| 13 | { |
| 14 | |
| 15 | // Parses the command line to extract: |
| 16 | // |
Colm Donelan | a85e215 | 2019-09-09 11:59:08 +0100 | [diff] [blame] | 17 | // |
Colm Donelan | 366023f | 2019-09-05 10:03:56 +0100 | [diff] [blame] | 18 | |
Colm Donelan | a85e215 | 2019-09-09 11:59:08 +0100 | [diff] [blame] | 19 | /** |
| 20 | * Use Boost program options to process the command line. |
| 21 | * -h or --help to print the options. |
| 22 | * -n or --namespace to specify the UDS namespace that the server will be listening on. |
| 23 | */ |
Colm Donelan | 366023f | 2019-09-05 10:03:56 +0100 | [diff] [blame] | 24 | class CommandLineProcessor |
| 25 | { |
| 26 | public: |
| 27 | bool ProcessCommandLine(int argc, char *argv[]); |
| 28 | |
Colm Donelan | a85e215 | 2019-09-09 11:59:08 +0100 | [diff] [blame] | 29 | std::string GetUdsNamespace() { return m_UdsNamespace; } |
| 30 | |
| 31 | private: |
| 32 | std::string m_UdsNamespace; |
Colm Donelan | 366023f | 2019-09-05 10:03:56 +0100 | [diff] [blame] | 33 | }; |
| 34 | |
| 35 | } // namespace gatordmock |
| 36 | |
| 37 | } // namespace armnn |