Orbiter 2022
Combinatorial Objects
spread_create_description.cpp
Go to the documentation of this file.
1// spread_create_description.cpp
2//
3// Anton Betten
4//
5// March 22, 2018
6//
7//
8//
9//
10//
11
12#include "orbiter.h"
13
14using namespace std;
15
16
17namespace orbiter {
18namespace layer5_applications {
19namespace spreads {
20
21
23{
24 null();
25}
26
28{
29 freeself();
30}
31
33{
34 f_q = FALSE;
35 q = 0;
36 f_k = FALSE;
37 k = 0;
39 iso = 0;
41 //family_name;
42}
43
45{
46 null();
47}
48
49int spread_create_description::read_arguments(int argc, std::string *argv,
50 int verbose_level)
51{
52 int i;
54
55 cout << "spread_create_description::read_arguments" << endl;
56 for (i = 0; i < argc; i++) {
57
58 if (ST.stringcmp(argv[i], "-q") == 0) {
59 f_q = TRUE;
60 q = ST.strtoi(argv[++i]);
61 cout << "-q " << q << endl;
62 }
63 else if (ST.stringcmp(argv[i], "-k") == 0) {
64 f_k = TRUE;
65 k = ST.strtoi(argv[++i]);
66 cout << "-k " << k << endl;
67 }
68 else if (ST.stringcmp(argv[i], "-catalogue") == 0) {
70 iso = ST.strtoi(argv[++i]);
71 cout << "-catalogue " << iso << endl;
72 }
73 else if (ST.stringcmp(argv[i], "-family") == 0) {
74 f_family = TRUE;
75 family_name.assign(argv[++i]);
76 cout << "-family " << family_name << endl;
77 }
78 else if (ST.stringcmp(argv[i], "-end") == 0) {
79 cout << "-end" << endl;
80 break;
81 }
82 } // next i
83 cout << "spread_create_description::read_arguments done" << endl;
84 return i + 1;
85}
86
88{
89 if (f_q) {
90 cout << "-q " << q << endl;
91 }
92 if (f_k) {
93 cout << "-k " << k << endl;
94 }
95 if (f_catalogue) {
96 cout << "-catalogue " << iso << endl;
97 }
98 if (f_family) {
99 cout << "-family " << family_name << endl;
100 }
101}
102
103
104}}}
functions related to strings and character arrays
int read_arguments(int argc, std::string *argv, int verbose_level)
#define TRUE
Definition: foundations.h:231
#define FALSE
Definition: foundations.h:234
the orbiter library for the classification of combinatorial objects