diff CppClient/ArrayFilledByThreads.cpp @ 6:c584c25a74fd

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 02 Jun 2015 10:22:49 +0200
parents 798076adf9e9
children e59bf2554e59
line wrap: on
line diff
--- a/CppClient/ArrayFilledByThreads.cpp	Tue Jun 02 10:11:34 2015 +0200
+++ b/CppClient/ArrayFilledByThreads.cpp	Tue Jun 02 10:22:49 2015 +0200
@@ -35,9 +35,9 @@
 #include "ThreadedCommandProcessor.h"
 #include "../Orthanc/Core/OrthancException.h"
 
-namespace Orthanc
+namespace OrthancClient
 {
-  class ArrayFilledByThreads::Command : public ICommand
+  class ArrayFilledByThreads::Command : public Orthanc::ICommand
   {
   private:
     ArrayFilledByThreads&  that_;
@@ -85,7 +85,7 @@
     {
       array_.resize(filler_.GetFillerSize());
 
-      Orthanc::ThreadedCommandProcessor processor(threadCount_);
+      ThreadedCommandProcessor processor(threadCount_);
       for (size_t i = 0; i < array_.size(); i++)
       {
         processor.Post(new Command(*this, i));
@@ -127,7 +127,7 @@
   {
     if (t < 1)
     {
-      throw OrthancException(ErrorCode_ParameterOutOfRange);
+      throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
     }
 
     threadCount_ = t;
@@ -141,7 +141,7 @@
   }
 
 
-  IDynamicObject& ArrayFilledByThreads::GetItem(size_t index)
+  Orthanc::IDynamicObject& ArrayFilledByThreads::GetItem(size_t index)
   {
     if (index >= GetSize())
     {