Orbiter 2022
Combinatorial Objects
quartic_curve_create_description.cpp
Go to the documentation of this file.
1/*
2 * quartic_curve_create_description.cpp
3 *
4 * Created on: May 20, 2021
5 * Author: betten
6 */
7
8
9
10
11#include "orbiter.h"
12
13using namespace std;
14
15namespace orbiter {
16namespace layer5_applications {
17namespace applications_in_algebraic_geometry {
18namespace quartic_curves {
19
21{
22 f_q = FALSE;
23 q = 0;
24
26 //label_txt
27
29 //label_tex
30
32 //label_for_summary
33
34
36 iso = 0;
38 //coefficients_text = NULL;
39
40
42 //std::string equation_name_of_formula;
43 //std::string equation_name_of_formula_tex;
44 //std::string equation_managed_variables;
45 //std::string equation_text;
46 //std::string equation_parameters;
47 //std::string equation_parameters_tex;
48
49
50
51 //nb_select_double_six = 0;
52 //select_double_six_string[];
53
55 //std::string override_group_order;
57 //std::string override_group_gens;
58
59
60 //std::vector<std::string> transform_coeffs;
61 //std::vector<int> f_inverse_transform;
62
63 //null();
64}
65
67{
68 freeself();
69}
70
72{
73}
74
76{
77 null();
78}
79
81 int verbose_level)
82{
83 int i;
85
86 cout << "quartic_curve_create_description::read_arguments" << endl;
87 for (i = 0; i < argc; i++) {
88
89 if (ST.stringcmp(argv[i], "-q") == 0) {
90 f_q = TRUE;
91 q = ST.strtoi(argv[++i]);
92 cout << "-q " << q << endl;
93 }
94 else if (ST.stringcmp(argv[i], "-label_txt") == 0) {
96 label_txt.assign(argv[++i]);
97 cout << "-label_txt " << label_txt << endl;
98 }
99 else if (ST.stringcmp(argv[i], "-label_tex") == 0) {
101 label_tex.assign(argv[++i]);
102 cout << "-label_tex " << label_tex << endl;
103 }
104 else if (ST.stringcmp(argv[i], "-label_for_summary") == 0) {
106 label_for_summary.assign(argv[++i]);
107 cout << "-label_for_summary " << label_for_summary << endl;
108 }
109 else if (ST.stringcmp(argv[i], "-catalogue") == 0) {
111 iso = ST.strtoi(argv[++i]);
112 cout << "-catalogue " << iso << endl;
113 }
114 else if (ST.stringcmp(argv[i], "-by_coefficients") == 0) {
116 coefficients_text.assign(argv[++i]);
117 cout << "-by_coefficients " << coefficients_text << endl;
118 }
119 else if (ST.stringcmp(argv[i], "-by_equation") == 0) {
121 equation_name_of_formula.assign(argv[++i]);
122 equation_name_of_formula_tex.assign(argv[++i]);
123 equation_managed_variables.assign(argv[++i]);
124 equation_text.assign(argv[++i]);
125 equation_parameters.assign(argv[++i]);
126 equation_parameters_tex.assign(argv[++i]);
127 cout << "-by_equation "
131 << equation_text << " "
132 << equation_parameters << " "
134 << endl;
135 }
136
137
138
139 else if (ST.stringcmp(argv[i], "-override_group") == 0) {
141
142 override_group_order.assign(argv[++i]);
143 override_group_nb_gens = ST.strtoi(argv[++i]);
144 override_group_gens.assign(argv[++i]);
145
146 cout << "-override_group "
148 << " " << override_group_nb_gens
149 << " " << override_group_gens
150 << endl;
151 }
152
153 else if (ST.stringcmp(argv[i], "-transform") == 0) {
154
155 string s;
156
157 s.assign(argv[++i]);
158 transform_coeffs.push_back(s);
159 f_inverse_transform.push_back(FALSE);
160 cout << "-transform " << transform_coeffs[transform_coeffs.size() - 1]
161 << " " << f_inverse_transform[transform_coeffs.size() - 1] << endl;
162 }
163 else if (ST.stringcmp(argv[i], "-transform_inverse") == 0) {
164
165 string s;
166
167 s.assign(argv[++i]);
168 transform_coeffs.push_back(s);
169 f_inverse_transform.push_back(TRUE);
170 cout << "-transform_inverse " << transform_coeffs[transform_coeffs.size() - 1]
171 << " " << f_inverse_transform[transform_coeffs.size() - 1] << endl;
172 }
173 else if (ST.stringcmp(argv[i], "-end") == 0) {
174 cout << "-end" << endl;
175 break;
176 }
177 } // next i
178 cout << "quartic_curve_create_description::read_arguments done" << endl;
179 return i + 1;
180}
181
182
184{
185 if (f_q) {
186 cout << "-q " << q << endl;
187 }
188 if (f_label_txt) {
189 cout << "-label_txt " << label_txt << endl;
190 }
191 if (f_label_tex) {
192 cout << "-label_tex " << label_tex << endl;
193 }
195 cout << "-label_for_summary " << label_for_summary << endl;
196 }
197 if (f_catalogue) {
198 cout << "-catalogue " << iso << endl;
199 }
200 if (f_by_coefficients) {
201 cout << "-by_coefficients " << coefficients_text << endl;
202 }
203 if (f_by_equation) {
204 cout << "-by_equation "
208 << equation_text << " "
209 << equation_parameters << " "
211 << endl;
212 }
213
214
215
216 if (f_override_group) {
217 cout << "-override_group "
219 << " " << override_group_nb_gens
220 << " " << override_group_gens
221 << endl;
222 }
223
224 for (int i = 0; i < transform_coeffs.size(); i++) {
225 if (f_inverse_transform[i]) {
226 cout << "-transform_inverse " << transform_coeffs[i] << endl;
227 }
228 {
229 cout << "-transform " << transform_coeffs[i] << endl;
230 }
231 }
232
233}
234
235
236
238{
239 if (!f_q) {
240 cout << "quartic_curve_create_description::get_q "
241 "q has not been set yet" << endl;
242 exit(1);
243 }
244 return q;
245}
246
247
248
249
250}}}}
251
252
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