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

#include <p4RuntimeSerializer.h>

Public Member Functions

 P4RuntimeAPI (std::shared_ptr< const ::p4::config::v1::P4Info > p4Info, std::shared_ptr< const ::p4::v1::WriteRequest > entries)
 
 P4RuntimeAPI (std::shared_ptr< const ::p4::config::v1::P4Info > p4Info, std::shared_ptr< 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

std::shared_ptr< const ::p4::v1::WriteRequest > entries
 
google::protobuf::util::JsonPrintOptions jsonPrintOptions
 
std::shared_ptr< 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

std::shared_ptr<const ::p4::v1::WriteRequest> P4::P4RuntimeAPI::entries

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

◆ p4Info

std::shared_ptr<const ::p4::config::v1::P4Info> P4::P4RuntimeAPI::p4Info

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