Orbiter 2022
Combinatorial Objects
classification_of_objects_description.cpp
Go to the documentation of this file.
1/*
2 * classification_of_objects_description.cpp
3 *
4 * Created on: Sep 13, 2020
5 * Author: betten
6 */
7
8
9#include "foundations.h"
10
11using namespace std;
12
13
14namespace orbiter {
15namespace layer1_foundations {
16namespace combinatorics {
17
18
19
21{
22
23 f_label = FALSE;
24 //std::string label;
25
27 //std::string save_prefix;
28
29#if 0
30 fixed_structure_order_list_sz = 0;
31 //fixed_structure_order_list;
32#endif
33
35 max_TDO_depth = 0;
36
38 //std::string classification_prefix;
39
41
43
45
46}
47
49{
50
51}
52
54 int argc, std::string *argv,
55 int verbose_level)
56{
57 int i;
59
60 cout << "classification_of_objects_description::read_arguments" << endl;
61 for (i = 0; i < argc; i++) {
62
63 cout << "classification_of_objects_description::read_arguments, next argument is " << argv[i] << endl;
64
65 if (ST.stringcmp(argv[i], "-label") == 0) {
66 f_label = TRUE;
67 label.assign(argv[++i]);
68 cout << "-label" << label << endl;
69 }
70
71 else if (ST.stringcmp(argv[i], "-save_classification") == 0) {
73 save_prefix.assign(argv[++i]);
74 cout << "-save_classification" << save_prefix << endl;
75 }
76#if 0
77 else if (stringcmp(argv[i], "-fixed_structure_of_element_of_order") == 0) {
78 fixed_structure_order_list[fixed_structure_order_list_sz] = strtoi(argv[++i]);
79 cout << "-fixed_structure_of_element_of_order "
80 << fixed_structure_order_list[fixed_structure_order_list_sz] << endl;
81 fixed_structure_order_list_sz++;
82 }
83#endif
84
85 else if (ST.stringcmp(argv[i], "-max_TDO_depth") == 0) {
87 max_TDO_depth = ST.strtoi(argv[++i]);
88 cout << "-max_TDO_depth " << max_TDO_depth << endl;
89 }
90
91 else if (ST.stringcmp(argv[i], "-classification_prefix") == 0) {
93 classification_prefix.assign(argv[++i]);
94 cout << "-classification_prefix " << classification_prefix << endl;
95 }
96
97 else if (ST.stringcmp(argv[i], "-save_canonical_labeling") == 0) {
99 cout << "-save_canonical_labeling " << endl;
100 }
101
102 else if (ST.stringcmp(argv[i], "-save_ago") == 0) {
104 cout << "-save_ago " << endl;
105 }
106
107 else if (ST.stringcmp(argv[i], "-save_transversal") == 0) {
109 cout << "-save_transversal " << endl;
110 }
111 else if (ST.stringcmp(argv[i], "-end") == 0) {
112 cout << "projective_space_object_classifier_description::read_arguments -end" << endl;
113 break;
114 }
115
116 else {
117 cout << "classification_of_objects_description::read_arguments "
118 "unrecognized option " << argv[i] << endl;
119 exit(1);
120 }
121 cout << "classification_of_objects_description::read_arguments looping, i=" << i << endl;
122 } // next i
123 cout << "classification_of_objects_description::read_arguments done" << endl;
124 return i + 1;
125}
126
128{
129
130 if (f_label) {
131 cout << "-label " << label << endl;
132 }
134 cout << "-save_classification " << save_prefix << endl;
135 }
136
137 if (f_max_TDO_depth) {
138 cout << "-max_TDO_depth " << max_TDO_depth << endl;
139 }
140
142 cout << "-classification_prefix " << classification_prefix << endl;
143 }
144
145
147 cout << "-save_canonical_labeling " << endl;
148 }
149
150 if (f_save_ago) {
151 cout << "-save_ago " << endl;
152 }
153
154 if (f_save_transversal) {
155 cout << "-save_transversal " << endl;
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