Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
recordio::RecordReader Class Reference

#include <recordio.h>

Public Member Functions

 RecordReader (File *const file)
 
template<class P >
bool ReadProtocolMessage (P *const proto)
 
bool Close ()
 Closes the underlying file.
 

Detailed Description

This class reads a protocol buffer from a file. The format must be the one described in RecordWriter, above.

Definition at line 86 of file recordio.h.

Constructor & Destructor Documentation

◆ RecordReader()

recordio::RecordReader::RecordReader ( File *const file)
explicit

Definition at line 52 of file recordio.cc.

Member Function Documentation

◆ Close()

bool recordio::RecordReader::Close ( )

Closes the underlying file.

Definition at line 54 of file recordio.cc.

◆ ReadProtocolMessage()

template<class P >
bool recordio::RecordReader::ReadProtocolMessage ( P *const proto)
inline

Definition at line 91 of file recordio.h.


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