36 lines
862 B
C++
36 lines
862 B
C++
/*
|
|
* File: SplitMessageFactory.cc
|
|
* Author: sgaebler
|
|
* Author: jgaebler
|
|
*
|
|
* Created on April 14, 2011, 11:34 AM
|
|
*/
|
|
|
|
#include "SplitMessageFactory.h"
|
|
|
|
#include "common/container/PeerIDList.h"
|
|
#include "split/SplitOptions.h"
|
|
#include "split/msg/SplitAnnounce.h"
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
/**
|
|
* @brief Creates a split announce message.
|
|
* @param options The options of the split.
|
|
* @param splitPeers The list of PeerIDs of the splitting peers
|
|
* @return The created message.
|
|
*/
|
|
SplitAnnounce
|
|
SplitMessageFactory::createSplitAnnounceMessage(const SplitOptions & options, const PeerIDList & splitPeers) {
|
|
|
|
SplitAnnounce spa;
|
|
spa.setOptions(options.getRaw());
|
|
spa.setSplitPeers(splitPeers);
|
|
|
|
return spa;
|
|
}
|
|
|
|
}
|
|
}
|