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_TPLPARAM_HXX
25 #define ARY_IDL_IT_TPLPARAM_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 /** @resp Represents a template type when it is used within the
40     declaring struct.
41 */
42 class TemplateParamType : public Named_Type
43 {
44   public:
45     enum E_ClassId { class_id = 2205 };
46 
47     // LIFECYCLE
48                         TemplateParamType(
49                             const char *        i_sName );
50     virtual             ~TemplateParamType();
51 
52     Ce_id               StructId() const;       /// The struct which declares this type.
53     void                Set_StructId(
54                             Ce_id               i_nStruct );
55   private:
56     // Interface csv::ConstProcessorClient:
57     virtual void        do_Accept(
58                             csv::ProcessorIfc & io_processor ) const;
59     // Interface Object:
60     virtual ClassId     get_AryClass() const;
61 
62     // Interface Type:
63     virtual void        inq_Get_Text(
64                             StringVector &      o_module,
65                             String &            o_name,
66                             Ce_id &             o_nRelatedCe,
67                             int &               o_nSequenceCount,
68                             const Gate &        i_rGate ) const;
69     // DATA
70     Ce_id               nStruct;                /// The struct which declares this type.
71 };
72 
73 
74 
75 
76 // IMPLEMENTATION
77 inline Ce_id
StructId() const78 TemplateParamType::StructId() const
79 {
80     return nStruct;
81 }
82 
83 inline void
Set_StructId(Ce_id i_nStruct)84 TemplateParamType::Set_StructId( Ce_id i_nStruct )
85 {
86     nStruct = i_nStruct;
87 }
88 
89 
90 
91 
92 }   // namespace idl
93 }   // namespace ary
94 #endif
95