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
23
24 #ifndef ARY_ARY_DISP_HXX
25 #define ARY_ARY_DISP_HXX
26 // KORR_DEPRECATED_3.0
27
28
29 // USED SERVICES
30 // BASE CLASSES
31 #include <cosv/tpl/processor.hxx>
32 // COMPONENTS
33 // PARAMETERS
34 #include <ary/types.hxx>
35 #include <ary/cpp/c_types4cpp.hxx>
36
37 namespace ary
38 {
39 namespace cpp
40 {
41 class Gate;
42 }
43
44 class Display : public csv::ProcessorIfc
45 {
46 public:
~Display()47 virtual ~Display() {}
48
49 // OPERATIONS
50 void StartSlot();
51 void FinishSlot();
52
53 /** This method depends on the result of Get_ReFinder().
54 If Get_ReFinder() != 0, then DisplayGate::Find_Re() is called
55 and if valid, cpp::CppEntity::Accept( *this ) is called.
56 If Get_ReFinder() == 0, simply do_DisplaySlot_Rid() is called
57 with just the id as parameter.
58 */
59 void DisplaySlot_Rid(
60 ary::Rid i_nId );
61 // void DisplaySlot_Lid(
62 // ary::Lid i_nId );
63 /** This method depends on the result of Get_ReFinder().
64 If Get_ReFinder() != 0, then DisplayGate::Find_Re() is called
65 and if valid, cpp::CppEntity::Accept( *this ) is called.
66 If Get_ReFinder() == 0, simply do_DisplaySlot_LocalCe() is called
67 with just the id as parameter.
68 */
69 void DisplaySlot_LocalCe(
70 ary::cpp::Ce_id i_nId,
71 const String & i_sName );
72 // INQUIRY
73 const cpp::Gate * Get_ReFinder() const;
74
75 private:
76 virtual void do_StartSlot();
77 virtual void do_FinishSlot();
78
79
80 virtual void do_DisplaySlot_Rid(
81 ary::Rid i_nId );
82 virtual void do_DisplaySlot_LocalCe(
83 ary::cpp::Ce_id i_nId,
84 const String & i_sName );
85 virtual const cpp::Gate *
86 inq_Get_ReFinder() const = 0;
87 };
88
89
90 // IMPLEMENTATION
91
92
93 inline void
StartSlot()94 Display::StartSlot()
95 { do_StartSlot(); }
96 inline void
FinishSlot()97 Display::FinishSlot()
98 { do_FinishSlot(); }
99 inline const cpp::Gate *
Get_ReFinder() const100 Display::Get_ReFinder() const
101 { return inq_Get_ReFinder(); }
102
103
104
105
106 } // namespace ary
107 #endif
108