P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::P4RuntimeAPI Struct Reference

#include <p4RuntimeSerializer.h>

Public Member Functions

 P4RuntimeAPI (const ::p4::config::v1::P4Info *p4Info, const ::p4::v1::WriteRequest *entries)
 
 P4RuntimeAPI (const ::p4::config::v1::P4Info *p4Info, const ::p4::v1::WriteRequest *entries, google::protobuf::util::JsonPrintOptions jsonPrintOptions)
 
void serializeEntriesTo (std::ostream *destination, P4RuntimeFormat format) const
 
void serializeP4InfoTo (std::ostream *destination, P4RuntimeFormat format) const
 

Public Attributes

const ::p4::v1::WriteRequest * entries
 
google::protobuf::util::JsonPrintOptions jsonPrintOptions
 
const ::p4::config::v1::P4Info * p4Info
 

Detailed Description

A P4 program's control-plane API, represented in terms of P4Runtime's data structures. Can be inspected or serialized.

Member Data Documentation

◆ entries

const ::p4::v1::WriteRequest* P4::P4RuntimeAPI::entries

All static table entries as one P4Runtime WriteRequest object. Never null.

◆ p4Info

const ::p4::config::v1::P4Info* P4::P4RuntimeAPI::p4Info

A P4Runtime P4Info message, which encodes the control-plane API of the program. Never null.