Orbiter 2022
Combinatorial Objects
group_modification_description.cpp
Go to the documentation of this file.
1/*
2 * group_modification_description.cpp
3 *
4 * Created on: Dec 1, 2021
5 * Author: betten
6 */
7
8
9
10
11#include "orbiter.h"
12
13using namespace std;
14using namespace orbiter::layer1_foundations;
15
16namespace orbiter {
17namespace layer5_applications {
18namespace apps_algebra {
19
20
22{
24 //std::string restricted_action_set_text;
25 //std::vector<std::string> from;
26
27}
28
29
31{
32}
33
34
36 int argc, std::string *argv,
37 int verbose_level)
38{
39 int f_v = (verbose_level > 1);
40 int i;
42
43 if (f_v) {
44 cout << "group_modification_description::read_arguments" << endl;
45 }
46 for (i = 0; i < argc; i++) {
47
48 if (ST.stringcmp(argv[i], "-restricted_action") == 0) {
50 restricted_action_set_text.assign(argv[++i]);
51 if (f_v) {
52 cout << "-restricted_action " << restricted_action_set_text << endl;
53 }
54 }
55 else if (ST.stringcmp(argv[i], "-from") == 0) {
56 std::string from_text;
57 from_text.assign(argv[++i]);
58 from.push_back(from_text);
59 if (f_v) {
60 cout << "-from " << from_text << endl;
61 }
62 }
63 else if (ST.stringcmp(argv[i], "-end") == 0) {
64 if (f_v) {
65 cout << "-end" << endl;
66 }
67 break;
68 }
69 else {
70 cout << "group_modification_description::read_arguments "
71 "unrecognized option " << argv[i] << endl;
72 }
73 } // next i
74
75 if (f_v) {
76 cout << "group_modification_description::read_arguments done" << endl;
77 }
78 return i + 1;
79}
80
81
83{
85 cout << "-restricted_action " << restricted_action_set_text << endl;
86 }
87 if (from.size()) {
88 int i;
89 for (i = 0; i < from.size(); i++) {
90 cout << "-from " << from[i] << endl;
91 }
92 }
93}
94
95
96
97}}}
98
functions related to strings and character arrays
#define TRUE
Definition: foundations.h:231
#define FALSE
Definition: foundations.h:234
algebra, combinatorics and graph theory, geometry, linear algebra, number theory, data structures,...
Definition: a_domain.cpp:18
the orbiter library for the classification of combinatorial objects