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 <slots.hxx>
24cdf0e10cSrcweir
25cdf0e10cSrcweir
26cdf0e10cSrcweir // NOT FULLY DEFINED SERVICES
27cdf0e10cSrcweir #include <ary/ary_disp.hxx>
28cdf0e10cSrcweir
29cdf0e10cSrcweir
30cdf0e10cSrcweir
31cdf0e10cSrcweir namespace ary
32cdf0e10cSrcweir {
33cdf0e10cSrcweir
34cdf0e10cSrcweir
35cdf0e10cSrcweir //*********************** Slot ********************//
36cdf0e10cSrcweir
37cdf0e10cSrcweir
38cdf0e10cSrcweir void
StoreAt(Display & o_rDestination) const39cdf0e10cSrcweir Slot::StoreAt( Display & o_rDestination ) const
40cdf0e10cSrcweir {
41cdf0e10cSrcweir o_rDestination.StartSlot();
42cdf0e10cSrcweir StoreEntries(o_rDestination);
43cdf0e10cSrcweir o_rDestination.FinishSlot();
44cdf0e10cSrcweir }
45cdf0e10cSrcweir
46cdf0e10cSrcweir
47cdf0e10cSrcweir //*********************** Slot_Null ********************//
48cdf0e10cSrcweir
~Slot_Null()49cdf0e10cSrcweir Slot_Null::~Slot_Null()
50cdf0e10cSrcweir {
51cdf0e10cSrcweir }
52cdf0e10cSrcweir
53cdf0e10cSrcweir void
StoreAt(Display &) const54cdf0e10cSrcweir Slot_Null::StoreAt( Display & ) const
55cdf0e10cSrcweir {
56cdf0e10cSrcweir // Does nothing
57cdf0e10cSrcweir }
58cdf0e10cSrcweir
59cdf0e10cSrcweir uintt
Size() const60cdf0e10cSrcweir Slot_Null::Size() const
61cdf0e10cSrcweir {
62cdf0e10cSrcweir return 0;
63cdf0e10cSrcweir }
64cdf0e10cSrcweir
65cdf0e10cSrcweir void
StoreEntries(Display &) const66cdf0e10cSrcweir Slot_Null::StoreEntries( Display & ) const
67cdf0e10cSrcweir {
68cdf0e10cSrcweir // Does nothing
69cdf0e10cSrcweir }
70cdf0e10cSrcweir
71cdf0e10cSrcweir //*********************** Slot_MapLocalCe ********************//
72cdf0e10cSrcweir
Slot_MapLocalCe(const cpp::Map_LocalCe & i_rData)73cdf0e10cSrcweir Slot_MapLocalCe::Slot_MapLocalCe( const cpp::Map_LocalCe & i_rData )
74cdf0e10cSrcweir : pData(&i_rData)
75cdf0e10cSrcweir {
76cdf0e10cSrcweir }
77cdf0e10cSrcweir
~Slot_MapLocalCe()78cdf0e10cSrcweir Slot_MapLocalCe::~Slot_MapLocalCe()
79cdf0e10cSrcweir {
80cdf0e10cSrcweir }
81cdf0e10cSrcweir
82cdf0e10cSrcweir uintt
Size() const83cdf0e10cSrcweir Slot_MapLocalCe::Size() const
84cdf0e10cSrcweir {
85cdf0e10cSrcweir return pData->size();;
86cdf0e10cSrcweir }
87cdf0e10cSrcweir
88cdf0e10cSrcweir void
StoreEntries(Display & o_rDestination) const89cdf0e10cSrcweir Slot_MapLocalCe::StoreEntries( Display & o_rDestination ) const
90cdf0e10cSrcweir {
91cdf0e10cSrcweir for ( cpp::Map_LocalCe::const_iterator it = pData->begin();
92cdf0e10cSrcweir it != pData->end();
93cdf0e10cSrcweir ++it )
94cdf0e10cSrcweir {
95cdf0e10cSrcweir o_rDestination.DisplaySlot_LocalCe( (*it).second, (*it).first );
96cdf0e10cSrcweir }
97cdf0e10cSrcweir }
98cdf0e10cSrcweir
99cdf0e10cSrcweir
100cdf0e10cSrcweir
101cdf0e10cSrcweir //*********************** Slot_MapOperations ********************//
102cdf0e10cSrcweir
Slot_MapOperations(const std::multimap<String,cpp::Ce_id> & i_rData)103cdf0e10cSrcweir Slot_MapOperations::Slot_MapOperations( const std::multimap<String, cpp::Ce_id> & i_rData )
104cdf0e10cSrcweir : pData(&i_rData)
105cdf0e10cSrcweir {
106cdf0e10cSrcweir }
107cdf0e10cSrcweir
~Slot_MapOperations()108cdf0e10cSrcweir Slot_MapOperations::~Slot_MapOperations()
109cdf0e10cSrcweir {
110cdf0e10cSrcweir }
111cdf0e10cSrcweir
112cdf0e10cSrcweir uintt
Size() const113cdf0e10cSrcweir Slot_MapOperations::Size() const
114cdf0e10cSrcweir {
115cdf0e10cSrcweir return pData->size();;
116cdf0e10cSrcweir }
117cdf0e10cSrcweir
118cdf0e10cSrcweir void
StoreEntries(Display & o_rDestination) const119cdf0e10cSrcweir Slot_MapOperations::StoreEntries( Display & o_rDestination ) const
120cdf0e10cSrcweir {
121cdf0e10cSrcweir for ( std::multimap<String, cpp::Ce_id>::const_iterator it = pData->begin();
122cdf0e10cSrcweir it != pData->end();
123cdf0e10cSrcweir ++it )
124cdf0e10cSrcweir {
125cdf0e10cSrcweir o_rDestination.DisplaySlot_LocalCe( (*it).second, (*it).first );
126cdf0e10cSrcweir }
127cdf0e10cSrcweir }
128cdf0e10cSrcweir
129cdf0e10cSrcweir //*********************** Slot_ListLocalCe ********************//
130cdf0e10cSrcweir
Slot_ListLocalCe(const cpp::List_LocalCe & i_rData)131cdf0e10cSrcweir Slot_ListLocalCe::Slot_ListLocalCe( const cpp::List_LocalCe & i_rData )
132cdf0e10cSrcweir : pData(&i_rData)
133cdf0e10cSrcweir {
134cdf0e10cSrcweir }
135cdf0e10cSrcweir
~Slot_ListLocalCe()136cdf0e10cSrcweir Slot_ListLocalCe::~Slot_ListLocalCe()
137cdf0e10cSrcweir {
138cdf0e10cSrcweir }
139cdf0e10cSrcweir
140cdf0e10cSrcweir uintt
Size() const141cdf0e10cSrcweir Slot_ListLocalCe::Size() const
142cdf0e10cSrcweir {
143cdf0e10cSrcweir return pData->size();;
144cdf0e10cSrcweir }
145cdf0e10cSrcweir
146cdf0e10cSrcweir void
StoreEntries(Display & o_rDestination) const147cdf0e10cSrcweir Slot_ListLocalCe::StoreEntries( Display & o_rDestination ) const
148cdf0e10cSrcweir {
149cdf0e10cSrcweir for ( cpp::List_LocalCe::const_iterator it = pData->begin();
150cdf0e10cSrcweir it != pData->end();
151cdf0e10cSrcweir ++it )
152cdf0e10cSrcweir {
153cdf0e10cSrcweir o_rDestination.DisplaySlot_LocalCe( (*it).nId, (*it).sLocalName );
154cdf0e10cSrcweir }
155cdf0e10cSrcweir }
156cdf0e10cSrcweir
157cdf0e10cSrcweir
158cdf0e10cSrcweir } // namespace ary
159