1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef ARY_IDL_IA_CE_HXX
30 #define ARY_IDL_IA_CE_HXX
35 #include <ary/idl/ip_ce.hxx>
50 Implements ::ary::idl::CePilot. Provides the access logic for all
58 class CeAdmin
: public CePilot
63 NameLookup
& io_rNameDictionary
,
64 TypeAdmin
& io_rTypePilot
);
70 const Ce_Storage
& Storage() const;
73 Ce_Storage
& Storage();
76 // Interface ::ary::idl::CePilot:
77 virtual Module
& CheckIn_Module(
79 const String
& i_sName
);
80 virtual Service
& Store_Service(
82 const String
& i_sName
);
83 virtual SglIfcService
&
86 const String
& i_sName
,
87 Type_id i_nBaseInterface
);
88 virtual Interface
& Store_Interface(
90 const String
& i_sName
,
92 virtual Struct
& Store_Struct(
94 const String
& i_sName
,
96 const String
& i_sTemplateParam
);
97 virtual Exception
& Store_Exception(
99 const String
& i_sName
,
101 virtual Enum
& Store_Enum(
103 const String
& i_sName
);
104 virtual Typedef
& Store_Typedef(
106 const String
& i_sName
,
107 Type_id i_nDefiningType
);
108 virtual ConstantsGroup
&
109 Store_ConstantsGroup(
111 const String
& i_sName
);
112 virtual Singleton
& Store_Singleton(
114 const String
& i_sName
);
115 virtual SglIfcSingleton
&
116 Store_SglIfcSingleton(
118 const String
& i_sName
,
119 Type_id i_nBaseInterface
);
121 virtual Constant
& Store_Constant(
123 const String
& i_sName
,
125 const String
& i_sValue
);
126 virtual Property
& Store_Property(
128 const String
& i_sName
,
130 Property::Stereotypes
132 virtual Function
& Store_Function(
134 const String
& i_sName
,
135 Type_id i_nReturnType
,
137 virtual Function
& Store_ServiceConstructor(
139 const String
& i_sName
);
140 virtual StructElement
&
143 const String
& i_sName
,
145 virtual StructElement
&
146 Store_ExceptionMember(
148 const String
& i_sName
,
150 virtual EnumValue
& Store_EnumValue(
152 const String
& i_sName
,
153 const String
& i_sValue
);
154 virtual Attribute
& Store_Attribute(
156 const String
& i_sName
,
161 virtual const Module
&
162 GlobalNamespace() const;
163 virtual const CodeEntity
&
166 virtual const Module
&
169 virtual const Module
*
172 virtual const Function
&
175 virtual const Property
&
178 virtual const EnumValue
&
181 virtual const Constant
&
184 virtual const StructElement
&
187 virtual void Get_Text(
188 StringVector
& o_module
,
191 const CodeEntity
& i_ce
) const;
192 virtual const NameLookup
&
193 NameDictionary() const;
194 virtual void Get_AlphabeticalIndex(
197 alphabetical_index::E_Letter
200 virtual Module
& GlobalNamespace();
206 Module
& lhf_Access_Module(
208 void lhf_Put2Storage_and_AssignId(
209 CodeEntity
& pass_io_rCe
);
210 void lhf_Store_NewEntity(
211 DYN CodeEntity
& pass_io_rCe
,
213 void lhf_Store_NewEntity(
214 DYN CodeEntity
& pass_io_rCe
,
215 Ce_id i_nOwnerModule
);
217 StringVector
& o_module
,
218 const CodeEntity
& i_ce
) const;
219 Struct
& lhf_Store_TplStruct(
221 const String
& i_sName
,
223 const String
& i_sTemplateParam
);
225 const Ce_Storage
& my_Storage() const;
226 Ce_Storage
& my_Storage();
227 NameLookup
& my_NameDictionary() { return *pNameDictionary
; }
230 Dyn
<Ce_Storage
> pStorage
; /// @inv pStorage != 0;
231 Module
* pGlobalNamespace
;
232 NameLookup
* pNameDictionary
;
233 TypeAdmin
* pTypePilot
;
238 inline const Ce_Storage
&
239 CeAdmin::Storage() const
256 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */