1*8a25e0a8SAndrew Rist /************************************************************** 2*8a25e0a8SAndrew Rist * 3*8a25e0a8SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*8a25e0a8SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*8a25e0a8SAndrew Rist * distributed with this work for additional information 6*8a25e0a8SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*8a25e0a8SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*8a25e0a8SAndrew Rist * "License"); you may not use this file except in compliance 9*8a25e0a8SAndrew Rist * with the License. You may obtain a copy of the License at 10*8a25e0a8SAndrew Rist * 11*8a25e0a8SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*8a25e0a8SAndrew Rist * 13*8a25e0a8SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*8a25e0a8SAndrew Rist * software distributed under the License is distributed on an 15*8a25e0a8SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*8a25e0a8SAndrew Rist * KIND, either express or implied. See the License for the 17*8a25e0a8SAndrew Rist * specific language governing permissions and limitations 18*8a25e0a8SAndrew Rist * under the License. 19*8a25e0a8SAndrew Rist * 20*8a25e0a8SAndrew Rist *************************************************************/ 21*8a25e0a8SAndrew Rist 22cdf0e10cSrcweir #ifndef __SAMPLELIBRTTI_HXX_ 23cdf0e10cSrcweir #define __SAMPLELIBRTTI_HXX_ 24cdf0e10cSrcweir 25cdf0e10cSrcweir class MyClassA 26cdf0e10cSrcweir { 27cdf0e10cSrcweir public: 28cdf0e10cSrcweir virtual void funcA(); 29cdf0e10cSrcweir virtual void funcB(); 30cdf0e10cSrcweir protected: 31cdf0e10cSrcweir virtual void funcC(); 32cdf0e10cSrcweir private: 33cdf0e10cSrcweir virtual void funcD(); 34cdf0e10cSrcweir }; 35cdf0e10cSrcweir 36cdf0e10cSrcweir 37cdf0e10cSrcweir class MyClassB: public MyClassA 38cdf0e10cSrcweir { 39cdf0e10cSrcweir public: 40cdf0e10cSrcweir virtual void funcA(); 41cdf0e10cSrcweir virtual void funcB(); 42cdf0e10cSrcweir protected: 43cdf0e10cSrcweir virtual void funcC(); 44cdf0e10cSrcweir private: 45cdf0e10cSrcweir virtual void funcD(); 46cdf0e10cSrcweir 47cdf0e10cSrcweir }; 48cdf0e10cSrcweir 49cdf0e10cSrcweir #endif 50