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);
77 std::cerr <<
"ERROR: " << e.
getMessage() <<
'\n';
80 std::cerr <<
"ERROR: No such file <" << e.getUri() <<
">\n";
84 <<
"ERROR: Bad format of <" << e.getUri() <<
">, \""
85 << e.getDetail() <<
"\"\n";
88 std::cerr <<
"Illegal option " << e.m_message <<
'\n';
90 }
catch (std::exception & e) {
91 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.
void produce(OUString const &name, rtl::Reference< TypeManager > const &manager, codemaker::GeneratedTypeSet &generated, CppuOptions const &options)
OUString convertToFileUrl(const OString &fileName)
SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
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)