xref: /aoo41x/main/xml2cmp/source/support/syshelp.hxx (revision dd7bc091)
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 X2C_SYSHELP_HXX
25 #define X2C_SYSHELP_HXX
26 
27 
28 
29 // USED SERVICES
30 	// BASE CLASSES
31 	// COMPONENTS
32 	// PARAMETERS
33 #include <iosfwd>
34 
35 class Simstr;
36 template <class XY> class List;
37 
38 
39 #if defined(WNT) || defined(OS2)
40 const char   C_sSLASH[] = "\\";
41 const char   C_cSLASH = '\\';
42 #elif defined(UNX)
43 const char   C_sSLASH[] = "/";
44 const char   C_cSLASH = '/';
45 #else
46 #error Must run under unix or windows, please define UNX or WNT.
47 #endif
48 
49 enum E_LinkType
50 {
51 	lt_nolink = 0,
52 	lt_idl,
53 	lt_html
54 };
55 
56 
57 void 				WriteName(
58 						std::ostream & 	    o_rFile,
59 						const Simstr &	    i_rIdlDocuBaseDir,
60 						const Simstr &      i_rName,
61 						E_LinkType			i_eLinkType );
62 
63 
64 void 				WriteStr(
65 						std::ostream & 	    o_rFile,
66 						const char *		i_sStr );
67 void 				WriteStr(
68 						std::ostream & 	    o_rFile,
69 						const Simstr &      i_sStr );
70 
71 void				GatherFileNames(
72 						List<Simstr> &		o_sFiles,
73 						const char *		i_sSrcDirectory );
74 void				GatherSubDirectories(
75 						List<Simstr> &		o_sSubDirectories,
76 						const char *		i_sParentdDirectory );
77 
78 
79 
80 #endif
81 
82