#include <dcl/Config.h>
#include <locale.h>
#include <wchar.h>
#include <dcl/Charset.h>
#include <dcl/FileWriter.h>
#include <dcl/Files.h>
#include "DocSyntax.h"
#include "DocParser.h"
#include "HtmlGenerator.h"
Go to the source code of this file.
|
| __DCL_USING_NAMESPACE int | __main (int argc, char *argv[]) |
| int | main (int argc, char *argv[]) |
◆ __main()
| __DCL_USING_NAMESPACE int __main |
( |
int | argc, |
|
|
char * | argv[] ) |
Definition at line 21 of file hse/HSAIDoc/main.cpp.
22{
25
26 if (argc < 3) {
27 err << L
"Usage: idoc filename idoc.ini" <<
endl
28 << L"HSAIDocCmd.exe D:/Work/sdn/dcl/hse/HSAIDoc/main.cpp D:/Work/sdn/dcl/hse/HSAIDoc/src2html.ini"
30 return 0;
31 }
32
33 String filename = LocaleDecoder::decode(argv[1]);
34 String iniFilename = LocaleDecoder::decode(argv[2]);
35
37 err << L
"Source file is not found! - " << filename <<
endl;
38 return 0;
39 }
40
42 err << L
"Ini file is not found! - " << iniFilename <<
endl;
43 return 0;
44 }
45
46 try {
48
49 gen.generateHeader(out, filename);
50 gen.generate(out, filename);
51 gen.generateFooter(out);
52
53 }
57 }
58
59 return 0;
60}
DCLCVAR const struct __endl endl
String toStringAll() const
static bool exists(const String &_path)
◆ main()
| int main |
( |
int | argc, |
|
|
char * | argv[] ) |
Definition at line 62 of file hse/HSAIDoc/main.cpp.
63{
65
66 setlocale(LC_ALL, "");
67
69 try {
70#ifdef __DCL_DEBUG
72 DCLDebugSetGlobalReport(&debugOut);
73 try {
74#endif
75
77
78#ifdef __DCL_DEBUG
79 }
83 }
84#if __DCL_HAVE_ALLOC_DEBUG
85 DCLDebugDumpGlobalMemoryLeak(DCL_ALLOC_DUMP_ALL, &debugOut);
86#endif
87 DCLDebugSetGlobalReport(
NULL);
88#endif
89 }
93 wprintf(L"Exception: %ls\n", s.data());
94 }
96
98}
__DCL_USING_NAMESPACE int __main(int argc, char *argv[])