Orbiter 2022
Combinatorial Objects
design_activity_description.cpp
Go to the documentation of this file.
1/*
2 * design_activity_description.cpp
3 *
4 * Created on: May 26, 2021
5 * Author: betten
6 */
7
8
9
10
11#include "orbiter.h"
12
13using namespace std;
14
15namespace orbiter {
16namespace layer5_applications {
17namespace apps_combinatorics {
18
19
21{
22#if 0
23 f_create_table = FALSE;
24 //std::string create_table_label;
25 //std::string create_table_group;
26#endif
27
29 //std::string load_table_label;
30 //std::string load_table_group;
31
32 //std::string load_table_H_label;
33 //std::string load_table_H_group_order;
34 //std::string load_table_H_gens;
36
39
40
43 //std::string extract_solutions_by_index_label;
44 //std::string extract_solutions_by_index_group;
45 //std::string extract_solutions_by_index_fname_solutions_in;
46 //std::string extract_solutions_by_index_fname_solutions_out;
47 //std::string extract_solutions_by_index_prefix;
48
53}
54
56{
57
58}
59
60
61int design_activity_description::read_arguments(int argc, std::string *argv,
62 int verbose_level)
63{
64 int f_v = (verbose_level >= 1);
65 int i;
67
68 if (f_v) {
69 cout << "design_activity_description::read_arguments" << endl;
70 }
71 for (i = 0; i < argc; i++) {
72
73 if (ST.stringcmp(argv[i], "-load_table") == 0) {
75 load_table_label.assign(argv[++i]);
76 load_table_group.assign(argv[++i]);
77 load_table_H_label.assign(argv[++i]);
78 load_table_H_group_order.assign(argv[++i]);
79 load_table_H_gens.assign(argv[++i]);
81 if (f_v) {
82 cout << "-load_table " << load_table_label
83 << " " << load_table_group
84 << " " << load_table_H_label
86 << " " << load_table_H_gens
88 << endl;
89 }
90 }
91 else if (ST.stringcmp(argv[i], "-canonical_form") == 0) {
93 if (f_v) {
94 cout << "-canonical_form, reading extra arguments" << endl;
95 }
96
98
99 i += Canonical_form_Descr->read_arguments(argc - (i + 1), argv + i + 1, verbose_level);
100 if (f_v) {
101 cout << "done reading -f_canonical_form " << endl;
102 cout << "i = " << i << endl;
103 cout << "argc = " << argc << endl;
104 if (i < argc) {
105 cout << "next argument is " << argv[i] << endl;
106 }
107 }
108 }
109 else if (ST.stringcmp(argv[i], "-extract_solutions_by_index_csv") == 0) {
111 extract_solutions_by_index_label.assign(argv[++i]);
112 extract_solutions_by_index_group.assign(argv[++i]);
115 extract_solutions_by_index_prefix.assign(argv[++i]);
116 if (f_v) {
117 cout << "-extract_solutions_by_index_csv "
123 << endl;
124 }
125 }
126 else if (ST.stringcmp(argv[i], "-extract_solutions_by_index_txt") == 0) {
128 extract_solutions_by_index_label.assign(argv[++i]);
129 extract_solutions_by_index_group.assign(argv[++i]);
132 extract_solutions_by_index_prefix.assign(argv[++i]);
133 if (f_v) {
134 cout << "-extract_solutions_by_index_txt "
140 << endl;
141 }
142 }
143 else if (ST.stringcmp(argv[i], "-export_inc") == 0) {
145 if (f_v) {
146 cout << "-export_inc " << endl;
147 }
148 }
149 else if (ST.stringcmp(argv[i], "-export_blocks") == 0) {
151 if (f_v) {
152 cout << "-export_blocks " << endl;
153 }
154 }
155 else if (ST.stringcmp(argv[i], "-row_sums") == 0) {
157 if (f_v) {
158 cout << "-row_sums " << endl;
159 }
160 }
161 else if (ST.stringcmp(argv[i], "-tactical_decomposition") == 0) {
163 if (f_v) {
164 cout << "-tactical_decomposition " << endl;
165 }
166 }
167
168 else if (ST.stringcmp(argv[i], "-end") == 0) {
169 break;
170 }
171 } // next i
172 cout << "design_activity_description::read_arguments done" << endl;
173 return i + 1;
174}
175
177{
178 if (f_canonical_form) {
179 cout << "-canonical_form " << endl;
181 }
182#if 0
183 if (f_create_table) {
184 cout << "-create_table " << create_table_label
185 << " " << create_table_group
186 << endl;
187 }
188#endif
189 if (f_load_table) {
190 cout << "-load_table " << load_table_label
191 << " " << load_table_group
192 << " " << load_table_H_label
194 << " " << load_table_H_gens
196 << endl;
197 }
199 cout << "-extract_solutions_by_index_csv "
205 << endl;
206 }
208 cout << "-extract_solutions_by_index_txt "
214 << endl;
215 }
216 if (f_export_inc) {
217 cout << "-export_inc " << endl;
218 }
219 if (f_export_blocks) {
220 cout << "-export_blocks " << endl;
221 }
222 if (f_row_sums) {
223 cout << "-row_sums " << endl;
224 }
226 cout << "-tactical_decomposition " << endl;
227 }
228}
229
230
231
232}}}
233
234
description of a classification of objects using class classification_of_objects
functions related to strings and character arrays
combinatorics::classification_of_objects_description * Canonical_form_Descr
#define NEW_OBJECT(type)
Definition: foundations.h:638
#define TRUE
Definition: foundations.h:231
#define FALSE
Definition: foundations.h:234
the orbiter library for the classification of combinatorial objects