20.11
CommandLineProcessor.hpp
Go to the documentation of this file.
1
//
2
// Copyright © 2019 Arm Ltd and Contributors. All rights reserved.
3
// SPDX-License-Identifier: MIT
4
//
5
#pragma once
6
7
#include <string>
8
9
namespace
armnn
10
{
11
12
namespace
gatordmock
13
{
14
15
/// Use Boost program options to process the command line.
16
/// -h or --help to print the options.
17
/// -n or --namespace to specify the UDS namespace that the server will be listening on.
18
/// -e or --echo print all sent and received packets to stdout.
19
/// -f or --file The path to the file that contains instructions for the mock gatord.
20
class
CommandLineProcessor
21
{
22
public
:
23
bool
ProcessCommandLine
(
int
argc,
char
* argv[]);
24
bool
IsEchoEnabled
()
25
{
26
return
m_Echo;
27
}
28
29
std::string
GetUdsNamespace
()
30
{
31
return
m_UdsNamespace;
32
}
33
std::string
GetCommandFile
()
34
{
35
return
m_File;
36
}
37
38
private
:
39
std::string m_UdsNamespace;
40
std::string m_File;
41
42
bool
m_Echo;
43
};
44
45
}
// namespace gatordmock
46
47
}
// namespace armnn
armnn::gatordmock::CommandLineProcessor::ProcessCommandLine
bool ProcessCommandLine(int argc, char *argv[])
Definition:
CommandLineProcessor.cpp:16
armnn::gatordmock::CommandLineProcessor::IsEchoEnabled
bool IsEchoEnabled()
Definition:
CommandLineProcessor.hpp:24
armnn
Copyright (c) 2020 ARM Limited.
Definition:
00_introduction.dox:25
armnn::gatordmock::CommandLineProcessor::GetCommandFile
std::string GetCommandFile()
Definition:
CommandLineProcessor.hpp:33
armnn::gatordmock::CommandLineProcessor::GetUdsNamespace
std::string GetUdsNamespace()
Definition:
CommandLineProcessor.hpp:29
armnn::gatordmock::CommandLineProcessor
Use Boost program options to process the command line.
Definition:
CommandLineProcessor.hpp:20
tests
profiling
gatordmock
CommandLineProcessor.hpp
Generated on Wed Nov 25 2020 09:59:11 for ArmNN by
1.8.13