diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-01-23 19:11:46 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-01-30 19:11:03 +0100 |
commit | fcdbc8a102ca258d105ebd2f41bbf17b29c817fd (patch) | |
tree | 520877ee0bbcb61781b9b4209a074c9180e348a6 /include | |
parent | c4e56fa5f40188ddf4f75d316e57143c10ed51fa (diff) | |
download | qpdf-fcdbc8a102ca258d105ebd2f41bbf17b29c817fd.tar.zst |
Move doFinalChecks to QPDFJob::checkConfiguration
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFJob.hh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/qpdf/QPDFJob.hh b/include/qpdf/QPDFJob.hh index 921742db..523ff357 100644 --- a/include/qpdf/QPDFJob.hh +++ b/include/qpdf/QPDFJob.hh @@ -85,6 +85,14 @@ class QPDFJob QPDF_DLL void setOutputStreams(std::ostream* out_stream, std::ostream* err_stream); + // Check to make sure no contradictory options have been + // specified. This is called automatically after initializing from + // argv or json and is also called by run, but you can call it + // manually as well. It throws a Usage exception if there are any + // errors. + QPDF_DLL + void checkConfiguration(); + // Returns true if output is created by the specified job. QPDF_DLL bool createsOutput() const; |