mirror of
https://github.com/zeldaret/ss
synced 2026-05-23 23:05:20 -04:00
24 lines
475 B
C++
24 lines
475 B
C++
#ifndef D_FLAG_COMMITTABLE_FLAG_MANAGER_H
|
|
#define D_FLAG_COMMITTABLE_FLAG_MANAGER_H
|
|
|
|
class CommittableFlagManager {
|
|
public:
|
|
bool mNeedsCommit;
|
|
|
|
virtual void doCommit() = 0;
|
|
virtual ~CommittableFlagManager() {}
|
|
bool commit();
|
|
void setNeedsCommit(bool commit) {
|
|
mNeedsCommit = commit;
|
|
}
|
|
CommittableFlagManager() {
|
|
mNeedsCommit = false;
|
|
}
|
|
CommittableFlagManager(bool commit) {
|
|
mNeedsCommit = commit;
|
|
}
|
|
};
|
|
|
|
|
|
#endif
|