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_IT_EXPLICIT_HXX
25 #define ARY_IDL_IT_EXPLICIT_HXX
26 
27 // BASE CLASSES
28 #include "it_named.hxx"
29 
30 
31 
32 
33 namespace ary
34 {
35 namespace idl
36 {
37 
38 
39 /** A named @->Type, not yet related to its corresponding
40     @->CodeEntity.
41 */
42 class ExplicitType : public Named_Type
43 {
44   public:
45     enum E_ClassId { class_id = 2203 };
46 
47     // LIFECYCLE
48                         ExplicitType(
49                             const String &      i_sName,
50                             Type_id             i_nXNameRoom,
51                             Ce_id               i_nModuleOfOccurrence,
52                             const std::vector<Type_id> *
53                                                 i_templateParameters );
54     virtual             ~ExplicitType();
55 
56     // INQUIRY
ModuleOfOccurrence() const57     Ce_id               ModuleOfOccurrence() const
58                                                 { return nModuleOfOccurrence; }
NameRoom() const59     Type_id             NameRoom() const        { return nXNameRoom; }
60 
61   private:
62     // Interface csv::ConstProcessorClient:
63     virtual void        do_Accept(
64                             csv::ProcessorIfc & io_processor ) const;
65     // Interface CppEntity:
66     virtual ClassId     get_AryClass() const;
67 
68     // Interface Type:
69     virtual void        inq_Get_Text(
70                             StringVector &      o_module,
71                             String &            o_name,
72                             Ce_id &             o_nRelatedCe,
73                             int &               o_nSequemceCount,
74                             const Gate &        i_rGate ) const;
75     virtual const std::vector<Type_id> *
76                         inq_TemplateParameters() const;
77     // DATA
78     Type_id             nXNameRoom;             // As written in code.
79     Ce_id               nModuleOfOccurrence;
80     Dyn< const std::vector<Type_id> >
81                         pTemplateParameters;
82 };
83 
84 
85 
86 
87 }   // namespace idl
88 }   // namespace ary
89 #endif
90