Orbiter 2022
Combinatorial Objects
cubic_surface_activity_description.cpp
Go to the documentation of this file.
1/*
2 * cubic_surface_activity_description.cpp
3 *
4 * Created on: Mar 18, 2021
5 * Author: betten
6 */
7
8
9
10
11
12#include "orbiter.h"
13
14using namespace std;
15
16namespace orbiter {
17namespace layer5_applications {
18namespace applications_in_algebraic_geometry {
19namespace cubic_surfaces_in_general {
20
21
23{
25
27
29
31
32 f_codes = FALSE;
33
35
37
39
40}
41
43{
44
45}
46
47
49 int argc, std::string *argv,
50 int verbose_level)
51{
52 int f_v = (verbose_level >= 1);
53 int i;
55
56 if (f_v) {
57 cout << "cubic_surface_activity_description::read_arguments" << endl;
58 }
59 for (i = 0; i < argc; i++) {
60
61 if (ST.stringcmp(argv[i], "-report") == 0) {
62 f_report = TRUE;
63 if (f_v) {
64 cout << "-report " << endl;
65 }
66 }
67 else if (ST.stringcmp(argv[i], "-report_with_group") == 0) {
69 if (f_v) {
70 cout << "-report_with_group " << endl;
71 }
72 }
73 else if (ST.stringcmp(argv[i], "-export_points") == 0) {
75 if (f_v) {
76 cout << "-export_points " << endl;
77 }
78 }
79 else if (ST.stringcmp(argv[i], "-clebsch") == 0) {
81 if (f_v) {
82 cout << "-clebsch " << endl;
83 }
84 }
85 else if (ST.stringcmp(argv[i], "-codes") == 0) {
86 f_codes = TRUE;
87 if (f_v) {
88 cout << "-codes " << endl;
89 }
90 }
91 else if (ST.stringcmp(argv[i], "-all_quartic_curves") == 0) {
93 if (f_v) {
94 cout << "-all_quartic_curves " << endl;
95 }
96 }
97 else if (ST.stringcmp(argv[i], "-export_all_quartic_curves") == 0) {
99 if (f_v) {
100 cout << "-export_all_quartic_curves " << endl;
101 }
102 }
103 else if (ST.stringcmp(argv[i], "-export_tritangent_planes") == 0) {
105 if (f_v) {
106 cout << "-export_tritangent_planes " << endl;
107 }
108 }
109
110 else if (ST.stringcmp(argv[i], "-end") == 0) {
111 if (f_v) {
112 cout << "-end" << endl;
113 }
114 break;
115 }
116 else {
117 cout << "cubic_surface_activity_description::read_arguments "
118 "unrecognized option " << argv[i] << endl;
119 exit(1);
120 }
121 if (f_v) {
122 cout << "cubic_surface_activity_description::read_arguments looping, i=" << i << endl;
123 }
124 } // next i
125
126 if (f_v) {
127 cout << "cubic_surface_activity_description::read_arguments done" << endl;
128 }
129 return i + 1;
130}
131
133{
134 if (f_report) {
135 cout << "-report " << endl;
136 }
138 cout << "-report_with_group " << endl;
139 }
140 if (f_export_points) {
141 cout << "-export_points " << endl;
142 }
143 if (f_clebsch) {
144 cout << "-clebsch " << endl;
145 }
146 if (f_codes) {
147 cout << "-codes " << endl;
148 }
150 cout << "-all_quartic_curves " << endl;
151 }
153 cout << "-export_all_quartic_curves " << endl;
154 }
156 cout << "-export_tritangent_planes " << endl;
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