Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #ifndef ARY_IDL_IP_TYPE_HXX
21 : #define ARY_IDL_IP_TYPE_HXX
22 :
23 : // USED SERVICES
24 : #include <ary/idl/i_types4idl.hxx>
25 :
26 :
27 :
28 :
29 : namespace ary
30 : {
31 : class QualifiedName;
32 :
33 : namespace idl
34 : {
35 : class Type;
36 : class ExplicitNameRoom;
37 :
38 :
39 : /** Access point to all {->Type}s in IDL.
40 : */
41 1 : class TypePilot
42 : {
43 : public:
44 : // LIFECYCLE
45 1 : virtual ~TypePilot() {}
46 :
47 : // OPERATIONS
48 : virtual const Type &
49 : CheckIn_Type(
50 : QualifiedName & i_rFullName,
51 : uintt i_nSequenceCount,
52 : Ce_id i_nModuleOfOccurrence,
53 : const std::vector<Type_id> *
54 : i_templateParameters ) = 0;
55 : // INQUIRY
56 : virtual const Type &
57 : Find_Type(
58 : Type_id i_nType ) const = 0;
59 : virtual String Search_LocalNameOf(
60 : Type_id i_nType ) const = 0;
61 : virtual Ce_id Search_CeRelatedTo(
62 : Type_id i_nType ) const = 0;
63 : virtual const ExplicitNameRoom &
64 : Find_XNameRoom(
65 : Type_id i_nType ) const = 0;
66 : virtual bool IsBuiltInOrRelated(
67 : const Type & i_rType ) const = 0;
68 : };
69 :
70 :
71 :
72 :
73 : } // namespace idl
74 : } // namespace ary
75 : #endif
76 :
77 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|