Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
util::pprint::FilePrinter Class Referenceabstract
+ Inheritance diagram for util::pprint::FilePrinter:

Classes

class  PrintTask
 

Public Types

using FieldDescriptor = ::google::protobuf::FieldDescriptor
 
using Descriptor = ::google::protobuf::Descriptor
 
using FieldPrinterFactory = std::function<::google::protobuf::TextFormat::FieldValuePrinter *(const FieldDescriptor &fd)>
 

Public Member Functions

void Init (const std::string &fname)
 
util::Status Run ()
 
uint64_t count () const
 
void SetJsonPrinterOptions (const Pb2JsonOptions &options)
 
void RegisterFieldPrinter (FieldPrinterFactory pred)
 
const Descriptor * GetDescriptor () const
 

Protected Member Functions

virtual void LoadFile (const std::string &fname)=0
 
virtual util::StatusObject< bool > Next (StringPiece *record)=0
 
virtual void PostRun ()
 

Protected Attributes

std::unique_ptr< const ::google::protobuf::Message > descr_msg_
 

Detailed Description

Definition at line 27 of file file_printer.h.


The documentation for this class was generated from the following files: