xref: /aoo41x/main/autodoc/source/ary/idl/it_ce.cxx (revision 78bc99aa)
1*78bc99aaSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*78bc99aaSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*78bc99aaSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*78bc99aaSAndrew Rist  * distributed with this work for additional information
6*78bc99aaSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*78bc99aaSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*78bc99aaSAndrew Rist  * "License"); you may not use this file except in compliance
9*78bc99aaSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*78bc99aaSAndrew Rist  *
11*78bc99aaSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*78bc99aaSAndrew Rist  *
13*78bc99aaSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*78bc99aaSAndrew Rist  * software distributed under the License is distributed on an
15*78bc99aaSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*78bc99aaSAndrew Rist  * KIND, either express or implied.  See the License for the
17*78bc99aaSAndrew Rist  * specific language governing permissions and limitations
18*78bc99aaSAndrew Rist  * under the License.
19*78bc99aaSAndrew Rist  *
20*78bc99aaSAndrew Rist  *************************************************************/
21cdf0e10cSrcweir 
22cdf0e10cSrcweir #include <precomp.h>
23cdf0e10cSrcweir #include "it_ce.hxx"
24cdf0e10cSrcweir 
25cdf0e10cSrcweir 
26cdf0e10cSrcweir // NOT FULLY DEFINED SERVICES
27cdf0e10cSrcweir #include <cosv/tpl/processor.hxx>
28cdf0e10cSrcweir #include <ary/idl/i_ce.hxx>
29cdf0e10cSrcweir #include <ary/idl/i_gate.hxx>
30cdf0e10cSrcweir #include <ary/idl/i_module.hxx>
31cdf0e10cSrcweir #include <ary/idl/ip_ce.hxx>
32cdf0e10cSrcweir 
33cdf0e10cSrcweir 
34cdf0e10cSrcweir 
35cdf0e10cSrcweir namespace ary
36cdf0e10cSrcweir {
37cdf0e10cSrcweir namespace idl
38cdf0e10cSrcweir {
39cdf0e10cSrcweir 
40cdf0e10cSrcweir 
Ce_Type(Ce_id i_relatedCe,const std::vector<Type_id> * i_templateParameters)41cdf0e10cSrcweir Ce_Type::Ce_Type( Ce_id                        i_relatedCe,
42cdf0e10cSrcweir                   const std::vector<Type_id> * i_templateParameters )
43cdf0e10cSrcweir     :   nRelatedCe(i_relatedCe),
44cdf0e10cSrcweir         pTemplateParameters(0)
45cdf0e10cSrcweir {
46cdf0e10cSrcweir     if (i_templateParameters != 0)
47cdf0e10cSrcweir         pTemplateParameters = new std::vector<Type_id>(*i_templateParameters);
48cdf0e10cSrcweir }
49cdf0e10cSrcweir 
~Ce_Type()50cdf0e10cSrcweir Ce_Type::~Ce_Type()
51cdf0e10cSrcweir {
52cdf0e10cSrcweir }
53cdf0e10cSrcweir 
54cdf0e10cSrcweir ClassId
get_AryClass() const55cdf0e10cSrcweir Ce_Type::get_AryClass() const
56cdf0e10cSrcweir {
57cdf0e10cSrcweir     return class_id;
58cdf0e10cSrcweir }
59cdf0e10cSrcweir 
60cdf0e10cSrcweir void
do_Accept(csv::ProcessorIfc & io_processor) const61cdf0e10cSrcweir Ce_Type::do_Accept( csv::ProcessorIfc & io_processor ) const
62cdf0e10cSrcweir {
63cdf0e10cSrcweir     csv::CheckedCall(io_processor, *this);
64cdf0e10cSrcweir }
65cdf0e10cSrcweir 
66cdf0e10cSrcweir void
inq_Get_Text(StringVector & o_module,String & o_name,Ce_id & o_nRelatedCe,int &,const Gate & i_rGate) const67cdf0e10cSrcweir Ce_Type::inq_Get_Text( StringVector &      o_module,
68cdf0e10cSrcweir                        String &            o_name,
69cdf0e10cSrcweir                        Ce_id &             o_nRelatedCe,
70cdf0e10cSrcweir                        int &               ,                // o_nSequenceCount
71cdf0e10cSrcweir                        const Gate &        i_rGate ) const
72cdf0e10cSrcweir {
73cdf0e10cSrcweir     String sDummyMember;
74cdf0e10cSrcweir 
75cdf0e10cSrcweir     const CodeEntity &
76cdf0e10cSrcweir         rCe = i_rGate.Ces().Find_Ce(nRelatedCe);
77cdf0e10cSrcweir     i_rGate.Ces().Get_Text( o_module,
78cdf0e10cSrcweir                             o_name,
79cdf0e10cSrcweir                             sDummyMember,
80cdf0e10cSrcweir                             rCe );
81cdf0e10cSrcweir     o_nRelatedCe = nRelatedCe;
82cdf0e10cSrcweir }
83cdf0e10cSrcweir 
84cdf0e10cSrcweir const std::vector<Type_id> *
inq_TemplateParameters() const85cdf0e10cSrcweir Ce_Type::inq_TemplateParameters() const
86cdf0e10cSrcweir {
87cdf0e10cSrcweir     return pTemplateParameters.Ptr();
88cdf0e10cSrcweir }
89cdf0e10cSrcweir 
90cdf0e10cSrcweir 
91cdf0e10cSrcweir 
92cdf0e10cSrcweir 
93cdf0e10cSrcweir }   // namespace idl
94cdf0e10cSrcweir }   // namespace ary
95