fieker-DuValspielwiese
Last change
on this file since 84250a6 was
b973c0,
checked in by Jens Schmidt <schmidt@…>, 27 years ago
|
#include <config.h> added
git-svn-id: file:///usr/local/Singular/svn/trunk@136 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
698 bytes
|
Rev | Line | |
---|
[2dd068] | 1 | // emacs edit mode for this file is -*- C++ -*- |
---|
[b973c0] | 2 | // $Id: cf_switches.h,v 1.2 1997-04-07 16:13:01 schmidt Exp $ |
---|
[2dd068] | 3 | |
---|
| 4 | #ifndef INCL_CF_SWITCHES_H |
---|
| 5 | #define INCL_CF_SWITCHES_H |
---|
| 6 | |
---|
| 7 | /* |
---|
| 8 | $Log: not supported by cvs2svn $ |
---|
[b973c0] | 9 | Revision 1.1 1997/03/26 16:54:25 schmidt |
---|
| 10 | spurious #define RATIONAL removed |
---|
| 11 | |
---|
[64d27c] | 12 | Revision 1.0 1996/05/17 10:59:39 stobbe |
---|
| 13 | Initial revision |
---|
| 14 | |
---|
[2dd068] | 15 | */ |
---|
| 16 | |
---|
[b973c0] | 17 | #include <config.h> |
---|
| 18 | |
---|
[2dd068] | 19 | #include "cf_defs.h" |
---|
| 20 | |
---|
| 21 | class CFSwitches |
---|
| 22 | { |
---|
| 23 | private: |
---|
| 24 | bool switches [10]; |
---|
| 25 | public: |
---|
| 26 | CFSwitches(); |
---|
| 27 | ~CFSwitches() {} |
---|
| 28 | void On( int s ) { switches[s] = true; } |
---|
| 29 | void Off( int s ) { switches[s] = false; } |
---|
| 30 | bool isOn( int s ) const { return switches[s]; } |
---|
| 31 | bool isOff( int s ) const { return ! switches[s]; } |
---|
| 32 | }; |
---|
| 33 | |
---|
| 34 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.