 |
ewmscp
..
|
Go to the documentation of this file. 1 #ifndef __renameEventHandler_h_
2 #define __renameEventHandler_h_
9 typedef std::chrono::system_clock
timeType;
11 typedef std::map<cookieType, renameHalfEvent>
mapType;
33 timeType::time_point aTimestamp):
48 renameHalfEvent::timeType::time_point aTimestamp) {
50 std::forward_as_tuple(cookie),
51 std::forward_as_tuple(cookie,
57 auto&
event = result.first->second;
71 renameHalfEvent::timeType::time_point age_limit = renameHalfEvent::timeType::now() -
74 (*it)->timestamp < age_limit) {
std::map< cookieType, renameHalfEvent > mapType
void forgetRenameEvent(const renameHalfEvent *what)
setType::iterator setIterator
renameHalfEvent::mapType renameEventMap
const renameHalfEvent * getNextStaleSingle(renameHalfEvent::timeType::duration timeout)
std::multiset< renameHalfEvent *, decltype(cmp) * > setType
timeType::time_point timestamp
renameHalfEvent(cookieType aCookie, const pathType &aSrcPath, const pathType &aDstPath, moveTypeEnum aMoveType, const singleMap &aMapEntry, timeType::time_point aTimestamp)
static bool cmp(const renameHalfEvent *lhs, const renameHalfEvent *rhs)
const renameHalfEvent * getRenamePartner(renameHalfEvent::cookieType cookie, const renameHalfEvent::pathType &aSrcPath, const renameHalfEvent::pathType &aDstPath, renameHalfEvent::moveTypeEnum aIsMoveFrom, const singleMap &aMapEntry, renameHalfEvent::timeType::time_point aTimestamp)
std::pair< std::string, std::string > singleMap
renameHalfEvent::setType renameEventSet
const singleMap & mapEntry
renameEventHandler()=default
std::chrono::system_clock timeType