7 #include "Tuto16MultithreadConsole/SReadArray.hpp" 9 #include <fwCom/Signal.hxx> 11 #include <fwData/Array.hpp> 12 #include <fwData/mt/ObjectWriteLock.hpp> 14 #include <fwDataTools/helper/Array.hpp> 16 #include <fwServices/macros.hpp> 25 SReadArray::SReadArray() noexcept
31 SReadArray::~SReadArray() noexcept
51 ::fwData::Array::sptr array = this->getInOut< ::fwData::Array >(
"array");
56 const int arraySize = 10;
58 array->resize(
"uint32", size, 1,
true);
62 unsigned int* buffer =
static_cast< unsigned int*
>( arrayHelper.
getBuffer() );
63 for (
unsigned int i = 0; i < arraySize; i++)
69 ::fwData::Object::ModifiedSignalType::sptr sig
virtual void configuring() override
Do nothing.
std::vector< size_t > SizeType
Array size type.
This service initializes a fwData::Array with 10 values (0 to 9).
virtual void stopping() override
Do nothing.
A helper to lock object on exclusive mode.
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...
#define SLM_ASSERT(message, cond)
work like 'assert' from 'cassert', with in addition a message logged by spylog (with FATAL loglevel) ...
static FWDATA_APIconst::fwCom::Signals::SignalKeyType s_MODIFIED_SIG
Key in m_signals map of signal m_sigModified.
virtual void updating() override
Initialize the current fwData::Array with 10 values (0 to 9).
The namespace Tuto16MultithreadConsole contains services to run the Tuto16MultithreadConsole example...
virtual void starting() override
Do nothing.