1 /*
2 This is help.cpp
3
4 Coxeter version 3.0 Copyright (C) 2002 Fokko du Cloux
5 See file main.cpp for full copyright notice
6 */
7
8 #include "help.h"
9
10 #include "commands.h"
11 #include "directories.h"
12 #include "io.h"
13
14 namespace help {
15 using namespace directories;
16 using namespace io;
17 };
18
19 /*************************************************************************
20
21 Chapter I : help functions for the modes of the program
22
23
24 These are the functions invoked upon entry into help mode from the
25 various modes of the program :
26
27 - main_help : help entry from the main mode;
28 - interface_help : help entry from the interface mode;
29 - interface::in_help : help entry from the interface::in mode;
30 - interface::out_help : help entry from the interface::out mode;
31 - uneq_help : help entry for the uneq mode;
32
33 *************************************************************************/
34
35 namespace help {
36
main_help()37 void main_help()
38
39 {
40 using namespace commands;
41
42 printFile(stderr,"main.help1",MESSAGE_DIR);
43 printCommands(stderr,mainCommandTree()->helpMode());
44 printFile(stderr,"main.help2",MESSAGE_DIR);
45
46 return;
47 }
48
interface_help()49 void interface_help()
50
51 {
52 using namespace commands;
53
54 printFile(stderr,"interface_m.help1",MESSAGE_DIR);
55 printCommands(stderr,interfaceCommandTree()->helpMode());
56 printFile(stderr,"interface_m.help2",MESSAGE_DIR);
57
58 return;
59 }
60
61 namespace interface {
62
in_help()63 void in_help()
64
65 {
66 using namespace commands;
67
68 printFile(stderr,"interface/in_m.help1",MESSAGE_DIR);
69 printCommands(stderr,commands::interface::inCommandTree()->helpMode());
70 printFile(stderr,"interface/in_m.help2",MESSAGE_DIR);
71
72 return;
73 }
74
out_help()75 void out_help()
76
77 {
78 using namespace commands;
79
80 printFile(stderr,"interface/out_m.help1",MESSAGE_DIR);
81 printCommands(stderr,commands::interface::outCommandTree()->helpMode());
82 printFile(stderr,"interface/out_m.help2",MESSAGE_DIR);
83
84 return;
85 }
86
87 };
88
uneq_help()89 void uneq_help()
90
91 {
92 using namespace commands;
93
94 printFile(stderr,"uneq.help1",MESSAGE_DIR);
95 printCommands(stderr,uneqCommandTree()->helpMode());
96 printFile(stderr,"uneq.help2",MESSAGE_DIR);
97
98 return;
99 }
100
101 };
102
103
104 /*************************************************************************
105
106 Chapter II : help functions for the commands of the program
107
108
109 These are the functions invoked upon typing various commands in help
110 mode.
111
112 - betti_h() : help message for the "betti" command;
113 - coatoms_h : help message for the "coatoms" command;
114 - compute_h : help message for the "compute" command;
115 - cr_h : help message for the carriage return;
116 - default_h : the function executed when there is no help;
117 - descent_h : help message for the "descent" command;
118 - duflo_h : help message for the "duflo" command;
119 - extremals_h : help message for the "extremals" command;
120 - fullcontext_h : help message for the "fullcontext" command;
121 - help_h : help message for the "help" command;
122 - ihbetti_h() : help message for the "ohbetti" command;
123 - inorder_h : help message for the "inorder" command;
124 - input_h : explains input conventions;
125 - interface_h : help message for the "interface" command;
126 - intro_h : help for new users;
127 - invpol_h : help message for the "invpol" command;
128 - klbasis_h : help message for the "klbasis" command;
129 - lcorder_h : help message for the "lcorder" command;
130 - lcells_h : help message for the "lcells" command;
131 - lcwgraphs_h : help message for the "lcwgraphs" command;
132 - lrcorder_h : help message for the "lrcorder" command;
133 - lrcells_h : help message for the "lrcells" command;
134 - lrcwgraphs_h : help message for the "lrcwgraphs" command;
135 - lrwgraph : help message for the "lwgraph" command;
136 - lwgraph : help message for the "lwgraph" command;
137 - mu_h : help message for the "mu" command;
138 - pol_h : help message for the "pol" command;
139 - q_h : help message for the "q" command;
140 - qq_h : help message for the "qq" command;
141 - rank_h : help message for the "rank" command;
142 - rcorder_h : help message for the "rcorder" command;
143 - rcells_h : help message for the "rcells" command;
144 - rcwgraphs_h : help message for the "rcwgraphs" command;
145 - rwgraph : help message for the "lwgraph" command;
146 - show_h : help message for the "show" command;
147 - slocus_h : help message for the "slocus" command;
148 - sstratification_h : help message for the "sstratification" command;
149 - type_h : help message for the "type" command;
150 - uneq_h : help message for the "uneq" command;
151
152 In uneq mode :
153
154 - klbasis_h : help message for the "klbasis" command;
155 - lcorder_h : help message for the "lcorder" command;
156 - lcells_h : help message for the "lcells" command;
157 - lrcorder_h : help message for the "lrcorder" command;
158 - lrcells_h : help message for the "lrcells" command;
159 - mu_h : help message for the "mu" command;
160 - pol_h : help message for the "pol" command;
161 - rcells_h : help message for the "rcells" command;
162 - rcorder_h : help message for the "rcorder" command;
163
164 In interface mode :
165
166 - bourbaki_h : help message for the "bourbaki" command;
167 - default_h : help message for the "default" command;
168 - gap_h : help message for the "gap" command;
169 - in_h : help message for the "in" command;
170 - ordering_h : help message for the "ordering" command;
171 - out_h : help message for the "out" command;
172 - permutation_h : help message for the "permutation" command;
173 - terse_h : help message for the "terse" command;
174
175 in in or out modes :
176
177 - abort_h : help message for the "abort" command;
178 - alphabetic_h : help message for the "alphabetic" command;
179 - bourbaki_h : help message for the "bourbaki" command;
180 - decimal_h : help message for the "decimal" command;
181 - default_h : help message for the "default" command;
182 - gap_h : help message for the "gap" command;
183 - hexadecimal_h : help message for the "hexadecimal" command;
184 - permutation_h : help message for the "permutation" command;
185 - postfix_h : help message for the "postfix" command;
186 - prefix_h : help message for the "prefix" command;
187 - separator_h : help message for the "separator" command;
188 - symbol_h : help message for the "symbol" command;
189 - terse_h : help message for the "terse" command;
190
191 *************************************************************************/
192
193 namespace help {
194
betti_h()195 void betti_h()
196
197 {
198 printFile(stderr,"betti.help",MESSAGE_DIR);
199 return;
200 }
201
coatoms_h()202 void coatoms_h()
203
204 {
205 printFile(stderr,"compute.help",MESSAGE_DIR);
206 return;
207 }
208
compute_h()209 void compute_h()
210
211 {
212 printFile(stderr,"coatoms.help",MESSAGE_DIR);
213 return;
214 }
215
cr_h()216 void cr_h()
217
218 {
219 printFile(stderr,"cr.help",MESSAGE_DIR);
220 return;
221 }
222
default_h()223 void default_h()
224
225 {
226 printFile(stderr,"default.help",MESSAGE_DIR);
227 return;
228 }
229
descent_h()230 void descent_h()
231
232 {
233 printFile(stderr,"descent.help",MESSAGE_DIR);
234 return;
235 }
236
duflo_h()237 void duflo_h()
238
239 {
240 printFile(stderr,"duflo.help",MESSAGE_DIR);
241 return;
242 }
243
extremals_h()244 void extremals_h()
245
246 {
247 printFile(stderr,"extremals.help",MESSAGE_DIR);
248 return;
249 }
250
fullcontext_h()251 void fullcontext_h()
252
253 {
254 printFile(stderr,"fullcontext.help",MESSAGE_DIR);
255 return;
256 }
257
help_h()258 void help_h()
259
260 {
261 printFile(stderr,"help.help",MESSAGE_DIR);
262 return;
263 }
264
ihbetti_h()265 void ihbetti_h()
266
267 {
268 printFile(stderr,"ihbetti.help",MESSAGE_DIR);
269 return;
270 }
271
inorder_h()272 void inorder_h()
273
274 {
275 printFile(stderr,"inorder.help",MESSAGE_DIR);
276 return;
277 }
278
input_h()279 void input_h()
280
281 {
282 printFile(stderr,"input.help",MESSAGE_DIR);
283 return;
284 }
285
interface_h()286 void interface_h()
287
288 {
289 using namespace commands;
290
291 printFile(stderr,"interface.help",MESSAGE_DIR);
292 printCommands(stderr,interfaceCommandTree()->helpMode());
293 fprintf(stderr,"\n");
294 return;
295 }
296
interval_h()297 void interval_h()
298
299 {
300 printFile(stderr,"interval.help",MESSAGE_DIR);
301 return;
302 }
303
intro_h()304 void intro_h()
305
306 {
307 using namespace commands;
308
309 printFile(stderr,"empty_m.help1",MESSAGE_DIR);
310 printCommands(stderr,mainCommandTree()->helpMode());
311 printFile(stderr,"empty_m.help2",MESSAGE_DIR);
312
313 return;
314 }
315
invpol_h()316 void invpol_h()
317
318 {
319 printFile(stderr,"invpol.help",MESSAGE_DIR);
320 return;
321 }
322
klbasis_h()323 void klbasis_h()
324
325 {
326 printFile(stderr,"klbasis.help",MESSAGE_DIR);
327 return;
328 }
329
lcorder_h()330 void lcorder_h()
331
332 {
333 printFile(stderr,"lcorder.help",MESSAGE_DIR);
334 return;
335 }
336
lcells_h()337 void lcells_h()
338
339 {
340 printFile(stderr,"lcells.help",MESSAGE_DIR);
341 return;
342 }
343
lcwgraphs_h()344 void lcwgraphs_h()
345
346 {
347 printFile(stderr,"lcwgraphs.help",MESSAGE_DIR);
348 return;
349 }
350
lrcorder_h()351 void lrcorder_h()
352
353 {
354 printFile(stderr,"lrcorder.help",MESSAGE_DIR);
355 return;
356 }
357
lrcells_h()358 void lrcells_h()
359
360 {
361 printFile(stderr,"lrcells.help",MESSAGE_DIR);
362 return;
363 }
364
lrcwgraphs_h()365 void lrcwgraphs_h()
366
367 {
368 printFile(stderr,"lrcwgraphs.help",MESSAGE_DIR);
369 return;
370 }
371
lrwgraph_h()372 void lrwgraph_h()
373
374 {
375 printFile(stderr,"lrwgraph.help",MESSAGE_DIR);
376 return;
377 }
378
lwgraph_h()379 void lwgraph_h()
380
381 {
382 printFile(stderr,"lwgraph.help",MESSAGE_DIR);
383 return;
384 }
385
matrix_h()386 void matrix_h()
387
388 {
389 printFile(stderr,"matrix.help",MESSAGE_DIR);
390 return;
391 }
392
mu_h()393 void mu_h()
394
395 {
396 printFile(stderr,"mu.help",MESSAGE_DIR);
397 return;
398 }
399
pol_h()400 void pol_h()
401
402 {
403 printFile(stderr,"pol.help",MESSAGE_DIR);
404 return;
405 }
406
rwgraph_h()407 void rwgraph_h()
408
409 {
410 printFile(stderr,"rwgraph.help",MESSAGE_DIR);
411 return;
412 }
413
q_h()414 void q_h()
415
416 /*
417 Help function for the "q" command. In fact, this is executed when q is called
418 in a mode where it is turned off.
419 */
420
421 {
422 printFile(stderr,"q.help",MESSAGE_DIR);
423 return;
424 }
425
qq_h()426 void qq_h()
427
428 {
429 printFile(stderr,"qq.help",MESSAGE_DIR);
430 return;
431 }
432
rank_h()433 void rank_h()
434
435 {
436 printFile(stderr,"rank.help",MESSAGE_DIR);
437 return;
438 }
439
rcorder_h()440 void rcorder_h()
441
442 {
443 printFile(stderr,"rcorder.help",MESSAGE_DIR);
444 return;
445 }
446
rcells_h()447 void rcells_h()
448
449 {
450 printFile(stderr,"rcells.help",MESSAGE_DIR);
451 return;
452 }
453
rcwgraphs_h()454 void rcwgraphs_h()
455
456 {
457 printFile(stderr,"rcwgraphs.help",MESSAGE_DIR);
458 return;
459 }
460
schubert_h()461 void schubert_h()
462
463 {
464 printFile(stderr,"schubert.help",MESSAGE_DIR);
465 return;
466 }
467
show_h()468 void show_h()
469
470 {
471 printFile(stderr,"show.help",MESSAGE_DIR);
472 return;
473 }
474
showmu_h()475 void showmu_h()
476
477 {
478 printFile(stderr,"showmu.help",MESSAGE_DIR);
479 return;
480 }
481
slocus_h()482 void slocus_h()
483
484 {
485 printFile(stderr,"slocus.help",MESSAGE_DIR);
486 return;
487 }
488
sstratification_h()489 void sstratification_h()
490
491 {
492 printFile(stderr,"sstratification.help",MESSAGE_DIR);
493 return;
494 }
495
type_h()496 void type_h()
497
498 {
499 printFile(stderr,"type.help",MESSAGE_DIR);
500 return;
501 }
502
uneq_h()503 void uneq_h()
504
505 {
506 printFile(stderr,"uneq.help",MESSAGE_DIR);
507 return;
508 }
509
510 namespace uneq {
511
klbasis_h()512 void klbasis_h()
513
514 {
515 printFile(stderr,"uneq/klbasis.help",MESSAGE_DIR);
516 return;
517 }
518
lcorder_h()519 void lcorder_h()
520
521 {
522 printFile(stderr,"uneq/lcorder.help",MESSAGE_DIR);
523 return;
524 }
525
lcells_h()526 void lcells_h()
527
528 {
529 printFile(stderr,"uneq/lcells.help",MESSAGE_DIR);
530 return;
531 }
532
lrcorder_h()533 void lrcorder_h()
534
535 {
536 printFile(stderr,"uneq/lrcorder.help",MESSAGE_DIR);
537 return;
538 }
539
lrcells_h()540 void lrcells_h()
541
542 {
543 printFile(stderr,"uneq/lrcells.help",MESSAGE_DIR);
544 return;
545 }
546
mu_h()547 void mu_h()
548
549 {
550 printFile(stderr,"uneq/mu.help",MESSAGE_DIR);
551 return;
552 }
553
pol_h()554 void pol_h()
555
556 {
557 printFile(stderr,"uneq/pol.help",MESSAGE_DIR);
558 return;
559 }
560
rcells_h()561 void rcells_h()
562
563 {
564 printFile(stderr,"uneq/rcells.help",MESSAGE_DIR);
565 return;
566 }
567
rcorder_h()568 void rcorder_h()
569
570 {
571 printFile(stderr,"uneq/rcorder.help",MESSAGE_DIR);
572 return;
573 }
574
575 };
576
577 namespace interface {
578
abort_h()579 void abort_h()
580
581 {
582 printFile(stderr,"interface/abort.help",MESSAGE_DIR);
583 return;
584 }
585
alphabetic_h()586 void alphabetic_h()
587
588 {
589 printFile(stderr,"interface/alphabetic.help",MESSAGE_DIR);
590 return;
591 }
592
bourbaki_h()593 void bourbaki_h()
594
595 {
596 printFile(stderr,"interface/bourbaki.help",MESSAGE_DIR);
597 return;
598 }
599
decimal_h()600 void decimal_h()
601
602 {
603 printFile(stderr,"interface/decimal.help",MESSAGE_DIR);
604 return;
605 }
606
gap_h()607 void gap_h()
608
609 {
610 printFile(stderr,"interface/gap.help",MESSAGE_DIR);
611 return;
612 }
613
default_h()614 void default_h()
615
616 {
617 printFile(stderr,"interface/default.help",MESSAGE_DIR);
618 return;
619 }
620
hexadecimal_h()621 void hexadecimal_h()
622
623 {
624 printFile(stderr,"interface/hexadecimal.help",MESSAGE_DIR);
625 return;
626 }
627
in_h()628 void in_h ()
629
630 {
631 printFile(stderr,"interface/in.help",MESSAGE_DIR);
632 return;
633 }
634
ordering_h()635 void ordering_h()
636
637 {
638 printFile(stderr,"interface/ordering.help",MESSAGE_DIR);
639 return;
640 }
641
out_h()642 void out_h()
643
644 {
645 printFile(stderr,"interface/out.help",MESSAGE_DIR);
646 return;
647 }
648
permutation_h()649 void permutation_h()
650
651 {
652 printFile(stderr,"interface/permutation.help",MESSAGE_DIR);
653 return;
654 }
655
terse_h()656 void terse_h()
657
658 {
659 printFile(stderr,"interface/terse.help",MESSAGE_DIR);
660 return;
661 }
662
alphabetic_h()663 void in::alphabetic_h()
664
665 {
666 printFile(stderr,"interface/in/alphabetic.help",MESSAGE_DIR);
667 return;
668 }
669
bourbaki_h()670 void in::bourbaki_h()
671
672 {
673 printFile(stderr,"interface/in/bourbaki.help",MESSAGE_DIR);
674 return;
675 }
676
decimal_h()677 void in::decimal_h()
678
679 {
680 printFile(stderr,"interface/in/decimal.help",MESSAGE_DIR);
681 return;
682 }
683
default_h()684 void in::default_h()
685
686 {
687 printFile(stderr,"interface/in/default.help",MESSAGE_DIR);
688 return;
689 }
690
gap_h()691 void in::gap_h()
692
693 {
694 printFile(stderr,"interface/in/gap.help",MESSAGE_DIR);
695 return;
696 }
697
hexadecimal_h()698 void in::hexadecimal_h()
699
700 {
701 printFile(stderr,"interface/in/hexadecimal.help",MESSAGE_DIR);
702 return;
703 }
704
permutation_h()705 void in::permutation_h()
706
707 {
708 printFile(stderr,"interface/in/permutation.help",MESSAGE_DIR);
709 return;
710 }
711
postfix_h()712 void in::postfix_h()
713
714 {
715 printFile(stderr,"interface/in/postfix.help",MESSAGE_DIR);
716 return;
717 }
718
prefix_h()719 void in::prefix_h()
720
721 {
722 printFile(stderr,"interface/in/prefix.help",MESSAGE_DIR);
723 return;
724 }
725
separator_h()726 void in::separator_h()
727
728 {
729 printFile(stderr,"interface/in/separator.help",MESSAGE_DIR);
730 return;
731 }
732
symbol_h()733 void in::symbol_h()
734
735 {
736 printFile(stderr,"interface/in/symbol.help",MESSAGE_DIR);
737 return;
738 }
739
terse_h()740 void in::terse_h()
741
742 {
743 printFile(stderr,"interface/in/terse.help",MESSAGE_DIR);
744 return;
745 }
746
alphabetic_h()747 void out::alphabetic_h()
748
749 {
750 printFile(stderr,"interface/out/alphabetic.help",MESSAGE_DIR);
751 return;
752 }
753
bourbaki_h()754 void out::bourbaki_h()
755
756 {
757 printFile(stderr,"interface/out/bourbaki.help",MESSAGE_DIR);
758 return;
759 }
760
decimal_h()761 void out::decimal_h()
762
763 {
764 printFile(stderr,"interface/out/decimal.help",MESSAGE_DIR);
765 return;
766 }
767
default_h()768 void out::default_h()
769
770 {
771 printFile(stderr,"interface/out/default.help",MESSAGE_DIR);
772 return;
773 }
774
gap_h()775 void out::gap_h()
776
777 {
778 printFile(stderr,"interface/out/gap.help",MESSAGE_DIR);
779 return;
780 }
781
hexadecimal_h()782 void out::hexadecimal_h()
783
784 {
785 printFile(stderr,"interface/out/hexadecimal.help",MESSAGE_DIR);
786 return;
787 }
788
permutation_h()789 void out::permutation_h()
790
791 {
792 printFile(stderr,"interface/out/permutation.help",MESSAGE_DIR);
793 return;
794 }
795
postfix_h()796 void out::postfix_h()
797
798 {
799 printFile(stderr,"interface/out/postfix.help",MESSAGE_DIR);
800 return;
801 }
802
prefix_h()803 void out::prefix_h()
804
805 {
806 printFile(stderr,"interface/out/prefix.help",MESSAGE_DIR);
807 return;
808 }
809
separator_h()810 void out::separator_h()
811
812 {
813 printFile(stderr,"interface/out/separator.help",MESSAGE_DIR);
814 return;
815 }
816
symbol_h()817 void out::symbol_h()
818
819 {
820 printFile(stderr,"interface/out/symbol.help",MESSAGE_DIR);
821 return;
822 }
823
terse_h()824 void out::terse_h()
825
826 {
827 printFile(stderr,"interface/out/terse.help",MESSAGE_DIR);
828 return;
829 }
830
831 };
832
833 };
834