/** * @file LocalVersionHolder.cpp * * @date Mar 19, 2014 * @author Andrey Belomutskiy, (c) 2012-2018 */ #include "LocalVersionHolder.h" LocalVersionHolder::LocalVersionHolder() { /** * we want local version to be 'old' on instantiation */ localVersion = -1; } int LocalVersionHolder::getVersion() { return localVersion; } bool LocalVersionHolder::isOld(int global) { if (global > localVersion) { localVersion = global; return true; } return false; }