30#include <rtl/string.hxx>
31#include <rtl/ustring.hxx>
60 for (sal_Int32
i = 0;
i != -1;) {
67 ?
name.substr(0,
name.size() - std::strlen(
".*"))
69 typeMgr, generated, options);
73 produce(
"", typeMgr, generated, options);
81 "com.sun.star.uno.RuntimeException", typeMgr, generated,
84 "com.sun.star.uno.TypeClass", typeMgr, generated, options);
86 "com.sun.star.uno.XInterface", typeMgr, generated, options);
89 std::cerr <<
"ERROR: " << e.
getMessage() <<
'\n';
92 std::cerr <<
"ERROR: No such file <" << e.getUri() <<
">\n";
96 <<
"ERROR: Bad format of <" << e.getUri() <<
">, \""
97 << e.getDetail() <<
"\"\n";
100 std::cerr <<
"Illegal option " << e.m_message <<
'\n';
102 }
catch (std::exception& e) {
103 std::cerr <<
"Failure " << e.what() <<
'\n';
const OUString & getMessage() const
bool initOptions(int ac, char *av[], bool bCmdFile=false) override
bool isValid(const ::rtl::OString &option) const
const OString & getOption(const ::rtl::OString &option) const
const StringVector & getExtraInputFiles() const
const StringVector & getInputFiles() const
A simple class to track which types have already been processed by a code maker.
SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
void produce(OUString const &name, rtl::Reference< TypeManager > const &manager, codemaker::GeneratedTypeSet &generated, CppuOptions const &options)
OUString convertToFileUrl(const OString &fileName)
constexpr bool ends_with(std::basic_string_view< charT, traits > sv, std::basic_string_view< charT, traits > x) noexcept
std::basic_string_view< charT, traits > getToken(std::basic_string_view< charT, traits > sv, charT delimiter, std::size_t &position)
OUString b2u(std::string_view s)