Orbiter 2022
Combinatorial Objects
orthogonal_space_with_action_description.cpp
Go to the documentation of this file.
1/*
2 * orthogonal_space_with_action_description.cpp
3 *
4 * Created on: Jan 12, 2021
5 * Author: betten
6 */
7
8
9
10
11#include "orbiter.h"
12
13using namespace std;
14
15namespace orbiter {
16namespace layer5_applications {
17namespace orthogonal_geometry_applications {
18
19
21{
22 epsilon = 0;
23 n = 0;
24 //input_q;
25 F = NULL;
27 //std::string label_txt;
29 //std::string label_tex;
31
32}
33
35{
36}
37
38
40 int argc, std::string *argv,
41 int verbose_level)
42{
43 int f_v = (verbose_level >= 1);
44 int i;
46
47 if (f_v) {
48 cout << "projective_space_object_classifier_description::read_arguments" << endl;
49 }
50 //cout << "next argument is " << argv[0] << endl;
51 epsilon = ST.strtoi(argv[0]);
52 //cout << "epsilon = " << epsilon << endl;
53 n = ST.strtoi(argv[1]);
54 //cout << "n = " << n << endl;
55 input_q.assign(argv[2]);
56 //cout << "q = " << input_q << endl;
57 //cout << "orthogonal_space_with_action_description::read_arguments done" << endl;
58 for (i = 3; i < argc; i++) {
59
60 //cout << "projective_space_object_classifier_description::read_arguments, next argument is " << argv[i] << endl;
61
62 if (ST.stringcmp(argv[i], "-label_txt") == 0) {
64 label_txt.assign(argv[++i]);
65 if (f_v) {
66 cout << "-label_txt " << label_txt << endl;
67 }
68 }
69 else if (ST.stringcmp(argv[i], "-label_tex") == 0) {
71 label_tex.assign(argv[++i]);
72 if (f_v) {
73 cout << "-label_tet " << label_tex << endl;
74 }
75 }
76 else if (ST.stringcmp(argv[i], "-without_group") == 0) {
78 if (f_v) {
79 cout << "-without_group "<< endl;
80 }
81 }
82 else if (ST.stringcmp(argv[i], "-end") == 0) {
83 if (f_v) {
84 cout << "-end" << endl;
85 }
86 break;
87 }
88
89 else {
90 cout << "projective_space_object_classifier_description::read_arguments "
91 "unrecognized option " << argv[i] << endl;
92 exit(1);
93 }
94 //cout << "projective_space_object_classifier_description::read_arguments looping, i=" << i << endl;
95 } // next i
96 if (f_v) {
97 cout << "projective_space_object_classifier_description::read_arguments done" << endl;
98 }
99 return i + 1;
100}
101
103{
104 //cout << "orthogonal_space_with_action_description::print:" << endl;
105
106 cout << "epsilon = " << epsilon << endl;
107 cout << "n = " << n << endl;
108 cout << "q = " << input_q << endl;
109 if (f_label_txt) {
110 cout << "-label_txt " << label_txt << endl;
111 }
112 if (f_label_tex) {
113 cout << "-label_tex " << label_tex << endl;
114 }
115 if (f_without_group) {
116 cout << "without group" << endl;
117 }
118}
119
120
121}}}
122
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