From 542ee51c4b619fea3d093e487cb572a94267529e Mon Sep 17 00:00:00 2001 From: hellwig Date: Thu, 31 Jan 2013 16:33:39 +0000 Subject: [PATCH] Method to query the number of undone jobs in JocClient.hpp added. Since several jobs can be fetched from the server, it is interesting to know how much undone jobs are still available. This will accomplished by the new method getNumberOfUndoneJobs(). git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2041 8c4709b5-6ec9-48aa-a5cd-a96041d1645a --- src/core/efw/JobClient.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/efw/JobClient.hpp b/src/core/efw/JobClient.hpp index 9e4155ee..8e517989 100644 --- a/src/core/efw/JobClient.hpp +++ b/src/core/efw/JobClient.hpp @@ -57,6 +57,12 @@ public: * @return \c true Result successfully sent, \c false else. */ bool sendResult(ExperimentData& result); + /** + * Return the number of undone jobs that have already been fetched from the server. + * + * @return the number of undone jobs. + */ + int getNumberOfUndoneJobs() { return m_parameters.size(); } }; } // end-of-namespace: fail