docs
This commit is contained in:
parent
b703cadcf3
commit
de4515a6d6
|
@ -7,9 +7,11 @@
|
||||||
|
|
||||||
#include "LocalVersionHolder.h"
|
#include "LocalVersionHolder.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* we rely on external source of global version
|
||||||
|
*/
|
||||||
int getGlobalConfigurationVersion(void);
|
int getGlobalConfigurationVersion(void);
|
||||||
|
|
||||||
//ctor
|
|
||||||
LocalVersionHolder::LocalVersionHolder() {
|
LocalVersionHolder::LocalVersionHolder() {
|
||||||
/**
|
/**
|
||||||
* we want local version to be 'old' on instantiation
|
* we want local version to be 'old' on instantiation
|
||||||
|
|
|
@ -10,10 +10,19 @@
|
||||||
|
|
||||||
#include "stdbool.h"
|
#include "stdbool.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* this
|
||||||
|
*/
|
||||||
class LocalVersionHolder {
|
class LocalVersionHolder {
|
||||||
public:
|
public:
|
||||||
LocalVersionHolder();
|
LocalVersionHolder();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Calling this method changes the internal state of the class - each consumer interested in tracking
|
||||||
|
* changes should have it's own instance of this class
|
||||||
|
*
|
||||||
|
* @return true if getGlobalConfigurationVersion() has changed since last time we've invoked this method
|
||||||
|
*/
|
||||||
bool isOld();
|
bool isOld();
|
||||||
int getVersion();
|
int getVersion();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue