/*
* Copyright (C) 2020 Embedded AMS B.V. - All Rights Reserved
*
* This file is part of Embedded Proto.
*
* Embedded Proto is open source software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, version 3 of the license.
*
* Embedded Proto is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Embedded Proto. If not, see .
*
* For commercial and closed source application please visit:
* .
*
* Embedded AMS B.V.
* Info:
* info at EmbeddedProto dot com
*
* Postal address:
* Johan Huizingalaan 763a
* 1066 VH, Amsterdam
* the Netherlands
*/
#ifndef _MESSAGE_INTERFACE_H_
#define _MESSAGE_INTERFACE_H_
#include "WireFormatter.h"
#include "Fields.h"
#include "Errors.h"
#include
namespace EmbeddedProto
{
class MessageInterface : public ::EmbeddedProto::Field
{
public:
MessageInterface() = default;
virtual ~MessageInterface() = default;
// TODO doc
Error serialize_with_id(uint32_t field_number, ::EmbeddedProto::WriteBufferInterface& buffer) const final;
//! Clear the content of this message and set it to it's default state.
/*!
The defaults are to be set according to the Protobuf standard.
*/
virtual void clear() = 0;
};
} // End of namespace EmbeddedProto
#endif // _MESSAGE_INTERFACE_H_