Orbiter 2022
Combinatorial Objects
semifield_classify_description.cpp
Go to the documentation of this file.
1/*
2 * semifield_classify_description.cpp
3 *
4 * Created on: Nov 22, 2020
5 * Author: betten
6 */
7
8
9
10
11#include "orbiter.h"
12
13using namespace std;
14
15namespace orbiter {
16namespace layer5_applications {
17namespace semifields {
18
19
20
22{
23 f_order = FALSE;
24 order = 0;
28 //prefix = "";
31 //test_semifield_data = NULL;
33 //identify_semifield_data = NULL;
35 //identify_semifields_from_file_fname = NULL;
40 //level_two_prefix;
42 //level_three_prefix;
43}
44
46{
47
48}
49
50
52 int argc, std::string *argv,
53 int verbose_level)
54{
55 int i;
57
58 cout << "semifield_classify_description::read_arguments" << endl;
59 for (i = 0; i < argc; i++) {
60 if (ST.stringcmp(argv[i], "-order") == 0) {
61 f_order = TRUE;
62 order = ST.strtoi(argv[++i]);
63 cout << "-order " << order << endl;
64 }
65 else if (ST.stringcmp(argv[i], "-dim_over_kernel") == 0) {
67 dim_over_kernel = ST.strtoi(argv[++i]);
68 cout << "-dim_over_kernel " << dim_over_kernel << endl;
69 }
70 else if (ST.stringcmp(argv[i], "-prefix") == 0) {
71 f_prefix = TRUE;
72 prefix.assign(argv[++i]);
73 cout << "-prefix " << prefix << endl;
74 }
75 else if (ST.stringcmp(argv[i], "-orbits_light") == 0) {
77 cout << "-orbits_light " << endl;
78 }
79 else if (ST.stringcmp(argv[i], "-test_semifield") == 0) {
81 test_semifield_data.assign(argv[++i]);
82 cout << "-test_semifield " << test_semifield_data << endl;
83 }
84 else if (ST.stringcmp(argv[i], "-identify_semifield") == 0) {
86 identify_semifield_data.assign(argv[++i]);
87 cout << "-identify_semifield " << identify_semifield_data << endl;
88 }
89 else if (ST.stringcmp(argv[i], "-identify_semifields_from_file") == 0) {
92 cout << "-identify_semifields_from_file "
94 }
95#if 0
96 else if (stringcmp(argv[i], "-trace_record_prefix") == 0) {
97 f_trace_record_prefix = TRUE;
98 trace_record_prefix = argv[++i];
99 cout << "-trace_record_prefix " << trace_record_prefix << endl;
100 }
101 else if (stringcmp(argv[i], "-FstLen") == 0) {
102 f_FstLen = TRUE;
103 fname_FstLen = argv[++i];
104 cout << "-FstLen " << fname_FstLen << endl;
105 }
106 else if (stringcmp(argv[i], "-Data") == 0) {
107 f_Data = TRUE;
108 fname_Data = argv[++i];
109 cout << "-Data " << fname_Data << endl;
110 }
111#endif
112 else if (ST.stringcmp(argv[i], "-load_classification") == 0) {
114 cout << "-load_classification " << endl;
115 }
116 else if (ST.stringcmp(argv[i], "-report") == 0) {
117 f_report = TRUE;
118 cout << "-report " << endl;
119 }
120 else if (ST.stringcmp(argv[i], "-decomposition_matrix_level_3") == 0) {
122 cout << "-decomposition_matrix_level_3 " << endl;
123 }
124 else if (ST.stringcmp(argv[i], "-level_two_prefix") == 0) {
126 level_two_prefix.assign(argv[++i]);
127 cout << "-level_two_prefix " << level_two_prefix << endl;
128 }
129 else if (ST.stringcmp(argv[i], "-level_three_prefix") == 0) {
131 level_three_prefix.assign(argv[++i]);
132 cout << "-level_three_prefix " << level_three_prefix << endl;
133 }
134 else if (ST.stringcmp(argv[i], "-end") == 0) {
135 cout << "-end" << endl;
136 break;
137 }
138 else {
139 cout << "semifield_classify_description::read_arguments "
140 "unrecognized option " << argv[i] << endl;
141 }
142 } // next i
143 cout << "semifield_classify_description::read_arguments done" << endl;
144 return i + 1;
145}
146
147
148}}}
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