1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef ADC_CMD_RUN_HXX 29 #define ADC_CMD_RUN_HXX 30 31 32 33 // USED SERVICES 34 // BASE CLASSES 35 #include <cosv/comdline.hxx> 36 // COMPONENTS 37 // PARAMETERS 38 39 namespace ary 40 { 41 class Repository; 42 } 43 44 namespace autodoc 45 { 46 class FileCollector_Ifc; 47 class ParseToolsFactory_Ifc; 48 class CodeParser_Ifc; 49 class DocumentationParser_Ifc; 50 class IdlParser; 51 52 53 namespace command 54 { 55 class Parse; 56 class S_ProjectData; 57 struct S_LanguageInfo; 58 59 namespace run 60 { 61 62 /** Performs an ::autodoc::command::Parse . 63 */ 64 class Parser 65 { 66 public: 67 Parser( 68 const Parse & i_command ); 69 ~Parser(); 70 71 bool Perform(); 72 73 private: 74 // Locals 75 CodeParser_Ifc & Get_CppParser(); 76 IdlParser & Get_IdlParser(); 77 void Create_CppParser(); 78 void Create_IdlParser(); 79 const ParseToolsFactory_Ifc & 80 ParseToolsFactory(); 81 uintt GatherFiles( 82 FileCollector_Ifc & o_rFiles, 83 const S_ProjectData & 84 i_rProject ); 85 // DATA 86 const Parse & rCommand; 87 88 Dyn<CodeParser_Ifc> pCppParser; 89 Dyn<DocumentationParser_Ifc> 90 pCppDocuInterpreter; 91 Dyn<IdlParser> pIdlParser; 92 }; 93 94 95 96 97 // IMPLEMENTATION 98 99 100 } // namespace run 101 } // namespace command 102 } // namespace autodoc 103 104 #endif 105