xref: /AOO41X/main/autodoc/source/ary/kernel/reposy.cxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir #include <precomp.h>
29*cdf0e10cSrcweir #include <reposy.hxx>
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir 
32*cdf0e10cSrcweir // NOT FULLY DECLARED SERVICES
33*cdf0e10cSrcweir #include <cpp_internalgate.hxx>
34*cdf0e10cSrcweir #include <idl_internalgate.hxx>
35*cdf0e10cSrcweir 
36*cdf0e10cSrcweir 
37*cdf0e10cSrcweir namespace ary
38*cdf0e10cSrcweir {
39*cdf0e10cSrcweir 
40*cdf0e10cSrcweir 
41*cdf0e10cSrcweir //*****************     Repository          ************//
42*cdf0e10cSrcweir 
43*cdf0e10cSrcweir DYN Repository &
44*cdf0e10cSrcweir Repository::Create_()
45*cdf0e10cSrcweir {
46*cdf0e10cSrcweir     return *new RepositoryCenter;
47*cdf0e10cSrcweir }
48*cdf0e10cSrcweir 
49*cdf0e10cSrcweir 
50*cdf0e10cSrcweir 
51*cdf0e10cSrcweir 
52*cdf0e10cSrcweir RepositoryCenter::RepositoryCenter()
53*cdf0e10cSrcweir     :   sDisplayedName(),
54*cdf0e10cSrcweir         aLocation(),
55*cdf0e10cSrcweir         pCppPartition(0),
56*cdf0e10cSrcweir         pIdlPartition(0)
57*cdf0e10cSrcweir {
58*cdf0e10cSrcweir     pCppPartition = & cpp::InternalGate::Create_Partition_(*this);
59*cdf0e10cSrcweir     pIdlPartition = & idl::InternalGate::Create_Partition_(*this);
60*cdf0e10cSrcweir }
61*cdf0e10cSrcweir 
62*cdf0e10cSrcweir RepositoryCenter::~RepositoryCenter()
63*cdf0e10cSrcweir {
64*cdf0e10cSrcweir }
65*cdf0e10cSrcweir 
66*cdf0e10cSrcweir const ::ary::cpp::Gate &
67*cdf0e10cSrcweir RepositoryCenter::Gate_Cpp() const
68*cdf0e10cSrcweir {
69*cdf0e10cSrcweir     csv_assert(pCppPartition);
70*cdf0e10cSrcweir     return *pCppPartition;
71*cdf0e10cSrcweir }
72*cdf0e10cSrcweir 
73*cdf0e10cSrcweir const ::ary::idl::Gate &
74*cdf0e10cSrcweir RepositoryCenter::Gate_Idl() const
75*cdf0e10cSrcweir {
76*cdf0e10cSrcweir     csv_assert(pIdlPartition);
77*cdf0e10cSrcweir     return *pIdlPartition;
78*cdf0e10cSrcweir }
79*cdf0e10cSrcweir 
80*cdf0e10cSrcweir const String &
81*cdf0e10cSrcweir RepositoryCenter::Title() const
82*cdf0e10cSrcweir {
83*cdf0e10cSrcweir     return sDisplayedName;
84*cdf0e10cSrcweir }
85*cdf0e10cSrcweir 
86*cdf0e10cSrcweir 
87*cdf0e10cSrcweir ::ary::cpp::Gate &
88*cdf0e10cSrcweir RepositoryCenter::Gate_Cpp()
89*cdf0e10cSrcweir {
90*cdf0e10cSrcweir     csv_assert(pCppPartition);
91*cdf0e10cSrcweir     return *pCppPartition;
92*cdf0e10cSrcweir }
93*cdf0e10cSrcweir 
94*cdf0e10cSrcweir ::ary::idl::Gate &
95*cdf0e10cSrcweir RepositoryCenter::Gate_Idl()
96*cdf0e10cSrcweir {
97*cdf0e10cSrcweir     csv_assert(pIdlPartition);
98*cdf0e10cSrcweir     return *pIdlPartition;
99*cdf0e10cSrcweir }
100*cdf0e10cSrcweir 
101*cdf0e10cSrcweir void
102*cdf0e10cSrcweir RepositoryCenter::Set_Title(const String & i_sName)
103*cdf0e10cSrcweir {
104*cdf0e10cSrcweir     sDisplayedName = i_sName;
105*cdf0e10cSrcweir }
106*cdf0e10cSrcweir 
107*cdf0e10cSrcweir 
108*cdf0e10cSrcweir 
109*cdf0e10cSrcweir 
110*cdf0e10cSrcweir //*********************     Repository Type Info Data       ****************//
111*cdf0e10cSrcweir 
112*cdf0e10cSrcweir // !!! IMPORTANT - NEVER DELETE OR CHANGE - ADDING ALLOWED
113*cdf0e10cSrcweir 
114*cdf0e10cSrcweir 
115*cdf0e10cSrcweir 
116*cdf0e10cSrcweir /*  ClassType-Ids
117*cdf0e10cSrcweir     -------------
118*cdf0e10cSrcweir 
119*cdf0e10cSrcweir     cpp                 1000
120*cdf0e10cSrcweir     idl                 2000
121*cdf0e10cSrcweir     corba               3000
122*cdf0e10cSrcweir     java                4000
123*cdf0e10cSrcweir     information         5000
124*cdf0e10cSrcweir     logic location      6000
125*cdf0e10cSrcweir     phys location       7000
126*cdf0e10cSrcweir     sec. prod.          8000
127*cdf0e10cSrcweir 
128*cdf0e10cSrcweir 
129*cdf0e10cSrcweir     cpp
130*cdf0e10cSrcweir     ---
131*cdf0e10cSrcweir     Namespace           1000
132*cdf0e10cSrcweir     Class               1001
133*cdf0e10cSrcweir     Enum                1002
134*cdf0e10cSrcweir     Typedef             1003
135*cdf0e10cSrcweir     Function            1004
136*cdf0e10cSrcweir     Variable            1005
137*cdf0e10cSrcweir     EnumValue           1006
138*cdf0e10cSrcweir     NamespaceAlias      1007
139*cdf0e10cSrcweir 
140*cdf0e10cSrcweir     BuiltInType         1200
141*cdf0e10cSrcweir     CeType_Final        1201
142*cdf0e10cSrcweir     CeType_Extern       1202
143*cdf0e10cSrcweir     UsedType            1203
144*cdf0e10cSrcweir     PtrType             1211
145*cdf0e10cSrcweir     RefType             1212
146*cdf0e10cSrcweir     ConstType           1221
147*cdf0e10cSrcweir     VolatileType        1222
148*cdf0e10cSrcweir     ArrayType           1230
149*cdf0e10cSrcweir     TemplateInstance    1235
150*cdf0e10cSrcweir     FunctionPtr         1240
151*cdf0e10cSrcweir     DataMemberPtr       1250
152*cdf0e10cSrcweir     OperationMemberPtr  1260
153*cdf0e10cSrcweir 
154*cdf0e10cSrcweir     TplParam_Type       1301
155*cdf0e10cSrcweir     TplParam_Value      1302
156*cdf0e10cSrcweir 
157*cdf0e10cSrcweir     OpSignature         1400
158*cdf0e10cSrcweir 
159*cdf0e10cSrcweir     Define              1601
160*cdf0e10cSrcweir     Macro               1602
161*cdf0e10cSrcweir 
162*cdf0e10cSrcweir     ProjectGroup        1901
163*cdf0e10cSrcweir     FileGroup           1902
164*cdf0e10cSrcweir 
165*cdf0e10cSrcweir     TopProject          1921
166*cdf0e10cSrcweir 
167*cdf0e10cSrcweir 
168*cdf0e10cSrcweir 
169*cdf0e10cSrcweir     idl
170*cdf0e10cSrcweir     ---
171*cdf0e10cSrcweir 
172*cdf0e10cSrcweir     Module              2000
173*cdf0e10cSrcweir     Interface           2001
174*cdf0e10cSrcweir     Function            2002
175*cdf0e10cSrcweir     Service             2003
176*cdf0e10cSrcweir     Property            2004
177*cdf0e10cSrcweir     Enum                2005
178*cdf0e10cSrcweir     EnumValue           2006
179*cdf0e10cSrcweir     Typedef             2007
180*cdf0e10cSrcweir     Struct              2008
181*cdf0e10cSrcweir     StructElement       2009
182*cdf0e10cSrcweir     Exception           2010
183*cdf0e10cSrcweir     ConstantGroup       2011
184*cdf0e10cSrcweir     Constant            2012
185*cdf0e10cSrcweir     Singleton           2013
186*cdf0e10cSrcweir     Attribute           2014
187*cdf0e10cSrcweir     SglIfcService       2015
188*cdf0e10cSrcweir     SglIfcSingleton     2016
189*cdf0e10cSrcweir 
190*cdf0e10cSrcweir     BuiltInType         2200
191*cdf0e10cSrcweir     CeType              2201
192*cdf0e10cSrcweir     Sequence            2202
193*cdf0e10cSrcweir     ExplicitType        2203
194*cdf0e10cSrcweir     ExplicitNameRoom    2204
195*cdf0e10cSrcweir     TemplateParamType   2205
196*cdf0e10cSrcweir 
197*cdf0e10cSrcweir 
198*cdf0e10cSrcweir     java
199*cdf0e10cSrcweir     ----
200*cdf0e10cSrcweir     Package             4000
201*cdf0e10cSrcweir     Interface           4001
202*cdf0e10cSrcweir     Class               4002
203*cdf0e10cSrcweir 
204*cdf0e10cSrcweir     physical location
205*cdf0e10cSrcweir     -----------------
206*cdf0e10cSrcweir     Root                7000
207*cdf0e10cSrcweir     Directory           7030
208*cdf0e10cSrcweir     File                7100
209*cdf0e10cSrcweir 
210*cdf0e10cSrcweir 
211*cdf0e10cSrcweir     info
212*cdf0e10cSrcweir     ----
213*cdf0e10cSrcweir     CodeInformation
214*cdf0e10cSrcweir         (IDL)          11002
215*cdf0e10cSrcweir */
216*cdf0e10cSrcweir 
217*cdf0e10cSrcweir 
218*cdf0e10cSrcweir }   // namespace ary
219