55 lines
1.1 KiB
C++
55 lines
1.1 KiB
C++
/*
|
|
* SplitOperation.h
|
|
*
|
|
* Created on: 31.05.2011
|
|
* Author: sgaebler
|
|
* Author: jgaebler
|
|
*/
|
|
#pragma once
|
|
|
|
#ifndef SPLITOPERATION_H_
|
|
#define SPLITOPERATION_H_
|
|
|
|
#include "SplitOptions.h"
|
|
#include "common/container/PeerIDList.h"
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
/**
|
|
* @brief Utility class which stores all necessary information to split a group.
|
|
* In particular, the peers which should left the current group and the
|
|
* service options.
|
|
* @class SplitOperation
|
|
* @author Jan Gäbler
|
|
* @author Silvio Gäbler*
|
|
* @ingroup Moversight
|
|
*/
|
|
class SplitOperation {
|
|
public:
|
|
|
|
SplitOperation();
|
|
|
|
SplitOperation(SplitOptions options, PeerIDList splitPeers);
|
|
|
|
virtual ~SplitOperation();
|
|
|
|
void setOptions(SplitOptions options);
|
|
|
|
void setSplitPeers(PeerIDList splitPeers);
|
|
|
|
SplitOptions getOptions() const;
|
|
|
|
PeerIDList getSplitPeers();
|
|
|
|
private:
|
|
|
|
SplitOptions options;
|
|
PeerIDList splitPeers;
|
|
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif /* SPLITOPERATION_H_ */
|