diff options
Diffstat (limited to 'src/dotrunner.h')
-rw-r--r-- | src/dotrunner.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/dotrunner.h b/src/dotrunner.h index 1b54617..19bdc79 100644 --- a/src/dotrunner.h +++ b/src/dotrunner.h @@ -24,26 +24,28 @@ #include <condition_variable> #include <memory> +#include "qcstring.h" + /** Helper class to run dot from doxygen from multiple threads. */ class DotRunner { struct DotJob { - DotJob(std::string f, std::string o, std::string a) + DotJob(const QCString &f, const QCString &o, const QCString &a) : format(f), output(o), args(a) {} - std::string format; - std::string output; - std::string args; + QCString format; + QCString output; + QCString args; }; public: /** Creates a runner for a dot \a file. */ - DotRunner(const std::string& absDotName, const std::string& md5Hash = std::string()); + DotRunner(const QCString & absDotName, const QCString& md5Hash = QCString()); /** Adds an additional job to the run. * Performing multiple jobs one file can be faster. */ - void addJob(const char *format,const char *output); + void addJob(const QCString &format,const QCString &output); /** Prevent cleanup of the dot file (for user provided dot files) */ void preventCleanUp() { m_cleanUp = false; } @@ -51,16 +53,15 @@ class DotRunner /** Runs dot for all jobs added. */ bool run(); - // DotConstString const& getFileName() { return m_file; } - std::string const & getMd5Hash() { return m_md5Hash; } + QCString getMd5Hash() { return m_md5Hash; } - static bool readBoundingBox(const char* fileName, int* width, int* height, bool isEps); + static bool readBoundingBox(const QCString &fileName, int* width, int* height, bool isEps); private: - std::string m_file; - std::string m_md5Hash; - std::string m_dotExe; - bool m_cleanUp; + QCString m_file; + QCString m_md5Hash; + QCString m_dotExe; + bool m_cleanUp; std::vector<DotJob> m_jobs; }; |