blob: a7e43ada12f9de33b47161101b787c40c29504bd [file] [log] [blame]
Colm Donelan366023f2019-09-05 10:03:56 +01001//
2// Copyright © 2019 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5#pragma once
6
Colm Donelana85e2152019-09-09 11:59:08 +01007#include <string>
8
Colm Donelan366023f2019-09-05 10:03:56 +01009namespace armnn
10{
11
12namespace gatordmock
13{
14
15// Parses the command line to extract:
16//
Colm Donelana85e2152019-09-09 11:59:08 +010017//
Colm Donelan366023f2019-09-05 10:03:56 +010018
Colm Donelana85e2152019-09-09 11:59:08 +010019/**
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 Donelan366023f2019-09-05 10:03:56 +010024class CommandLineProcessor
25{
26public:
27 bool ProcessCommandLine(int argc, char *argv[]);
28
Colm Donelana85e2152019-09-09 11:59:08 +010029 std::string GetUdsNamespace() { return m_UdsNamespace; }
30
31private:
32 std::string m_UdsNamespace;
Colm Donelan366023f2019-09-05 10:03:56 +010033};
34
35} // namespace gatordmock
36
37} // namespace armnn