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 ADC_DISPLAY_HTML_DSPLY_OP_HXX
25 #define ADC_DISPLAY_HTML_DSPLY_OP_HXX
26 
27 // BASE CLASSES
28 #include <ary/ary_disp.hxx>
29 #include <cosv/tpl/processor.hxx>
30 // USED SERVICES
31 #include <ary/cpp/c_ce.hxx>
32 
33 namespace ary
34 {
35     namespace cpp
36     {
37         class Function;
38     }
39 }
40 namespace csi
41 {
42     namespace xml
43     {
44         class Element;
45     }
46 }
47 
48 class OuputPage_Environment;
49 class PageDisplay;
50 class Docu_Display;
51 
52 
53 
54 
55 class OperationsDisplay : public ary::Display,
56                           public csv::ConstProcessor<ary::cpp::Function>
57 {
58   public:
59 						OperationsDisplay(
60                             OuputPage_Environment &
61                                                 io_rInfo );
62 	virtual				~OperationsDisplay();
63 
64     void                PrepareForStdMembers();
65     void                PrepareForStaticMembers();
66     void                Create_Files();
67 
68  private:
69     // Interface csv::ConstProcessor<>:
70     virtual void        do_Process(
71                             const ary::cpp::Function &
72                                                 i_rData );
73     // Interface ary::Display:
74     virtual const ary::cpp::Gate *
75                         inq_Get_ReFinder() const;
76 
77     // Locals
78     typedef ary::cpp::Lid                               SourceFileId;
79     typedef std::map< SourceFileId, DYN PageDisplay* >  Map_FileId2PagePtr;
80 
81     PageDisplay &       FindPage_for(
82                             const ary::cpp::Function &
83                                                 i_rData );
84     void                Display_SglOperation(
85                             csi::xml::Element & rOut,
86                             const ary::cpp::Function &
87                                                 i_rData );
88     // DATA
89     Map_FileId2PagePtr  aMap_GlobalFunctionsDisplay;
90     Dyn<PageDisplay>    pClassMembersDisplay;
91 
92     OuputPage_Environment *
93                         pEnv;
94     Dyn<Docu_Display>   pDocuShow;
95 };
96 
97 
98 
99 
100 #endif
101