Orbiter 2022
Combinatorial Objects
packing_was_fixpoints_activity_description.cpp
Go to the documentation of this file.
1/*
2 * packing_was_fixpoints_activity_description.cpp
3 *
4 * Created on: Apr 3, 2021
5 * Author: betten
6 */
7
8
9#include "orbiter.h"
10
11using namespace std;
12
13namespace orbiter {
14namespace layer5_applications {
15namespace packings {
16
17
18
20{
22
24 //std::string print_packing_text;
25
27 //std::string compare_files_of_packings_fname1;
28 //std::string compare_files_of_packings_fname2;
29
30}
31
33{
34
35}
36
38 int argc, std::string *argv,
39 int verbose_level)
40{
41 int i;
43
44 cout << "packing_was_fixpoints_activity_description::read_arguments" << endl;
45 for (i = 0; i < argc; i++) {
46
47 cout << "packing_was_fixpoints_activity_description::read_arguments, next argument is " << argv[i] << endl;
48
49
50 if (ST.stringcmp(argv[i], "-report") == 0) {
51 f_report = TRUE;
52 cout << "-report" << endl;
53 }
54 else if (ST.stringcmp(argv[i], "-print_packing") == 0) {
56 print_packing_text.assign(argv[++i]);
57 cout << "-print_packing" << print_packing_text << endl;
58 }
59 else if (ST.stringcmp(argv[i], "-compare_files_of_packings") == 0) {
61 compare_files_of_packings_fname1.assign(argv[++i]);
62 compare_files_of_packings_fname2.assign(argv[++i]);
63 cout << "-compare_files_of_packings" << compare_files_of_packings_fname1 << " " << compare_files_of_packings_fname2 << endl;
64 }
65 else if (ST.stringcmp(argv[i], "-end") == 0) {
66 cout << "-end" << endl;
67 break;
68 }
69 else {
70 cout << "packing_was_fixpoints_activity_description::read_arguments "
71 "unrecognized option " << argv[i] << endl;
72 exit(1);
73 }
74 cout << "packing_was_fixpoints_activity_description::read_arguments looping, i=" << i << endl;
75 } // next i
76 cout << "packing_was_fixpoints_activity_description::read_arguments done" << endl;
77 return i + 1;
78}
79
81{
82 if (f_report) {
83 cout << "-report" << endl;
84 }
85 if (f_print_packing) {
86 cout << "-print_packing " << print_packing_text << endl;
87 }
89 cout << "-compare_files_of_packings" << compare_files_of_packings_fname1 << " " << compare_files_of_packings_fname2 << endl;
90 }
91}
92
93
94
95
96}}}
97
98
99
100
101
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