Orbiter 2022
Combinatorial Objects
packing_long_orbits_description.cpp
Go to the documentation of this file.
1/*
2 * packing_long_orbits_description.cpp
3 *
4 * Created on: Sep 3, 2020
5 * Author: betten
6 */
7
8
9
10
11#include "orbiter.h"
12
13using namespace std;
14
15namespace orbiter {
16namespace layer5_applications {
17namespace packings {
18
19
21{
22 f_split = FALSE;
23 split_r = 0;
24 split_m = 0;
25
26
28 orbit_length = 0;
29
31 //std::string mixed_orbits_length_text;
32
33
35 //std::string process_list_of_cases_from_file_fname;
36
38 //std::string solution_path;
39
41
42 f_solve = FALSE;
43
45}
46
48{
49}
50
52 int verbose_level)
53{
54 int i;
56
57
58
59 cout << "packing_long_orbits_description::read_arguments" << endl;
60 for (i = 0; i < argc; i++) {
61
62
63 if (ST.stringcmp(argv[i], "-split") == 0) {
64 f_split = TRUE;
65 split_r = ST.strtoi(argv[++i]);
66 split_m = ST.strtoi(argv[++i]);
67 cout << "-split " << split_r << " " << split_m << " " << endl;
68 }
69
70
71 else if (ST.stringcmp(argv[i], "-orbit_length") == 0) {
73 orbit_length = ST.strtoi(argv[++i]);
74 cout << "-orbit_length " << orbit_length << " " << endl;
75 }
76
77 else if (ST.stringcmp(argv[i], "-mixed_orbits") == 0) {
79 mixed_orbits_length_text.assign(argv[++i]);
80 cout << "-mixed_orbits " << mixed_orbits_length_text << " " << endl;
81 }
82
83
84 else if (ST.stringcmp(argv[i], "-list_of_cases_from_file") == 0) {
86 list_of_cases_from_file_fname.assign(argv[++i]);
87 cout << "-list_of_cases_from_file "
89 << endl;
90 }
91
92
93
94
95 else if (ST.stringcmp(argv[i], "-solution_path") == 0) {
97 solution_path.assign(argv[++i]);
98 cout << "-solution_path " << solution_path << endl;
99 }
100
101 else if (ST.stringcmp(argv[i], "-create_graphs") == 0) {
103 cout << "-create_graphs " << endl;
104 }
105
106 else if (ST.stringcmp(argv[i], "-solve") == 0) {
107 f_solve = TRUE;
108 cout << "-solve " << endl;
109 }
110
111 else if (ST.stringcmp(argv[i], "-read_solutions") == 0) {
113 cout << "-read_solutions " << endl;
114 }
115
116 else if (ST.stringcmp(argv[i], "-end") == 0) {
117 cout << "-end" << endl;
118 break;
119 }
120 else {
121 cout << "ignoring argument " << argv[i] << endl;
122 }
123 } // next i
124
125
126 cout << "packing_long_orbits_description::read_arguments done" << endl;
127 return i + 1;
128}
129
131{
132 if (f_split) {
133 cout << "-split " << split_r << " " << split_m << " " << endl;
134 }
135
136
137 if (f_orbit_length) {
138 cout << "-orbit_length " << orbit_length << " " << endl;
139 }
140
141 if (f_mixed_orbits) {
142 cout << "-mixed_orbits " << mixed_orbits_length_text << " " << endl;
143 }
144
145
147 cout << "-list_of_cases_from_file "
149 << endl;
150 }
151
152
153
154
155 if (f_solution_path) {
156 cout << "-solution_path " << solution_path << endl;
157 }
158
159 if (f_create_graphs) {
160 cout << "-create_graphs " << endl;
161 }
162
163 if (f_solve) {
164 cout << "-solve " << endl;
165 }
166
167 if (f_read_solutions) {
168 cout << "-read_solutions " << endl;
169 }
170
171}
172
173
174
175}}}
176
functions related to strings and character arrays
#define TRUE
Definition: foundations.h:231
#define FALSE
Definition: foundations.h:234
the orbiter library for the classification of combinatorial objects