xref: /trunk/main/autodoc/inc/ary/idl/i_typedef.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_IDL_I_TYPEDEF_HXX
25 #define ARY_IDL_I_TYPEDEF_HXX
26 
27 // BASE CLASSES
28 #include <ary/idl/i_ce.hxx>
29 
30 
31 
32 
33 namespace ary
34 {
35 namespace idl
36 {
37 namespace ifc_typedef
38 {
39     struct attr;
40 }
41 
42 
43 /** Represents an IDL typedef.
44 */
45 class Typedef : public CodeEntity
46 {
47   public:
48     enum E_ClassId { class_id = 2007 };
49 
50     // LIFECYCLE
51                         Typedef(
52                             const String &      i_sName,
53                             Ce_id               i_nOwner,
54                             Type_id             i_nDefiningType );
55                         ~Typedef();
56 
DefiningType() const57     Type_id             DefiningType() const    { return nDefiningType; }
58 
59   private:
60     // Interface csv::ConstProcessorClient:
61     virtual void        do_Accept(
62                             csv::ProcessorIfc & io_processor ) const;
63     // Interface ary::Object:
64     virtual ClassId     get_AryClass() const;
65 
66     // Interface CodeEntity
67     virtual const String &  inq_LocalName() const;
68     virtual Ce_id           inq_NameRoom() const;
69     virtual Ce_id           inq_Owner() const;
70     virtual E_SightLevel    inq_SightLevel() const;
71 
72     friend struct ifc_typedef::attr;
73 
74     // DATA
75     String              sName;
76     Ce_id               nOwner;
77 
78     Type_id             nDefiningType;
79 };
80 
81 
82 
83 
84 }   // namespace idl
85 }   // namespace ary
86 #endif
87