Esempio n. 1
0
        virtual void
        processOutgoing(const CompoundPtr& _compound)
        {
            assure(hasCapacity(), "yeye, something went wrong.");

            compound = _compound;
            activateCommand(compound->getCommandPool());
        } // processOutgoing
Esempio n. 2
0
void RollbackStorage::addCellValue(const vector<pair<IdentifiersType, CellValue> > &cells)
{
	WriteLocker locker(&lock);
	if (!hasCapacity((double)cells.size())) {
		throw ErrorException(ErrorException::ERROR_CUBE_LOCK_NO_CAPACITY, "rollback size is exceeded");
	}
	for (vector<pair<IdentifiersType, CellValue> >::const_iterator it = cells.begin(); it != cells.end(); ++it) {
		checkCurrentPage();
		currentPage.push_back(make_pair(it->first, it->second));
		currentPageSize += getSize(it->first, it->second);
	}
	steps.push(cells.size());
}