update20140630
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* 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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user