Core Library 1.7.0.0 Library containing core utilities and tools for threading, networking, logging, INI and CSV file management etc.

Classes | Namespaces | Functions
MessageUtils.h File Reference

File containing message utils declaration. More...

`#include <iterator>`
`#include <algorithm>`
`#include <cstring>`
`#include <cassert>`
`#include "AsioDefines.h"`
`#include "Serialization/SerializeToVector.h"`

Go to the source code of this file.

## Classes
class | core_lib::asio::messages::MessageHandler
| Default message handler class. More...
struct | core_lib::asio::messages::ArchiveTypeToEnum< A >
| Archive type enumerator as a template class. More...
struct | core_lib::asio::messages::ArchiveTypeToEnum< serialize::archives::out_bin_t >
| Archive type enumerator as a specialized template class for binary archives. More...
struct | core_lib::asio::messages::ArchiveTypeToEnum< serialize::archives::out_port_bin_t >
| Archive type enumerator as a specialized template class for portable binary archives. More...
struct | core_lib::asio::messages::ArchiveTypeToEnum< serialize::archives::out_raw_t >
| Archive type enumerator as a specialized template class for raw data. More...
struct | core_lib::asio::messages::ArchiveTypeToEnum< serialize::archives::out_protobuf_t >
| Archive type enumerator as a specialized template class for Google protocol buffer data. More...
struct | core_lib::asio::messages::ArchiveTypeToEnum< serialize::archives::out_json_t >
| Archive type enumerator as a specialized template class for json archives. More...
struct | core_lib::asio::messages::ArchiveTypeToEnum< serialize::archives::out_xml_t >
| Archive type enumerators as a specialized template class for xml archives. More...
class | core_lib::asio::messages::MessageBuilder
| Default message builder class. More...

## Namespaces
| core_lib
| The core_lib namespace.
| core_lib::asio
| The asio namespace.
| core_lib::asio::messages
| The tcp namespace.

## Functions
void CORE_LIBRARY_DLL_SHARED_API | core_lib::asio::messages::FillHeader (const std::string &magicString, defs::eArchiveType archiveType, int32_t messageId, const defs::connection_t &responseAddress, uint32_t messageLength, defs::MessageHeader &header)
| Header filler function. More...
template<typename MsgBldr >
defs::char_buffer_t const & | core_lib::asio::messages::BuildMessage (int32_t messageId, const defs::connection_t &responseAddress, const defs::connection_t &fallbackResponseAddress, const MsgBldr &messageBuilder)
| Message builder wrapper function for header only messages. More...
template<typename MsgBldr >
defs::char_buffer_t const & | core_lib::asio::messages::BuildMessage (defs::char_buffer_t const &message, int32_t messageId, const defs::connection_t &responseAddress, const defs::connection_t &fallbackResponseAddress, const MsgBldr &messageBuilder)
| Message builder wrapper function for header plus message buffer. More...
template<typename T , typename A , typename MsgBldr >
defs::char_buffer_t const & | core_lib::asio::messages::BuildMessage (const T &message, int32_t messageId, const defs::connection_t &responseAddress, const defs::connection_t &fallbackResponseAddress, const MsgBldr &messageBuilder)
| Message builder wrapper function for full messages with a header and a body. More...
template<typename T >
T | core_lib::asio::messages::DeserializeMessage (const defs::char_buffer_t &messageBuffer, defs::eArchiveType archiveType)
| Templated message deserializer function for non-POD data. More...
template<typename T >
T | core_lib::asio::messages::DeserializeMessage (const defs::char_buffer_t &messageBuffer)
| Templated message deserializer function for POD data. More...
template<typename T >
T | core_lib::asio::messages::DeserializeProtobuf (const defs::char_buffer_t &messageBuffer)
| Templated message deserializer function for Google protocol buffer data. More...

## Detailed Description

File containing message utils declaration.