-
Notifications
You must be signed in to change notification settings - Fork 1
/
options_vars.hpp
92 lines (77 loc) · 2.39 KB
/
options_vars.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/**
* Options_Vars.hpp -
* @author: Jonathan Beard
* @version: Fri Dec 14 13:41:06 2012
*/
#ifndef _OPTIONSVARS_HPP_
#define _OPTIONSVARS_HPP_ 1
#include <cstdint>
#include <string>
struct Options_Vars{
/**
* Options_Vars - calls load_defaults by default
*/
Options_Vars();
virtual ~Options_Vars();
/**
* load_defaults - sets all the struct data members to
* their default values, defined in src file
*/
void load_defaults();
/**
* get_default_string - simply returns the default string,
* at the moment it is set to "NONE". This method only
* included as a convenience so the same string doesn't have
* to be retyped multiple types
* @return std::string
*/
std::string get_default_string();
/**
* number of spaces or actual tabs to use for TAB
*/
std::string tab;
/**
* is_string_default - returns true if the given string
* is equal to the value returned by get_default_string
* @param val - std::string
* @return bool
*/
bool is_string_default(const std::string &val);
/* misc */
bool help;
bool verbose;
bool dry_run;
bool output_topology_image;
bool clean;
bool generate_ap_v2_compat;
/* by default pwd of exe */
std::string send_code_to_directory;
/* optimization level */
int64_t optimization_level;
bool use_genetic_algorithm;
bool use_simulated_annealing;
bool enter_graph_modeler_mode;
/* image options */
std::string unmapped_image_suffix;
std::string mapped_image_suffix;
std::string dir_for_images;
bool hardware_map_image;
/* specs for mapping */
std::string map_objective; // objectives for performance
std::string hardware_defs_file;
std::string comm_hardware_defs_file;
std::string hardware_configuration_rules;
/* set max allowable buffer size */
int64_t max_buffer_size;
/* generate deployment package for multiple targets */
bool generate_run_package;
/* dump options */
bool dump_cpp_output;
bool dump_include_file_list;
bool dump_parse_stream;
/* input file */
std::string input_full_path;
std::string input_filename;
std::string input_dir_path;
};
#endif /* END _OPTIONSVARS_HPP_ */