|
Revision 5968, 1.4 KB
(checked in by westram, 3 years ago)
|
- new flag -w to aisc_mkpt (add include wrapper)
- uniform style for several include wrappers
- removed duplicated includes
- removed useless nt_concatenate.hxx
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | // =========================================================== // |
|---|
| 2 | // // |
|---|
| 3 | // File : awt_automata.hxx // |
|---|
| 4 | // Purpose : // |
|---|
| 5 | // // |
|---|
| 6 | // Institute of Microbiology (Technical University Munich) // |
|---|
| 7 | // http://www.arb-home.de/ // |
|---|
| 8 | // // |
|---|
| 9 | // =========================================================== // |
|---|
| 10 | |
|---|
| 11 | #ifndef AWT_AUTOMATA_HXX |
|---|
| 12 | #define AWT_AUTOMATA_HXX |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | typedef long AW_CL; // generic client data type (void *) |
|---|
| 17 | |
|---|
| 18 | class AWT_auto_states { |
|---|
| 19 | public: |
|---|
| 20 | AWT_auto_states *children; |
|---|
| 21 | int value_is_malloced; |
|---|
| 22 | AW_CL value; |
|---|
| 23 | |
|---|
| 24 | AWT_auto_states(); |
|---|
| 25 | ~AWT_auto_states(); |
|---|
| 26 | }; |
|---|
| 27 | |
|---|
| 28 | class AWT_automata: protected AWT_auto_states { |
|---|
| 29 | char gaps[256]; |
|---|
| 30 | int value_is_malloced; |
|---|
| 31 | |
|---|
| 32 | public: |
|---|
| 33 | AWT_automata(int free_value = 0); |
|---|
| 34 | ~AWT_automata(); |
|---|
| 35 | |
|---|
| 36 | char *insert(char *str, AW_CL value); |
|---|
| 37 | void set_gaps(char *gaps); |
|---|
| 38 | // returns error msg |
|---|
| 39 | AW_CL get_fwd(char *str, int pos); // returns val forward |
|---|
| 40 | AW_CL get_bwd(char *str, int pos); // returns val backward |
|---|
| 41 | } |
|---|
| 42 | |
|---|
| 43 | |
|---|
| 44 | #else |
|---|
| 45 | #error awt_automata.hxx included twice |
|---|
| 46 | #endif // AWT_AUTOMATA_HXX |
|---|