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 #ifndef ARY_CPP_C_REPOSYPART_HXX
29 #define ARY_CPP_C_REPOSYPART_HXX
30 
31 
32 
33 // BASE CLASSES
34 #include <cpp_internalgate.hxx>
35 
36 namespace ary
37 {
38 namespace cpp
39 {
40     class CeAdmin;
41     class DefAdmin;
42     class TypeAdmin;
43 }
44 }
45 
46 
47 
48 
49 namespace ary
50 {
51 namespace cpp
52 {
53 
54 
55 
56 /** The C++ partition of the repository.
57 */
58 class RepositoryPartition : public InternalGate
59 {
60   public:
61                         RepositoryPartition(
62                             RepositoryCenter &  i_reposyImpl );
63     virtual             ~RepositoryPartition();
64 
65     // INHERITED
66         // Interface Gate:
67     virtual void        Calculate_AllSecondaryInformation();
68 //                            const ::autodoc::Options &
69 //                                                i_options );
70     virtual const String &
71                         RepositoryTitle() const;
72 	virtual const CodeEntity *
73 	                    Search_RelatedCe(
74 							Type_id		        i_type ) const;
75     virtual const ::ary::cpp::CppEntity *
76                         Search_Entity(
77                             GlobalId            i_id ) const;
78     virtual uintt       Get_AlphabeticalList(
79                             List_GlobalIds &    o_result,
80                             const char *        i_begin,
81                             const char *        i_end ) const;
82     virtual const CePilot &
83                         Ces() const;
84     virtual const DefPilot &
85                         Defs() const;
86     virtual const TypePilot &
87                         Types() const;
88     virtual const loc::LocationPilot &
89                         Locations() const;
90     virtual CePilot &   Ces();
91     virtual DefPilot &  Defs();
92     virtual TypePilot & Types();
93     virtual loc::LocationPilot &
94                         Locations();
95   private:
96     // Locals
97     void                Connect_AllTypes_2_TheirRelated_CodeEntites();
98 
99     // DATA
100     RepositoryCenter *  pRepositoryCenter;
101 
102     Dyn<CeAdmin>        pCes;
103     Dyn<TypeAdmin>      pTypes;
104     Dyn<DefAdmin>       pDefs;
105     Dyn<loc::LocationPilot>
106                         pLocations;
107 };
108 
109 
110 
111 
112 }   //  namespace cpp
113 }   //  namespace ary
114 #endif
115