11c78a5d6SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 31c78a5d6SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 41c78a5d6SAndrew Rist * or more contributor license agreements. See the NOTICE file 51c78a5d6SAndrew Rist * distributed with this work for additional information 61c78a5d6SAndrew Rist * regarding copyright ownership. The ASF licenses this file 71c78a5d6SAndrew Rist * to you under the Apache License, Version 2.0 (the 81c78a5d6SAndrew Rist * "License"); you may not use this file except in compliance 91c78a5d6SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 111c78a5d6SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 131c78a5d6SAndrew Rist * Unless required by applicable law or agreed to in writing, 141c78a5d6SAndrew Rist * software distributed under the License is distributed on an 151c78a5d6SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 161c78a5d6SAndrew Rist * KIND, either express or implied. See the License for the 171c78a5d6SAndrew Rist * specific language governing permissions and limitations 181c78a5d6SAndrew Rist * under the License. 19cdf0e10cSrcweir * 201c78a5d6SAndrew Rist *************************************************************/ 211c78a5d6SAndrew Rist 22cdf0e10cSrcweir #ifndef ARY_OBJECT_HXX 23cdf0e10cSrcweir #define ARY_OBJECT_HXX 24cdf0e10cSrcweir 25cdf0e10cSrcweir // USED SERVICES 26cdf0e10cSrcweir // BASE CLASSES 27cdf0e10cSrcweir #include <cosv/tpl/processor.hxx> 28cdf0e10cSrcweir // COMPONENTS 29cdf0e10cSrcweir // PARAMETERS 30cdf0e10cSrcweir #include <ary/types.hxx> 31cdf0e10cSrcweir 32cdf0e10cSrcweir namespace ary 33cdf0e10cSrcweir { 34cdf0e10cSrcweir 35cdf0e10cSrcweir /** Interface for every class, that is stored within the 36cdf0e10cSrcweir Autodoc Repository. 37cdf0e10cSrcweir */ 38cdf0e10cSrcweir class Object : public csv::ConstProcessorClient 39cdf0e10cSrcweir { 40cdf0e10cSrcweir public: ~Object()41cdf0e10cSrcweir virtual ~Object() {} 42cdf0e10cSrcweir 43*f22c0cc4Smseidel // @return Type id of most derived class. 44cdf0e10cSrcweir ClassId AryClass() const; 45cdf0e10cSrcweir 46cdf0e10cSrcweir private: 47cdf0e10cSrcweir virtual ClassId get_AryClass() const = 0; 48cdf0e10cSrcweir }; 49cdf0e10cSrcweir 50cdf0e10cSrcweir inline ClassId AryClass() const51cdf0e10cSrcweirObject::AryClass() const 52cdf0e10cSrcweir { 53cdf0e10cSrcweir return get_AryClass(); 54cdf0e10cSrcweir } 55cdf0e10cSrcweir 56cdf0e10cSrcweir 57cdf0e10cSrcweir } // namespace ary 58cdf0e10cSrcweir #endif 59*f22c0cc4Smseidel 60*f22c0cc4Smseidel /* vim: set noet sw=4 ts=4: */ 61