xref: /trunk/main/autodoc/inc/ary/cpp/c_define.hxx (revision 1c78a5d6)
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 ARY_CPP_C_DEFINE_HXX
25 #define ARY_CPP_C_DEFINE_HXX
26 
27 
28 // USED SERVICES
29 	// BASE CLASSES
30 #include <ary/cpp/c_de.hxx>
31 	// OTHER
32 
33 
34 
35 
36 namespace ary
37 {
38 namespace cpp
39 {
40 
41 
42 /** A C/C++ #define ("#define DEF") statement, but no macro.
43 
44     @see Macro
45 */
46 class Define : public DefineEntity
47 {
48   public:
49     enum E_ClassId { class_id = 1601 };
50 
51                         Define(      /// Used for: #define DEFINE xyz
52                             const String  &     i_name,
53                             const StringVector &
54                                                 i_definition,
55                             loc::Le_id          i_declaringFile );
56     virtual             ~Define();
57   private:
58     // Interface csv::ConstProcessorClient
59     virtual void        do_Accept(
60                             csv::ProcessorIfc & io_processor ) const;
61 
62     // Interface ary::Object:
63 	virtual ClassId     get_AryClass() const;
64 
65     // Interface DefineEntity:
66     virtual const StringVector &
67                         inq_DefinitionText() const;
68     // DATA
69     StringVector        aDefinition;
70 };
71 
72 
73 
74 
75 
76 }   // namespace cpp
77 }   // namespace ary
78 #endif
79