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