1*dd7bc091SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*dd7bc091SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*dd7bc091SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*dd7bc091SAndrew Rist * distributed with this work for additional information 6*dd7bc091SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*dd7bc091SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*dd7bc091SAndrew Rist * "License"); you may not use this file except in compliance 9*dd7bc091SAndrew Rist * with the License. You may obtain a copy of the License at 10*dd7bc091SAndrew Rist * 11*dd7bc091SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*dd7bc091SAndrew Rist * 13*dd7bc091SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*dd7bc091SAndrew Rist * software distributed under the License is distributed on an 15*dd7bc091SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*dd7bc091SAndrew Rist * KIND, either express or implied. See the License for the 17*dd7bc091SAndrew Rist * specific language governing permissions and limitations 18*dd7bc091SAndrew Rist * under the License. 19*dd7bc091SAndrew Rist * 20*dd7bc091SAndrew Rist *************************************************************/ 21*dd7bc091SAndrew Rist 22*dd7bc091SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef X2C_SYSHELP_HXX 25cdf0e10cSrcweir #define X2C_SYSHELP_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir 28cdf0e10cSrcweir 29cdf0e10cSrcweir // USED SERVICES 30cdf0e10cSrcweir // BASE CLASSES 31cdf0e10cSrcweir // COMPONENTS 32cdf0e10cSrcweir // PARAMETERS 33cdf0e10cSrcweir #include <iosfwd> 34cdf0e10cSrcweir 35cdf0e10cSrcweir class Simstr; 36cdf0e10cSrcweir template <class XY> class List; 37cdf0e10cSrcweir 38cdf0e10cSrcweir 39cdf0e10cSrcweir #if defined(WNT) || defined(OS2) 40cdf0e10cSrcweir const char C_sSLASH[] = "\\"; 41cdf0e10cSrcweir const char C_cSLASH = '\\'; 42cdf0e10cSrcweir #elif defined(UNX) 43cdf0e10cSrcweir const char C_sSLASH[] = "/"; 44cdf0e10cSrcweir const char C_cSLASH = '/'; 45cdf0e10cSrcweir #else 46cdf0e10cSrcweir #error Must run under unix or windows, please define UNX or WNT. 47cdf0e10cSrcweir #endif 48cdf0e10cSrcweir 49cdf0e10cSrcweir enum E_LinkType 50cdf0e10cSrcweir { 51cdf0e10cSrcweir lt_nolink = 0, 52cdf0e10cSrcweir lt_idl, 53cdf0e10cSrcweir lt_html 54cdf0e10cSrcweir }; 55cdf0e10cSrcweir 56cdf0e10cSrcweir 57cdf0e10cSrcweir void WriteName( 58cdf0e10cSrcweir std::ostream & o_rFile, 59cdf0e10cSrcweir const Simstr & i_rIdlDocuBaseDir, 60cdf0e10cSrcweir const Simstr & i_rName, 61cdf0e10cSrcweir E_LinkType i_eLinkType ); 62cdf0e10cSrcweir 63cdf0e10cSrcweir 64cdf0e10cSrcweir void WriteStr( 65cdf0e10cSrcweir std::ostream & o_rFile, 66cdf0e10cSrcweir const char * i_sStr ); 67cdf0e10cSrcweir void WriteStr( 68cdf0e10cSrcweir std::ostream & o_rFile, 69cdf0e10cSrcweir const Simstr & i_sStr ); 70cdf0e10cSrcweir 71cdf0e10cSrcweir void GatherFileNames( 72cdf0e10cSrcweir List<Simstr> & o_sFiles, 73cdf0e10cSrcweir const char * i_sSrcDirectory ); 74cdf0e10cSrcweir void GatherSubDirectories( 75cdf0e10cSrcweir List<Simstr> & o_sSubDirectories, 76cdf0e10cSrcweir const char * i_sParentdDirectory ); 77cdf0e10cSrcweir 78cdf0e10cSrcweir 79cdf0e10cSrcweir 80cdf0e10cSrcweir #endif 81cdf0e10cSrcweir 82