88 unsigned int index = 0;
90 ++itChanges, ++
index) {
100 fwLog(
fwlog::kError) << (*itChanges)->name() <<
" had the failure in process FWItemChanged signals\n" 101 << iE.
what() << std::endl;
102 }
catch (
const std::bad_alloc& iE) {
103 std::cerr <<
"Ran out of memory while processing " << (*itChanges)->name() << std::endl;
106 fwLog(
fwlog::kError) << (*itChanges)->name() <<
" had the failure in process FWItemChanged signals (2) \n" 107 << iE.what() << std::endl;
112 for (
size_t ci = 0, ce =
m_changes.size(), si = 0; ci != ce; ++ci, ++si) {
114 if (not changes.empty()) {
121 item->changed_.emit(changes);
124 <<
" had the failure in process FWModelChangeSignals\n" 125 << iE.
what() <<
"\n";
126 }
catch (
const std::bad_alloc& iE) {
128 fwLog(
fwlog::kError) <<
"Ran out of memory while processing " << changes.begin()->item()->name() <<
"\n";
132 <<
" had the failure in process FWModelChangeSignals (2)\n" 133 << 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
sigc::signal< void(const FWModelIds &)> FWModelChangeSignal
FWItemChangeSignal itemChanged_
sigc::signal< void(const FWEventItem *)> FWItemChangeSignal
sigc::signal< void()> changeSignalsAreDone_
const FWEventItem * item() const
void changed(const FWModelId &)
std::vector< FWItemChangeSignal > m_itemChangeSignals
FWModelChangeSignal changed_
virtual ~FWModelChangeManager()
sigc::signal< void()> changeSignalsAreComing_
char const * what() const noexcept override