7 #include "Tuto16MultithreadConsole/SShowArray.hpp" 9 #include <fwData/Array.hpp> 10 #include <fwData/mt/ObjectReadLock.hpp> 12 #include <fwDataTools/helper/ArrayGetter.hpp> 14 #include <fwServices/macros.hpp> 25 SShowArray::SShowArray() noexcept
31 SShowArray::~SShowArray() noexcept
51 ::fwData::Array::csptr array = this->getInput< ::fwData::Array >(
"array");
56 const unsigned int* buffer =
static_cast< const unsigned int*
>( arrayHelper.
getBuffer() );
58 std::stringstream str;
59 std::ostream_iterator<unsigned int> coutIter(str,
", ");
60 std::copy(buffer, buffer+10, coutIter );
virtual void starting() override
Do nothing.
A helper to lock object on read mode.
virtual void configuring() override
Do nothing.
Provides a way to manage a view on a multidimentionnal array.
This interface defines control service API. Does nothing particularly, can be considered as a default...
This service displays the array values in the log.
#define SLM_ASSERT(message, cond)
work like 'assert' from 'cassert', with in addition a message logged by spylog (with FATAL loglevel) ...
virtual void stopping() override
Do nothing.
#define SLM_INFO(message)
The namespace Tuto16MultithreadConsole contains services to run the Tuto16MultithreadConsole example...
virtual void updating() override
Display the array values.