source: tags/arb_5.5/AWT/awt_automata.hxx

Last change on this file was 5968, checked in by westram, 15 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
File size: 1.4 KB
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
16typedef long AW_CL;                                 // generic client data type (void *)
17
18class AWT_auto_states {
19public:
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
28class AWT_automata: protected  AWT_auto_states {
29    char gaps[256];
30    int  value_is_malloced;
31
32public:
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
Note: See TracBrowser for help on using the repository browser.