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 <ary/ary_disp.hxx>
24cdf0e10cSrcweir 
25cdf0e10cSrcweir 
26cdf0e10cSrcweir // NOT FULLY DECLARED SERVICES
27cdf0e10cSrcweir #include <ary/cpp/c_ce.hxx>
28cdf0e10cSrcweir #include <ary/cpp/c_gate.hxx>
29cdf0e10cSrcweir #include <ary/cpp/cp_ce.hxx>
30cdf0e10cSrcweir 
31cdf0e10cSrcweir 
32cdf0e10cSrcweir 
33cdf0e10cSrcweir namespace ary
34cdf0e10cSrcweir {
35cdf0e10cSrcweir 
36cdf0e10cSrcweir void
DisplaySlot_Rid(ary::Rid i_nId)37cdf0e10cSrcweir Display::DisplaySlot_Rid( ary::Rid i_nId )
38cdf0e10cSrcweir {
39cdf0e10cSrcweir     const cpp::Gate *
40cdf0e10cSrcweir         pGate = Get_ReFinder();
41cdf0e10cSrcweir     if (pGate != 0)
42cdf0e10cSrcweir     {
43cdf0e10cSrcweir      	const  ary::cpp::CodeEntity *
44cdf0e10cSrcweir      	    pRE = pGate->Ces().Search_Ce( cpp::Ce_id(i_nId) );
45cdf0e10cSrcweir         if (pRE != 0)
46cdf0e10cSrcweir         {
47cdf0e10cSrcweir          	pRE->Accept( *this );
48cdf0e10cSrcweir             return;
49cdf0e10cSrcweir         }
50cdf0e10cSrcweir     }
51cdf0e10cSrcweir 
52cdf0e10cSrcweir     do_DisplaySlot_Rid( i_nId );
53cdf0e10cSrcweir }
54cdf0e10cSrcweir 
55cdf0e10cSrcweir 
56cdf0e10cSrcweir void
DisplaySlot_LocalCe(ary::cpp::Ce_id i_nId,const String & i_sName)57cdf0e10cSrcweir Display::DisplaySlot_LocalCe( ary::cpp::Ce_id   i_nId,
58cdf0e10cSrcweir 							  const String  &	i_sName )
59cdf0e10cSrcweir {
60cdf0e10cSrcweir     const cpp::Gate *
61cdf0e10cSrcweir         pGate = Get_ReFinder();
62cdf0e10cSrcweir     if (pGate != 0)
63cdf0e10cSrcweir     {
64cdf0e10cSrcweir      	const ary::cpp::CodeEntity *
65cdf0e10cSrcweir      	    pRE = pGate->Ces().Search_Ce(i_nId);
66cdf0e10cSrcweir         if (pRE != 0)
67cdf0e10cSrcweir         {
68cdf0e10cSrcweir          	pRE->Accept( *this );
69cdf0e10cSrcweir             return;
70cdf0e10cSrcweir         }
71cdf0e10cSrcweir     }
72cdf0e10cSrcweir 
73cdf0e10cSrcweir     do_DisplaySlot_LocalCe( i_nId, i_sName );
74cdf0e10cSrcweir }
75cdf0e10cSrcweir 
76cdf0e10cSrcweir 
77cdf0e10cSrcweir 
78cdf0e10cSrcweir // Dummy implementations for class Display
79cdf0e10cSrcweir 
80cdf0e10cSrcweir void
do_StartSlot()81cdf0e10cSrcweir Display::do_StartSlot()
82cdf0e10cSrcweir {
83cdf0e10cSrcweir }
84cdf0e10cSrcweir 
85cdf0e10cSrcweir void
do_FinishSlot()86cdf0e10cSrcweir Display::do_FinishSlot()
87cdf0e10cSrcweir {
88cdf0e10cSrcweir }
89cdf0e10cSrcweir 
90cdf0e10cSrcweir void
do_DisplaySlot_Rid(ary::Rid)91cdf0e10cSrcweir Display::do_DisplaySlot_Rid( ary::Rid )
92cdf0e10cSrcweir {
93cdf0e10cSrcweir }
94cdf0e10cSrcweir 
95cdf0e10cSrcweir void
do_DisplaySlot_LocalCe(ary::cpp::Ce_id,const String &)96cdf0e10cSrcweir Display::do_DisplaySlot_LocalCe( ary::cpp::Ce_id    ,
97cdf0e10cSrcweir 							     const String  &	)
98cdf0e10cSrcweir {
99cdf0e10cSrcweir }
100cdf0e10cSrcweir 
101cdf0e10cSrcweir 
102cdf0e10cSrcweir }   // namespace ary
103