1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef DSAPI_TK_DOCW2_HXX
25 #define DSAPI_TK_DOCW2_HXX
26 
27 // USED SERVICES
28 	// BASE CLASSES
29 #include <s2_dsapi/dsapitok.hxx>
30 	// COMPONENTS
31 	// PARAMETERS
32 
33 namespace csi
34 {
35 namespace dsapi
36 {
37 
38 
39 class Tok_Word : public Token
40 {
41   public:
42 	// Spring and Fall
Tok_Word(const char * i_sText)43 						Tok_Word(
44 							const char *		i_sText )
45 												:	sText(i_sText) {}
46 	// OPERATIONS
47 	virtual void		Trigger(
48 							TokenInterpreter &	io_rInterpreter ) const;
49 	// INQUIRY
50 	virtual const char*	Text() const;
51 
52   private:
53 	// DATA
54 	String 				sText;
55 };
56 
57 class Tok_Comma : public Token
58 {
59   public:
60 	// OPERATIONS
61 	virtual void		Trigger(
62 							TokenInterpreter &	io_rInterpreter ) const;
63 	// INQUIRY
64 	virtual const char*	Text() const;
65 };
66 
67 class Tok_DocuEnd : public Token
68 {
69   public:
70 	// Spring and Fall
71 	// OPERATIONS
72 	virtual void		Trigger(
73 							TokenInterpreter &	io_rInterpreter ) const;
74 	// INQUIRY
75 	virtual const char*	Text() const;
76 };
77 
78 class Tok_EOL : public Token
79 {
80   public:
81 	// Spring and Fall
82 	// OPERATIONS
83 	virtual void		Trigger(
84 							TokenInterpreter &	io_rInterpreter ) const;
85 	// INQUIRY
86 	virtual const char*	Text() const;
87 };
88 
89 class Tok_EOF : public Token
90 {
91   public:
92 	// Spring and Fall
93 	// OPERATIONS
94 	virtual void		Trigger(
95 							TokenInterpreter &	io_rInterpreter ) const;
96 	// INQUIRY
97 	virtual const char*	Text() const;
98 };
99 
100 class Tok_White : public Token
101 {
102   public:
103 	// OPERATIONS
104 	virtual void		Trigger(
105 							TokenInterpreter &	io_rInterpreter ) const;
106 	// INQUIRY
107 	virtual const char*	Text() const;
108 };
109 
110 
111 
112 }   // namespace dsapi
113 }   // namespace csi
114 
115 
116 #endif
117 
118