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 10*d291ea28SAndrew Rist * 11*d291ea28SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*d291ea28SAndrew Rist * 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. 19*d291ea28SAndrew Rist * 20*d291ea28SAndrew Rist *************************************************************/ 21cdf0e10cSrcweir 22cdf0e10cSrcweir #include <precomp.h> 23cdf0e10cSrcweir #include <c_slots.hxx> 24cdf0e10cSrcweir 25cdf0e10cSrcweir 26cdf0e10cSrcweir // NOT FULLY DEFINED SERVICES 27cdf0e10cSrcweir #include <ary/ary_disp.hxx> 28cdf0e10cSrcweir #include <ary/cpp/c_namesp.hxx> 29cdf0e10cSrcweir 30cdf0e10cSrcweir 31cdf0e10cSrcweir 32cdf0e10cSrcweir namespace ary 33cdf0e10cSrcweir { 34cdf0e10cSrcweir namespace cpp 35cdf0e10cSrcweir { 36cdf0e10cSrcweir 37cdf0e10cSrcweir 38cdf0e10cSrcweir 39cdf0e10cSrcweir //*********************** Slot_SubNamespaces ********************// 40cdf0e10cSrcweir 41cdf0e10cSrcweir Slot_SubNamespaces(const Map_NamespacePtr & i_rData)42cdf0e10cSrcweirSlot_SubNamespaces::Slot_SubNamespaces( const Map_NamespacePtr & i_rData ) 43cdf0e10cSrcweir : pData( &i_rData ) 44cdf0e10cSrcweir { 45cdf0e10cSrcweir } 46cdf0e10cSrcweir ~Slot_SubNamespaces()47cdf0e10cSrcweirSlot_SubNamespaces::~Slot_SubNamespaces() 48cdf0e10cSrcweir { 49cdf0e10cSrcweir } 50cdf0e10cSrcweir 51cdf0e10cSrcweir uintt Size() const52cdf0e10cSrcweirSlot_SubNamespaces::Size() const 53cdf0e10cSrcweir { 54cdf0e10cSrcweir return pData->size(); 55cdf0e10cSrcweir } 56cdf0e10cSrcweir 57cdf0e10cSrcweir void StoreEntries(ary::Display & o_rDestination) const58cdf0e10cSrcweirSlot_SubNamespaces::StoreEntries( ary::Display & o_rDestination ) const 59cdf0e10cSrcweir { 60cdf0e10cSrcweir for ( Map_NamespacePtr::const_iterator it = pData->begin(); 61cdf0e10cSrcweir it != pData->end(); 62cdf0e10cSrcweir ++it ) 63cdf0e10cSrcweir { 64cdf0e10cSrcweir (*(*it).second).Accept(o_rDestination); 65cdf0e10cSrcweir } 66cdf0e10cSrcweir } 67cdf0e10cSrcweir 68cdf0e10cSrcweir 69cdf0e10cSrcweir //*********************** Slot_BaseClass ********************// 70cdf0e10cSrcweir Slot_BaseClass(const List_Bases & i_rData)71cdf0e10cSrcweirSlot_BaseClass::Slot_BaseClass( const List_Bases & i_rData ) 72cdf0e10cSrcweir : pData( &i_rData ) 73cdf0e10cSrcweir { 74cdf0e10cSrcweir } 75cdf0e10cSrcweir ~Slot_BaseClass()76cdf0e10cSrcweirSlot_BaseClass::~Slot_BaseClass() 77cdf0e10cSrcweir { 78cdf0e10cSrcweir } 79cdf0e10cSrcweir 80cdf0e10cSrcweir uintt Size() const81cdf0e10cSrcweirSlot_BaseClass::Size() const 82cdf0e10cSrcweir { 83cdf0e10cSrcweir return pData->size(); 84cdf0e10cSrcweir } 85cdf0e10cSrcweir 86cdf0e10cSrcweir void StoreEntries(ary::Display & o_rDestination) const87cdf0e10cSrcweirSlot_BaseClass::StoreEntries( ary::Display & o_rDestination ) const 88cdf0e10cSrcweir { 89cdf0e10cSrcweir for ( List_Bases::const_iterator it = pData->begin(); 90cdf0e10cSrcweir it != pData->end(); 91cdf0e10cSrcweir ++it ) 92cdf0e10cSrcweir { 93cdf0e10cSrcweir csv::CheckedCall(o_rDestination, *it); 94cdf0e10cSrcweir } 95cdf0e10cSrcweir } 96cdf0e10cSrcweir 97cdf0e10cSrcweir 98cdf0e10cSrcweir 99cdf0e10cSrcweir } // namespace cpp 100cdf0e10cSrcweir } // namespace ary 101