Merge "[l2l3 stack] implements new arp state machine & arp buffering"
[samplevnf.git] / VNFs / DPPD-PROX / tools / flow_extract / programconfig.hpp
1 /*
2 // Copyright (c) 2010-2017 Intel Corporation
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //     http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 */
16
17 #ifndef _PROGRAMCONFIG_H_
18 #define _PROGRAMCONFIG_H_
19
20 #include <string>
21 #include <inttypes.h>
22
23 using namespace std;
24
25 class ProgramConfig {
26 public:
27         ProgramConfig();
28         string getUsage() const;
29         int parseOptions(int argc, char *argv[]);
30         const string& getError() const {return m_error;}
31
32         string path_file_in_pcap;
33         string path_dir_out;
34         string path_file_dest_lua;
35         uint32_t max_pkts;
36         uint32_t max_streams;
37         uint32_t sampleCount;
38         uint32_t flowTableSize;
39         bool run_first_step;
40         bool write_pcaps;
41 private:
42         int checkConfig();
43         string m_error;
44         string m_programName;
45 };
46
47 #endif /* _PROGRAMCONFIG_H_ */