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