88 unsigned int index = 0;
90 ++itChanges, ++
index) {
98 FWItemChangeSignal::slot_list_type slots = signal.slots();
99 for (FWItemChangeSignal::slot_list_type::iterator itSlot = slots.begin(), itEnd = slots.end(); itSlot != itEnd;
102 (*itSlot)(*itChanges);
104 fwLog(
fwlog::kError) << (*itChanges)->name() <<
" had the failure in process FWItemChanged signals\n"
105 << iE.
what() << std::endl;
106 }
catch (
const std::bad_alloc& iE) {
107 std::cerr <<
"Ran out of memory while processing " << (*itChanges)->name() << std::endl;
110 fwLog(
fwlog::kError) << (*itChanges)->name() <<
" had the failure in process FWItemChanged signals (2) \n"
111 << iE.what() << std::endl;
117 for (
size_t ci = 0, ce =
m_changes.size(), si = 0; ci != ce; ++ci, ++si) {
121 if (not changes.empty()) {
128 FWModelChangeSignal::slot_list_type slots = signal.slots();
129 for (FWModelChangeSignal::slot_list_type::iterator itSlot = slots.begin(), itEnd = slots.end(); itSlot != itEnd;
135 <<
" had the failure in process FWModelChangeSignals\n"
136 << iE.
what() <<
"\n";
137 }
catch (
const std::bad_alloc& iE) {
139 fwLog(
fwlog::kError) <<
"Ran out of memory while processing " << changes.begin()->item()->name() <<
"\n";
143 <<
" had the failure in process FWModelChangeSignals (2)\n"
144 << iE.what() <<
"\n";
std::vector< FWModelChangeSignal > m_changeSignals
void itemsGoingToBeClearedSlot(void)
std::vector< FWModelIds > m_changes
static void sendChangeSignalsAreDone(FWModelChangeManager *iCM)
std::set< const FWEventItem * > m_itemChanges
void newItemSlot(FWEventItem *)
std::set< FWModelId > FWModelIds
FWItemChangeSignal itemChanged_
char const * what() const noexceptoverride
sigc::signal< void, const FWModelIds & > FWModelChangeSignal
sigc::signal< void > changeSignalsAreDone_
void changed(const FWModelId &)
std::vector< FWItemChangeSignal > m_itemChangeSignals
sigc::signal< void > changeSignalsAreComing_
FWModelChangeSignal changed_
virtual ~FWModelChangeManager()
sigc::signal< void, const FWEventItem * > FWItemChangeSignal
const FWEventItem * item() const