Mercurial > hg > orthanc
diff OrthancFramework/Sources/JobsEngine/SetOfCommandsJob.cpp @ 4300:b30a8de92ad9
abi continued
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 05 Nov 2020 19:33:18 +0100 |
parents | bf7b9edf6b81 |
children | 44b53a2c0a13 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/JobsEngine/SetOfCommandsJob.cpp Thu Nov 05 18:24:50 2020 +0100 +++ b/OrthancFramework/Sources/JobsEngine/SetOfCommandsJob.cpp Thu Nov 05 19:33:18 2020 +0100 @@ -32,6 +32,14 @@ namespace Orthanc { + SetOfCommandsJob::ICommand::~ICommand() + { + } + + SetOfCommandsJob::ICommandUnserializer::~ICommandUnserializer() + { + } + SetOfCommandsJob::SetOfCommandsJob() : started_(false), permissive_(false), @@ -49,7 +57,17 @@ } } - + size_t SetOfCommandsJob::GetPosition() const + { + return position_; + } + + void SetOfCommandsJob::SetDescription(const std::string &description) + { + description_ = description; + } + + void SetOfCommandsJob::Reserve(size_t size) { if (started_) @@ -62,7 +80,12 @@ } } - + size_t SetOfCommandsJob::GetCommandsCount() const + { + return commands_.size(); + } + + void SetOfCommandsJob::AddCommand(ICommand* command) { if (command == NULL) @@ -79,6 +102,11 @@ } } + bool SetOfCommandsJob::IsPermissive() const + { + return permissive_; + } + void SetOfCommandsJob::SetPermissive(bool permissive) { @@ -105,7 +133,12 @@ } } - + void SetOfCommandsJob::Start() + { + started_ = true; + } + + float SetOfCommandsJob::GetProgress() { if (commands_.empty()) @@ -119,6 +152,11 @@ } } + bool SetOfCommandsJob::IsStarted() const + { + return started_; + } + const SetOfCommandsJob::ICommand& SetOfCommandsJob::GetCommand(size_t index) const { @@ -234,6 +272,13 @@ return true; } + bool SetOfCommandsJob::GetOutput(std::string &output, + MimeType &mime, + const std::string &key) + { + return false; + } + SetOfCommandsJob::SetOfCommandsJob(ICommandUnserializer* unserializer, const Json::Value& source) :