Esempio n. 1
0
::Atlas::Message::Element MapAdapter::getSelectedChangedElements()
{
	::Atlas::Message::MapType attributes;
	for (AdapterStore::iterator I = mAdapters.begin(); I != mAdapters.end(); ++I) {
		Adapters::Atlas::AdapterBase* adapter = I->second.Adapter;
		if (adapter->hasChanges() && !adapter->isRemoved()) {
			attributes.insert(std::map<std::string, ::Atlas::Message::Element>::value_type(I->first, adapter->getChangedElement()));
		}
	}
	return Element(attributes);
}
Esempio n. 2
0
::Atlas::Message::Element ListAdapter::_getChangedElement()
{
    //if one adapter has changes, we have to send all
    ::Atlas::Message::ListType attributes;
    for (AdapterStore::iterator I = mAdapters.begin(); I != mAdapters.end(); ++I) {
        Adapters::Atlas::AdapterBase* adapter = I->Adapter;
        if (!adapter->isRemoved()) {
            attributes.push_back(adapter->getChangedElement());
        }
    }
    return Element(attributes);
}