CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
24 namespace catapult {
namespace ionet {
30 template<
typename TEntity>
32 return FromEntities<TEntity>(type, { pEntity });
36 template<
typename TEntity>
40 return builder.
build();
44 template<
typename TStructure>
48 return builder.
build();
Represents a range of entities.
Definition: EntityRange.h:31
PacketType
An enumeration of known packet types.
Definition: PacketType.h:171
A packet payload builder for creating payloads composed of heterogeneous data.
Definition: PacketPayloadBuilder.h:29
static PacketPayload FromFixedSizeRange(PacketType type, model::EntityRange< TStructure > &&range)
Creates a packet payload with the specified packet type around a fixed size structure range.
Definition: PacketPayloadFactory.h:45
A factory for creating common packet payloads.
Definition: PacketPayloadFactory.h:27
PacketPayload build()
Builds the packet payload.
Definition: PacketPayloadBuilder.h:141
A packet payload that can be written.
Definition: PacketPayload.h:29
Definition: AddressExtractionExtension.cpp:28
static PacketPayload FromEntities(PacketType type, const std::vector< std::shared_ptr< TEntity >> &entities)
Creates a packet payload with the specified packet type around multiple entities.
Definition: PacketPayloadFactory.h:37
static PacketPayload FromEntity(PacketType type, const std::shared_ptr< TEntity > &pEntity)
Creates a packet payload with the specified packet type around a single entity (pEntity).
Definition: PacketPayloadFactory.h:31
bool appendRange(model::EntityRange< TEntity > &&range)
Appends a fixed size range to the payload.
Definition: PacketPayloadBuilder.h:80
bool appendEntities(const std::vector< std::shared_ptr< TEntity >> &entities)
Appends all entities to the payload.
Definition: PacketPayloadBuilder.h:56