23#include <osl/process.h>
24#include <osl/thread.h>
65 if (
i < ac - 1 && av[
i+1][0] !=
'-')
71 OString tmp(
"'-O', please check");
74 tmp += OString::Concat(
" your input '") + av[
i+1] +
"'";
87 if (av[
i][2] !=
'D' || av[
i][3] !=
'\0')
89 OString tmp(OString::Concat(
"'-nD', please check your input '") + av[
i] +
"'");
98 if (
i < ac - 1 && av[
i+1][0] !=
'-')
104 OString tmp(
"'-T', please check");
107 tmp += OString::Concat(
" your input '") + av[
i+1] +
"'";
129 if (av[
i][3] !=
'\0')
131 OString tmp(
"'-Gc', please check");
134 tmp += OString::Concat(
" your input '") + av[
i] +
"'";
142 }
else if (av[
i][2] !=
'\0')
144 OString tmp(
"'-G', please check");
147 tmp += OString::Concat(
" your input '") + av[
i] +
"'";
157 if (av[
i][2] ==
'\0')
159 if (
i < ac - 1 && av[
i+1][0] !=
'-')
165 OString tmp(
"'-X', please check");
168 tmp += OString::Concat(
" your input '") + av[
i+1] +
"'";
189 FILE* cmdFile = fopen(av[
i]+1,
"r");
190 if( cmdFile ==
nullptr )
200 while (fscanf(cmdFile,
"%511s", buffer) != EOF && rargc < 512)
202 rargv[rargc]= strdup(buffer);
209 for (
int j=0; j < rargc; j++)
226 OString
help =
"\nusing: " +
227 m_program +
" [-options] file_1 ... file_n -Xfile_n+1 -Xfile_n+2\nOptions:\n"
228 " -O<path> = path describes the root directory for the generated output.\n"
229 " The output directory tree is generated under this directory.\n"
230 " -T<name> = name specifies a type or a list of types. The output for this\n"
231 " [t1;...] type and all dependent types are generated. If no '-T' option is\n"
232 " specified, then output for all types is generated.\n"
233 " Example: 'com.sun.star.uno.XInterface' is a valid type.\n"
234 " -nD = no dependent types are generated.\n"
235 " -G = generate only target files which does not exists.\n"
236 " -Gc = generate only target files which content will be changed.\n"
237 " -X<file> = extra types which will not be taken into account for generation.\n\n" +
OString prepareVersion() const
bool initOptions(int ac, char *av[], bool bCmdFile=false) override
OString prepareHelp() override
StringVector m_inputFiles
StringVector m_extra_input_files