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