1*1c78a5d6SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*1c78a5d6SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*1c78a5d6SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*1c78a5d6SAndrew Rist * distributed with this work for additional information 6*1c78a5d6SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*1c78a5d6SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*1c78a5d6SAndrew Rist * "License"); you may not use this file except in compliance 9*1c78a5d6SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*1c78a5d6SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*1c78a5d6SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*1c78a5d6SAndrew Rist * software distributed under the License is distributed on an 15*1c78a5d6SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*1c78a5d6SAndrew Rist * KIND, either express or implied. See the License for the 17*1c78a5d6SAndrew Rist * specific language governing permissions and limitations 18*1c78a5d6SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*1c78a5d6SAndrew Rist *************************************************************/ 21*1c78a5d6SAndrew Rist 22*1c78a5d6SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef ADC_DISPLAY_HFIDMAIN_HXX 25cdf0e10cSrcweir #define ADC_DISPLAY_HFIDMAIN_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir 28cdf0e10cSrcweir 29cdf0e10cSrcweir // USED SERVICES 30cdf0e10cSrcweir // BASE CLASSES 31cdf0e10cSrcweir #include <cosv/tpl/processor.hxx> 32cdf0e10cSrcweir // COMPONENTS 33cdf0e10cSrcweir #include "hi_factory.hxx" 34cdf0e10cSrcweir // PARAMETERS 35cdf0e10cSrcweir 36cdf0e10cSrcweir 37cdf0e10cSrcweir class HtmlEnvironment_Idl; 38cdf0e10cSrcweir class HtmlFactory_Idl; 39cdf0e10cSrcweir class DocuFile_Html; 40cdf0e10cSrcweir 41cdf0e10cSrcweir namespace ary 42cdf0e10cSrcweir { 43cdf0e10cSrcweir namespace idl 44cdf0e10cSrcweir { 45cdf0e10cSrcweir 46cdf0e10cSrcweir class Module; 47cdf0e10cSrcweir class Service; 48cdf0e10cSrcweir class SglIfcService; 49cdf0e10cSrcweir class Interface; 50cdf0e10cSrcweir class Struct; 51cdf0e10cSrcweir class Exception; 52cdf0e10cSrcweir class Enum; 53cdf0e10cSrcweir class Typedef; 54cdf0e10cSrcweir class ConstantsGroup; 55cdf0e10cSrcweir class Singleton; 56cdf0e10cSrcweir class SglIfcSingleton; 57cdf0e10cSrcweir 58cdf0e10cSrcweir } // namespace idl 59cdf0e10cSrcweir } // namespace ary 60cdf0e10cSrcweir 61cdf0e10cSrcweir 62cdf0e10cSrcweir class MainDisplay_Idl : public csv::ProcessorIfc, 63cdf0e10cSrcweir public csv::ConstProcessor<ary::idl::Module>, 64cdf0e10cSrcweir public csv::ConstProcessor<ary::idl::Service>, 65cdf0e10cSrcweir public csv::ConstProcessor<ary::idl::SglIfcService>, 66cdf0e10cSrcweir public csv::ConstProcessor<ary::idl::Interface>, 67cdf0e10cSrcweir public csv::ConstProcessor<ary::idl::Struct>, 68cdf0e10cSrcweir public csv::ConstProcessor<ary::idl::Exception>, 69cdf0e10cSrcweir public csv::ConstProcessor<ary::idl::Enum>, 70cdf0e10cSrcweir public csv::ConstProcessor<ary::idl::Typedef>, 71cdf0e10cSrcweir public csv::ConstProcessor<ary::idl::ConstantsGroup>, 72cdf0e10cSrcweir public csv::ConstProcessor<ary::idl::Singleton>, 73cdf0e10cSrcweir public csv::ConstProcessor<ary::idl::SglIfcSingleton> 74cdf0e10cSrcweir { 75cdf0e10cSrcweir public: 76cdf0e10cSrcweir MainDisplay_Idl( 77cdf0e10cSrcweir HtmlEnvironment_Idl & 78cdf0e10cSrcweir io_rEnv ); 79cdf0e10cSrcweir virtual ~MainDisplay_Idl(); 80cdf0e10cSrcweir 81cdf0e10cSrcweir void WriteGlobalIndices(); 82cdf0e10cSrcweir 83cdf0e10cSrcweir void Display_NamedEntityHierarchy(); 84cdf0e10cSrcweir 85cdf0e10cSrcweir private: 86cdf0e10cSrcweir // Interface csv::ProcessorIfc: 87cdf0e10cSrcweir virtual void do_Process( 88cdf0e10cSrcweir const ary::idl::Module & i_client ); 89cdf0e10cSrcweir virtual void do_Process( 90cdf0e10cSrcweir const ary::idl::Service & i_client ); 91cdf0e10cSrcweir virtual void do_Process( 92cdf0e10cSrcweir const ary::idl::SglIfcService & 93cdf0e10cSrcweir i_client ); 94cdf0e10cSrcweir virtual void do_Process( 95cdf0e10cSrcweir const ary::idl::Interface & i_client ); 96cdf0e10cSrcweir virtual void do_Process( 97cdf0e10cSrcweir const ary::idl::Struct & i_client ); 98cdf0e10cSrcweir virtual void do_Process( 99cdf0e10cSrcweir const ary::idl::Exception & i_client ); 100cdf0e10cSrcweir virtual void do_Process( 101cdf0e10cSrcweir const ary::idl::Enum & i_client ); 102cdf0e10cSrcweir virtual void do_Process( 103cdf0e10cSrcweir const ary::idl::Typedef & i_client ); 104cdf0e10cSrcweir virtual void do_Process( 105cdf0e10cSrcweir const ary::idl::ConstantsGroup & 106cdf0e10cSrcweir i_client ); 107cdf0e10cSrcweir virtual void do_Process( 108cdf0e10cSrcweir const ary::idl::Singleton & i_client ); 109cdf0e10cSrcweir virtual void do_Process( 110cdf0e10cSrcweir const ary::idl::SglIfcSingleton & 111cdf0e10cSrcweir i_client ); 112cdf0e10cSrcweir // Locals 113cdf0e10cSrcweir void do_ServiceDescr( 114cdf0e10cSrcweir const ary::idl::CodeEntity & 115cdf0e10cSrcweir i_rData ); 116cdf0e10cSrcweir void do_SglIfcServiceDescr( 117cdf0e10cSrcweir const ary::idl::CodeEntity & 118cdf0e10cSrcweir i_rData ); 119cdf0e10cSrcweir void do_InterfaceDescr( 120cdf0e10cSrcweir const ary::idl::CodeEntity & 121cdf0e10cSrcweir i_rData ); 122cdf0e10cSrcweir void do_StructDescr( 123cdf0e10cSrcweir const ary::idl::CodeEntity & 124cdf0e10cSrcweir i_rData ); 125cdf0e10cSrcweir void do_ExceptionDescr( 126cdf0e10cSrcweir const ary::idl::CodeEntity & 127cdf0e10cSrcweir i_rData ); 128cdf0e10cSrcweir void do_EnumDescr( 129cdf0e10cSrcweir const ary::idl::CodeEntity & 130cdf0e10cSrcweir i_rData ); 131cdf0e10cSrcweir void do_TypedefDescr( 132cdf0e10cSrcweir const ary::idl::CodeEntity & 133cdf0e10cSrcweir i_rData ); 134cdf0e10cSrcweir void do_SingletonDescr( 135cdf0e10cSrcweir const ary::idl::CodeEntity & 136cdf0e10cSrcweir i_rData ); 137cdf0e10cSrcweir void do_Service2s( 138cdf0e10cSrcweir const ary::idl::CodeEntity & 139cdf0e10cSrcweir i_rData ); 140cdf0e10cSrcweir void do_Interface2s( 141cdf0e10cSrcweir const ary::idl::CodeEntity & 142cdf0e10cSrcweir i_rData ); 143cdf0e10cSrcweir void do_Struct2s( 144cdf0e10cSrcweir const ary::idl::CodeEntity & 145cdf0e10cSrcweir i_rData ); 146cdf0e10cSrcweir void do_Exception2s( 147cdf0e10cSrcweir const ary::idl::CodeEntity & 148cdf0e10cSrcweir i_rData ); 149cdf0e10cSrcweir void do_Enum2s( 150cdf0e10cSrcweir const ary::idl::CodeEntity & 151cdf0e10cSrcweir i_rData ); 152cdf0e10cSrcweir void do_Typedef2s( 153cdf0e10cSrcweir const ary::idl::CodeEntity & 154cdf0e10cSrcweir i_rData ); 155cdf0e10cSrcweir void do_Singleton2s( 156cdf0e10cSrcweir const ary::idl::CodeEntity & 157cdf0e10cSrcweir i_rData ); 158cdf0e10cSrcweir 159cdf0e10cSrcweir const HtmlEnvironment_Idl & Env() const160cdf0e10cSrcweir Env() const { return *pEnv; } 161cdf0e10cSrcweir HtmlEnvironment_Idl & Env()162cdf0e10cSrcweir Env() { return *pEnv; } CurHtmlOut()163cdf0e10cSrcweir Xml::Element & CurHtmlOut() { return pCurFactory->CurOut(); } 164cdf0e10cSrcweir 165cdf0e10cSrcweir // DATA 166cdf0e10cSrcweir HtmlEnvironment_Idl * 167cdf0e10cSrcweir pEnv; 168cdf0e10cSrcweir Dyn<DocuFile_Html> pMyFile; 169cdf0e10cSrcweir HtmlFactory_Idl * pCurFactory; 170cdf0e10cSrcweir }; 171cdf0e10cSrcweir 172cdf0e10cSrcweir 173cdf0e10cSrcweir 174cdf0e10cSrcweir #endif 175