CatapultServer  v0.5.0.1 (Elephant)
TransactionElementParser.h
Go to the documentation of this file.
1 
21 #pragma once
23 #include "catapult/functions.h"
24 #include <vector>
25 
26 namespace catapult { namespace ionet { struct Packet; } }
27 
28 namespace catapult { namespace parsers {
29 
32  const ionet::Packet& packet,
33  const predicate<const model::Transaction&>& isValid,
34  std::vector<model::TransactionElement>& elements);
35 }}
CATAPULT_LOG
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
PacketPayloadParser.h
Parser.debug
def debug(*args)
Definition: Parser.py:46
catapult::ionet::Packet
A packet header with a data payload.
Definition: Packet.h:32
catapult::predicate
std::function< bool(TArgs...)> predicate
A predicate function.
Definition: functions.h:31
catapult::ionet::Packet::Data
uint8_t * Data()
Returns a non-const pointer to data contained in this packet.
Definition: Packet.h:35
catapult::ionet::PacketHeader::Size
uint32_t Size
Size of the packet.
Definition: PacketHeader.h:32
functions.h
catapult::ionet::PacketHeader
A packet header that all transferable information is expected to have.
Definition: PacketHeader.h:30
Packet.h
Elements.h
catapult::parsers::TryParseTransactionElements
bool TryParseTransactionElements(const ionet::Packet &packet, const predicate< const model::Transaction & > &isValid, std::vector< model::TransactionElement > &elements)
Tries to parse transaction elements out of packet and into elements with a validity check (isValid).
Definition: TransactionElementParser.cpp:27
catapult
Definition: AddressExtractionExtension.cpp:28
TransactionElementParser.h