PcapPlusPlus  Next
pcpp::ISerializer Class Referenceabstract

#include <Serializers.h>

Inheritance diagram for pcpp::ISerializer:
pcpp::JsonSerializer pcpp::ScopeBase pcpp::ArrayScope pcpp::ObjectScope

Public Member Functions

virtual ~ISerializer ()=default
 Destroy the serializer.
 
ArrayScope writeArray (const FieldDescriptor &field)
 
ObjectScope writeObject (const FieldDescriptor &field)
 

Detailed Description

Interface for streaming structured data to a serializer.

Member Function Documentation

◆ writeArray()

ArrayScope pcpp::ISerializer::writeArray ( const FieldDescriptor &  field)

Open an array field.

Parameters
[in]fieldThe descriptor of the array field
Returns
A scope representing the newly opened array

◆ writeObject()

ObjectScope pcpp::ISerializer::writeObject ( const FieldDescriptor &  field)

Open an object field.

Parameters
[in]fieldThe descriptor of the object field
Returns
A scope representing the newly opened object