update20140630

This commit is contained in:
stubbfel
2014-06-30 13:58:10 +02:00
parent 565970632e
commit 1e6cf42df3
877 changed files with 1146249 additions and 0 deletions

View File

@@ -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;
}
}
}