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 ARY_CPP_CP_TYPE_HXX 25 #define ARY_CPP_CP_TYPE_HXX 26 27 28 // USED SERVICES 29 // BASE CLASSES 30 // OTHER 31 #include <ary/cpp/c_types4cpp.hxx> 32 33 namespace ary 34 { 35 namespace cpp 36 { 37 class InputContext; 38 class Type; 39 class UsedType; 40 } 41 } 42 43 44 45 46 47 namespace ary 48 { 49 namespace cpp 50 { 51 52 53 54 55 /** Acess to all found C++ types (as they are used in declarations) 56 in the repository. 57 */ 58 class TypePilot 59 { 60 public: 61 62 // LIFECYCLE ~TypePilot()63 virtual ~TypePilot() {} 64 65 66 // OPERATIONS 67 virtual const Type & 68 CheckIn_UsedType( 69 const InputContext & 70 i_context, 71 DYN UsedType & pass_type ) = 0; 72 // INQUIRY 73 virtual const Type & 74 Find_Type( 75 Type_id i_type ) const = 0; 76 virtual bool Get_TypeText( 77 StreamStr & o_result, 78 Type_id i_type ) const = 0; 79 virtual bool Get_TypeText( 80 StreamStr & o_preName, /// ::ary::cpp:: 81 StreamStr & o_name, /// MyClass 82 StreamStr & o_postName, /// <TplArgument> * const & 83 Type_id i_type ) const = 0; 84 virtual Type_id Tid_Ellipse() const = 0; 85 }; 86 87 88 89 90 } // namespace cpp 91 } // namespace ary 92 #endif 93