1*d291ea28SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*d291ea28SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*d291ea28SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*d291ea28SAndrew Rist * distributed with this work for additional information 6*d291ea28SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*d291ea28SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*d291ea28SAndrew Rist * "License"); you may not use this file except in compliance 9*d291ea28SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*d291ea28SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*d291ea28SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*d291ea28SAndrew Rist * software distributed under the License is distributed on an 15*d291ea28SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*d291ea28SAndrew Rist * KIND, either express or implied. See the License for the 17*d291ea28SAndrew Rist * specific language governing permissions and limitations 18*d291ea28SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*d291ea28SAndrew Rist *************************************************************/ 21cdf0e10cSrcweir 22cdf0e10cSrcweir #include <precomp.h> 23cdf0e10cSrcweir #include <ary/cessentl.hxx> 24cdf0e10cSrcweir 25cdf0e10cSrcweir 26cdf0e10cSrcweir // NOT FULLY DEFINED SERVICES 27cdf0e10cSrcweir #include <ary/cpp/c_ce.hxx> 28cdf0e10cSrcweir #include <ary/doc/d_oldcppdocu.hxx> 29cdf0e10cSrcweir 30cdf0e10cSrcweir 31cdf0e10cSrcweir namespace ary 32cdf0e10cSrcweir { 33cdf0e10cSrcweir namespace cpp 34cdf0e10cSrcweir { 35cdf0e10cSrcweir 36cdf0e10cSrcweir 37cdf0e10cSrcweir CeEssentials::CeEssentials() 38cdf0e10cSrcweir : sLocalName(), 39cdf0e10cSrcweir nOwner(0), 40cdf0e10cSrcweir nLocation(0) 41cdf0e10cSrcweir { 42cdf0e10cSrcweir } 43cdf0e10cSrcweir 44cdf0e10cSrcweir CeEssentials::CeEssentials( const String & i_sLocalName, 45cdf0e10cSrcweir Cid i_nOwner, 46cdf0e10cSrcweir loc::Le_id i_nLocation ) 47cdf0e10cSrcweir : sLocalName(i_sLocalName), 48cdf0e10cSrcweir nOwner(i_nOwner), 49cdf0e10cSrcweir nLocation(i_nLocation) 50cdf0e10cSrcweir { 51cdf0e10cSrcweir } 52cdf0e10cSrcweir 53cdf0e10cSrcweir CeEssentials::~CeEssentials() 54cdf0e10cSrcweir { 55cdf0e10cSrcweir } 56cdf0e10cSrcweir 57cdf0e10cSrcweir 58cdf0e10cSrcweir 59cdf0e10cSrcweir inline bool 60cdf0e10cSrcweir IsInternal(const doc::Documentation & i_doc) 61cdf0e10cSrcweir { 62cdf0e10cSrcweir const ary::doc::OldCppDocu * 63cdf0e10cSrcweir docu = dynamic_cast< const ary::doc::OldCppDocu* >(i_doc.Data()); 64cdf0e10cSrcweir if (docu != 0) 65cdf0e10cSrcweir return docu->IsInternal(); 66cdf0e10cSrcweir return false; 67cdf0e10cSrcweir } 68cdf0e10cSrcweir 69cdf0e10cSrcweir 70cdf0e10cSrcweir bool 71cdf0e10cSrcweir CodeEntity::IsVisible() const 72cdf0e10cSrcweir { 73cdf0e10cSrcweir // KORR_FUTURE: Improve the whole handling of internal and visibility. 74cdf0e10cSrcweir return bIsVisible && NOT IsInternal(Docu()); 75cdf0e10cSrcweir } 76cdf0e10cSrcweir 77cdf0e10cSrcweir 78cdf0e10cSrcweir 79cdf0e10cSrcweir } // namespace cpp 80cdf0e10cSrcweir } // namespace ary 81