1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef INCLUDED_idlc_inc_idlc_inheritedinterface_hxx
25 #define INCLUDED_idlc_inc_idlc_inheritedinterface_hxx
26 
27 #include "idlc/idlc.hxx"
28 
29 #include "rtl/ustring.hxx"
30 
31 class AstInterface;
32 class AstType;
33 
34 class InheritedInterface {
35 public:
InheritedInterface(AstType const * theInterface,bool theOptional,rtl::OUString const & theDocumentation)36     InheritedInterface(
37         AstType const * theInterface, bool theOptional,
38         rtl::OUString const & theDocumentation):
39         interface(theInterface), optional(theOptional),
40         documentation(theDocumentation) {}
41 
getInterface() const42     AstType const * getInterface() const { return interface; }
43 
getResolved() const44     AstInterface const * getResolved() const
45     { return resolveInterfaceTypedefs(interface); }
46 
isOptional() const47     bool isOptional() const { return optional; }
48 
getDocumentation() const49     rtl::OUString getDocumentation() const { return documentation; }
50 
51 private:
52     AstType const * interface;
53     bool optional;
54     rtl::OUString documentation;
55 };
56 
57 #endif
58