Orbiter 2022
Combinatorial Objects
spread_table_activity_description.cpp
Go to the documentation of this file.
1/*
2 * spread_table_activity_description.cpp
3 *
4 * Created on: Apr 3, 2021
5 * Author: betten
6 */
7
8
9
10
11#include "orbiter.h"
12
13using namespace std;
14
15namespace orbiter {
16namespace layer5_applications {
17namespace spreads {
18
19
20
22{
24 //std::string find_spread_text
25
27 //std::string find_spread_and_dualize_text
28
30 //std::string dualize_packing_text;
31
33 //std::string print_spreads_idx_text;
34
36 //std::string export_spreads_to_csv_fname;
37 //std::string export_spreads_to_csv_idx_text;
38
39
43
46
47}
48
50{
51
52}
53
55 int argc, std::string *argv,
56 int verbose_level)
57{
58 int i;
60
61 cout << "spread_table_activity_description::read_arguments" << endl;
62 for (i = 0; i < argc; i++) {
63
64 cout << "spread_table_activity_description::read_arguments, next argument is " << argv[i] << endl;
65
66 if (ST.stringcmp(argv[i], "-find_spread") == 0) {
68 find_spread_text.assign(argv[++i]);
69 cout << "-find_spread " << find_spread_text << endl;
70 }
71 else if (ST.stringcmp(argv[i], "-find_spread_and_dualize") == 0) {
73 find_spread_and_dualize_text.assign(argv[++i]);
74 cout << "-find_spread_and_dualize " << find_spread_and_dualize_text << endl;
75 }
76 else if (ST.stringcmp(argv[i], "-dualize_packing") == 0) {
78 dualize_packing_text.assign(argv[++i]);
79 cout << "-dualize_packing " << dualize_packing_text << endl;
80 }
81 else if (ST.stringcmp(argv[i], "-print_spreads") == 0) {
83 print_spreads_idx_text.assign(argv[++i]);
84 cout << "-print_spreads " << print_spreads_idx_text << endl;
85 }
86 else if (ST.stringcmp(argv[i], "-export_spreads_to_csv") == 0) {
88 export_spreads_to_csv_fname.assign(argv[++i]);
89 export_spreads_to_csv_idx_text.assign(argv[++i]);
90 cout << "-export_spreads_to_csv " << export_spreads_to_csv_fname
91 << " " << export_spreads_to_csv_idx_text << endl;
92 }
93 else if (ST.stringcmp(argv[i], "-find_spreads_containing_two_lines") == 0) {
97 cout << "-find_spreads_containing_two_lines "
100 << endl;
101 }
102
103 else if (ST.stringcmp(argv[i], "-find_spreads_containing_one_line") == 0) {
106 cout << "-find_spreads_containing_one_line "
108 << endl;
109 }
110
111 else if (ST.stringcmp(argv[i], "-end") == 0) {
112 cout << "-end" << endl;
113 break;
114 }
115 else {
116 cout << "spread_table_activity_description::read_arguments "
117 "unrecognized option " << argv[i] << endl;
118 exit(1);
119 }
120 cout << "spread_table_activity_description::read_arguments looping, i=" << i << endl;
121 } // next i
122 cout << "spread_table_activity_description::read_arguments done" << endl;
123 return i + 1;
124}
125
127{
128 if (f_find_spread) {
129 cout << "-find_spread " << find_spread_text << endl;
130 }
132 cout << "-find_spread_and_dualize " << find_spread_and_dualize_text << endl;
133 }
134 if (f_dualize_packing) {
135 cout << "-dualize_packing " << dualize_packing_text << endl;
136 }
137 if (f_print_spreads) {
138 cout << "-print_spreads " << print_spreads_idx_text << endl;
139 }
141 cout << "-export_spreads_to_csv " << export_spreads_to_csv_fname
142 << " " << export_spreads_to_csv_idx_text << endl;
143 }
145 cout << "-find_spreads_containing_two_lines "
148 << endl;
149 }
150
152 cout << "-find_spreads_containing_one_line "
154 << endl;
155 }
156}
157
158
159
160
161}}}
162
163
164
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