xref: /aoo42x/main/autodoc/inc/ary/cpp/c_tydef.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_TYDEF_HXX
25 #define ARY_CPP_C_TYDEF_HXX
26 
27 
28 
29 // USED SERVICES
30 	// BASE CLASSES
31 #include <ary/cpp/c_ce.hxx>
32 	// OTHER
33 #include <ary/cessentl.hxx>
34 #include <ary/cpp/c_types4cpp.hxx>
35 
36 
37 
38 namespace ary
39 {
40 namespace cpp
41 {
42 
43 
44 /** A C++ typedef declaration.
45 */
46 class Typedef : public CodeEntity
47 {
48   public:
49     // LIFECYCLE
50     enum E_ClassId { class_id = 1003 };
51 
52                         Typedef(
53                             const String  &     i_sLocalName,
54                             Ce_id               i_nOwner,
55                             E_Protection        i_eProtection,
56                             Lid                 i_nFile,
57                             Type_id             i_nDescribingType );
58                         ~Typedef();
59     // INQUIRY
60 	Type_id             DescribingType() const;
Protection() const61 	E_Protection        Protection() const      { return eProtection; }
62 
63   private:
64     // Interface csv::ConstProcessorClient
65     virtual void        do_Accept(
66                             csv::ProcessorIfc & io_processor ) const;
67 
68     // Interface ary::cpp::CodeEntity
69 	virtual const String  &
70                         inq_LocalName() const;
71 	virtual Cid         inq_Owner() const;
72 	virtual Lid			inq_Location() const;
73 
74     // Interface ary::cpp::CppEntity
75     virtual ClassId     get_AryClass() const;
76 
77     // DATA
78 	CeEssentials		aEssentials;
79 	Type_id             nDescribingType;
80 	E_Protection		eProtection;
81 };
82 
83 
84 
85 // IMPLEMENTATION
86 inline Type_id
DescribingType() const87 Typedef::DescribingType() const
88 {
89     return nDescribingType;
90 }
91 
92 
93 
94 }   //  namespace cpp
95 }   //  namespace ary
96 #endif
97