1*d291ea28SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*d291ea28SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*d291ea28SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*d291ea28SAndrew Rist  * distributed with this work for additional information
6*d291ea28SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*d291ea28SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*d291ea28SAndrew Rist  * "License"); you may not use this file except in compliance
9*d291ea28SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*d291ea28SAndrew Rist  *
11*d291ea28SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*d291ea28SAndrew Rist  *
13*d291ea28SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*d291ea28SAndrew Rist  * software distributed under the License is distributed on an
15*d291ea28SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d291ea28SAndrew Rist  * KIND, either express or implied.  See the License for the
17*d291ea28SAndrew Rist  * specific language governing permissions and limitations
18*d291ea28SAndrew Rist  * under the License.
19*d291ea28SAndrew Rist  *
20*d291ea28SAndrew Rist  *************************************************************/
21cdf0e10cSrcweir 
22cdf0e10cSrcweir #include <precomp.h>
23cdf0e10cSrcweir #include "i_reposypart.hxx"
24cdf0e10cSrcweir 
25cdf0e10cSrcweir 
26cdf0e10cSrcweir // NOT FULLY DEFINED SERVICES
27cdf0e10cSrcweir #include <ary/idl/i_namelookup.hxx>
28cdf0e10cSrcweir #include <idl_internalgate.hxx>
29cdf0e10cSrcweir #include "ia_ce.hxx"
30cdf0e10cSrcweir #include "ia_type.hxx"
31cdf0e10cSrcweir #include "i2s_calculator.hxx"
32cdf0e10cSrcweir #include "is_ce.hxx"
33cdf0e10cSrcweir #include "is_type.hxx"
34cdf0e10cSrcweir 
35cdf0e10cSrcweir 
36cdf0e10cSrcweir 
37cdf0e10cSrcweir 
38cdf0e10cSrcweir namespace ary
39cdf0e10cSrcweir {
40cdf0e10cSrcweir namespace idl
41cdf0e10cSrcweir {
42cdf0e10cSrcweir 
43cdf0e10cSrcweir 
44cdf0e10cSrcweir DYN InternalGate &
Create_Partition_(RepositoryCenter & i_center)45cdf0e10cSrcweir InternalGate::Create_Partition_(RepositoryCenter & i_center)
46cdf0e10cSrcweir {
47cdf0e10cSrcweir     return *new RepositoryPartition(i_center);
48cdf0e10cSrcweir }
49cdf0e10cSrcweir 
50cdf0e10cSrcweir 
51cdf0e10cSrcweir 
RepositoryPartition(RepositoryCenter & i_repository)52cdf0e10cSrcweir RepositoryPartition::RepositoryPartition( RepositoryCenter & i_repository )
53cdf0e10cSrcweir     :   pCenter(&i_repository),
54cdf0e10cSrcweir         pCes(0),
55cdf0e10cSrcweir         pTypes(0),
56cdf0e10cSrcweir         pNamesDictionary(new NameLookup)
57cdf0e10cSrcweir {
58cdf0e10cSrcweir     pTypes = new TypeAdmin;
59cdf0e10cSrcweir     pCes = new CeAdmin(*pNamesDictionary, *pTypes);
60cdf0e10cSrcweir }
61cdf0e10cSrcweir 
~RepositoryPartition()62cdf0e10cSrcweir RepositoryPartition::~RepositoryPartition()
63cdf0e10cSrcweir {
64cdf0e10cSrcweir }
65cdf0e10cSrcweir 
66cdf0e10cSrcweir void
Calculate_AllSecondaryInformation(const String & i_devman_reffilepath)67cdf0e10cSrcweir RepositoryPartition::Calculate_AllSecondaryInformation(
68cdf0e10cSrcweir                             const String &      i_devman_reffilepath )
69cdf0e10cSrcweir {
70cdf0e10cSrcweir     // KORR_FUTURE
71cdf0e10cSrcweir     //  Forward the options from here.
72cdf0e10cSrcweir 
73cdf0e10cSrcweir     SecondariesCalculator
74cdf0e10cSrcweir         secalc(*pCes,*pTypes);
75cdf0e10cSrcweir 
76cdf0e10cSrcweir     secalc.CheckAllInterfaceBases();
77cdf0e10cSrcweir     secalc.Connect_Types2Ces();
78cdf0e10cSrcweir     secalc.Gather_CrossReferences();
79cdf0e10cSrcweir 
80cdf0e10cSrcweir     if ( NOT i_devman_reffilepath.empty() )
81cdf0e10cSrcweir     {
82cdf0e10cSrcweir         secalc.Make_Links2DeveloperManual(i_devman_reffilepath);
83cdf0e10cSrcweir     }
84cdf0e10cSrcweir }
85cdf0e10cSrcweir 
86cdf0e10cSrcweir const CePilot &
Ces() const87cdf0e10cSrcweir RepositoryPartition::Ces() const
88cdf0e10cSrcweir {
89cdf0e10cSrcweir     return *pCes;
90cdf0e10cSrcweir }
91cdf0e10cSrcweir 
92cdf0e10cSrcweir const TypePilot &
Types() const93cdf0e10cSrcweir RepositoryPartition::Types() const
94cdf0e10cSrcweir {
95cdf0e10cSrcweir     return *pTypes;
96cdf0e10cSrcweir }
97cdf0e10cSrcweir 
98cdf0e10cSrcweir CePilot &
Ces()99cdf0e10cSrcweir RepositoryPartition::Ces()
100cdf0e10cSrcweir {
101cdf0e10cSrcweir     return *pCes;
102cdf0e10cSrcweir }
103cdf0e10cSrcweir 
104cdf0e10cSrcweir TypePilot &
Types()105cdf0e10cSrcweir RepositoryPartition::Types()
106cdf0e10cSrcweir {
107cdf0e10cSrcweir     return *pTypes;
108cdf0e10cSrcweir }
109cdf0e10cSrcweir 
110cdf0e10cSrcweir 
111cdf0e10cSrcweir 
112cdf0e10cSrcweir }   //  namespace idl
113cdf0e10cSrcweir }   //  namespace ary
114