xref: /trunk/main/autodoc/inc/ary/cpp/c_macro.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef ARY_CPP_C_MACRO_HXX
29 #define ARY_CPP_C_MACRO_HXX
30 
31 
32 // USED SERVICES
33 	// BASE CLASSES
34 #include <ary/cpp/c_de.hxx>
35 
36 
37 
38 namespace ary
39 {
40 namespace cpp
41 {
42 
43 
44 /** A C/C++ macro ("#define ABC(a,b)") statement, but no simple define.
45 
46     @see Define
47 */
48 class Macro : public DefineEntity
49 {
50   public:
51     enum E_ClassId { class_id = 1602 };
52 
53                         Macro();
54                         Macro(      /// Used for: #define DEFINE xyz
55                             const String  &     i_name,
56                             const StringVector &
57                                                 i_params,
58                             const StringVector &
59                                                 i_definition,
60                             loc::Le_id          i_declaringFile );
61                         ~Macro();
62     const StringVector &  Params() const          { return aParams; }
63 
64   private:
65     // Interface csv::ConstProcessorClient
66     virtual void        do_Accept(
67                             csv::ProcessorIfc & io_processor ) const;
68     // Interface ary::Object
69 	virtual ClassId     get_AryClass() const;
70 
71     // Interface DefineEntity:
72     virtual const StringVector &
73                         inq_DefinitionText() const;
74     // DATA
75     StringVector          aParams;
76     StringVector          aDefinition;
77 };
78 
79 
80 
81 
82 }   // namespace cpp
83 }   // namespace ary
84 #endif
85