xref: /aoo4110/main/autodoc/source/ary/idl/it_ce.cxx (revision b1cdbd2c)
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 #include <precomp.h>
23 #include "it_ce.hxx"
24 
25 
26 // NOT FULLY DEFINED SERVICES
27 #include <cosv/tpl/processor.hxx>
28 #include <ary/idl/i_ce.hxx>
29 #include <ary/idl/i_gate.hxx>
30 #include <ary/idl/i_module.hxx>
31 #include <ary/idl/ip_ce.hxx>
32 
33 
34 
35 namespace ary
36 {
37 namespace idl
38 {
39 
40 
Ce_Type(Ce_id i_relatedCe,const std::vector<Type_id> * i_templateParameters)41 Ce_Type::Ce_Type( Ce_id                        i_relatedCe,
42                   const std::vector<Type_id> * i_templateParameters )
43     :   nRelatedCe(i_relatedCe),
44         pTemplateParameters(0)
45 {
46     if (i_templateParameters != 0)
47         pTemplateParameters = new std::vector<Type_id>(*i_templateParameters);
48 }
49 
~Ce_Type()50 Ce_Type::~Ce_Type()
51 {
52 }
53 
54 ClassId
get_AryClass() const55 Ce_Type::get_AryClass() const
56 {
57     return class_id;
58 }
59 
60 void
do_Accept(csv::ProcessorIfc & io_processor) const61 Ce_Type::do_Accept( csv::ProcessorIfc & io_processor ) const
62 {
63     csv::CheckedCall(io_processor, *this);
64 }
65 
66 void
inq_Get_Text(StringVector & o_module,String & o_name,Ce_id & o_nRelatedCe,int &,const Gate & i_rGate) const67 Ce_Type::inq_Get_Text( StringVector &      o_module,
68                        String &            o_name,
69                        Ce_id &             o_nRelatedCe,
70                        int &               ,                // o_nSequenceCount
71                        const Gate &        i_rGate ) const
72 {
73     String sDummyMember;
74 
75     const CodeEntity &
76         rCe = i_rGate.Ces().Find_Ce(nRelatedCe);
77     i_rGate.Ces().Get_Text( o_module,
78                             o_name,
79                             sDummyMember,
80                             rCe );
81     o_nRelatedCe = nRelatedCe;
82 }
83 
84 const std::vector<Type_id> *
inq_TemplateParameters() const85 Ce_Type::inq_TemplateParameters() const
86 {
87     return pTemplateParameters.Ptr();
88 }
89 
90 
91 
92 
93 }   // namespace idl
94 }   // namespace ary
95