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