Orbiter 2022
Combinatorial Objects
ovoid_classify_description.cpp
Go to the documentation of this file.
1/*
2 * ovoid_classify_description.cpp
3 *
4 * Created on: Jul 28, 2020
5 * Author: betten
6 */
7
8
9
10
11#include "orbiter.h"
12
13using namespace std;
14
15namespace orbiter {
16namespace layer5_applications {
17namespace apps_geometry {
18
19
21{
22 Control = NULL;
24 epsilon = 0;
25 f_d = FALSE;
26 d = 0;
27}
28
29
30
32{
33}
34
35int ovoid_classify_description::read_arguments(int argc, std::string *argv,
36 int verbose_level)
37{
38 int f_v = (verbose_level >= 1);
39 int i;
41
42
43 if (f_v) {
44 cout << "ovoid_classify_description::read_arguments" << endl;
45 }
46 for (i = 0; i < argc; i++) {
47
48 if (ST.stringcmp(argv[i], "-epsilon") == 0) {
50 epsilon = ST.strtoi(argv[++i]);
51 if (f_v) {
52 cout << "-epsilon " << epsilon << endl;
53 }
54 }
55 else if (ST.stringcmp(argv[i], "-d") == 0) {
56 f_d = TRUE;
57 d = ST.strtoi(argv[++i]);
58 if (f_v) {
59 cout << "-d " << d << endl;
60 }
61 }
62
63 else if (ST.stringcmp(argv[i], "-end") == 0) {
64 break;
65 }
66 else {
67 if (f_v) {
68 cout << "ignoring argument " << argv[i] << endl;
69 }
70 }
71 } // next i
72
73 if (f_v) {
74 cout << "ovoid_classify_description::read_arguments done" << endl;
75 }
76 return i;
77}
78
80{
81 if (f_epsilon) {
82 cout << "-epsilon " << epsilon << endl;
83 }
84 else if (f_d) {
85 cout << "-d " << d << endl;
86 }
87}
88
89
90
91
92}}}
93
94
95
functions related to strings and character arrays
poset_classification::poset_classification_control * Control
Definition: tl_geometry.h:607
#define TRUE
Definition: foundations.h:231
#define FALSE
Definition: foundations.h:234
the orbiter library for the classification of combinatorial objects