#include <repos-reader.h>
Collaboration diagram for ReposReader:
Public Methods | |
ReposReader (std::istream *repos, const string &repos_name) | |
virtual | ~ReposReader (void) |
const char * | ReadCharStar (int *len) |
const char * | ReadCharsOnly (int numchars) |
uint32 | ReadFixedUint32 () |
uint32 | ReadVarUint32 () |
unsigned char | ReadByte () |
int | ReadInt () |
bool | AtEnd () const |
int | cur_pos () const |
const string & | repos_name () const |
void | ParseError (const string &errmsg) |
Private Methods | |
void | RefillBuf () |
void | ReallocCharsBuf (int size) |
Private Attributes | |
std::istream * | repos_ |
const string | repos_name_ |
char | decode_buf_ [kDecodeBufSize] |
int | decode_buf_len_ |
int | cur_pos_ |
char * | chars_buf_ |
int | chars_buf_len_ |
Decoder | decoder_ |
Static Private Attributes | |
const int | kDecodeBufSize = 1024 |
const int | kReadBufSize = 10000 |
|
Definition at line 23 of file repos-reader.cc. References kReadBufSize, NULL, ReallocCharsBuf(), and RefillBuf(). |
|
Definition at line 37 of file repos-reader.h. |
|
Definition at line 123 of file repos-reader.cc. References Decoder::avail(), decoder_, and repos_. Referenced by Ripper::RipRepository(). |
|
Definition at line 54 of file repos-reader.h. References cur_pos_. |
|
Definition at line 127 of file repos-reader.cc. References cur_pos_, and repos_name_. Referenced by ParseElt::Process_Document(), ReadInt(), ReadVarUint32(), and RefillBuf(). |
|
Definition at line 115 of file repos-reader.cc. References Decoder::avail(), cur_pos_, decoder_, Decoder::get8(), and RefillBuf(). Referenced by ParseElt::Process_Document(). |
|
Definition at line 60 of file repos-reader.cc. References Decoder::avail(), chars_buf_, chars_buf_len_, cur_pos_, decoder_, Decoder::getn(), MIN, ReallocCharsBuf(), and RefillBuf(). Referenced by ParseElt::Process_TermOrPunct(), and ReadCharStar(). |
|
|
Definition at line 79 of file repos-reader.cc. References Decoder::avail(), cur_pos_, decoder_, Decoder::get32(), RefillBuf(), and uint32. Referenced by ParseElt::Process_Document(). |
|
Definition at line 101 of file repos-reader.cc. References Decoder::avail(), cur_pos_, decoder_, Decoder::get_varsigned32(), ParseError(), and RefillBuf(). Referenced by ParseElt::Process_Document(), ParseElt::Process_Heading(), ParseElt::Process_ResponseCode(), ParseElt::Process_SetFace(), ParseElt::Process_SetSize(), and ReadCharStar(). |
|
Definition at line 87 of file repos-reader.cc. References Decoder::avail(), cur_pos_, decoder_, Decoder::get_varint32(), ParseError(), RefillBuf(), and uint32. Referenced by ParseElt::Process_Document(). |
|
Definition at line 48 of file repos-reader.cc. References chars_buf_, and chars_buf_len_. Referenced by ReadCharsOnly(), and ReposReader(). |
|
Definition at line 33 of file repos-reader.cc. References Decoder::avail(), decode_buf_, decode_buf_len_, decoder_, ParseError(), repos_, repos_name_, and Decoder::reset(). Referenced by ReadByte(), ReadCharsOnly(), ReadFixedUint32(), ReadInt(), ReadVarUint32(), and ReposReader(). |
|
Definition at line 55 of file repos-reader.h. References repos_name_. |
|
Definition at line 73 of file repos-reader.h. Referenced by ReadCharsOnly(), and ReallocCharsBuf(). |
|
Definition at line 74 of file repos-reader.h. Referenced by ReadCharsOnly(), and ReallocCharsBuf(). |
|
Definition at line 71 of file repos-reader.h. Referenced by cur_pos(), ParseError(), ReadByte(), ReadCharsOnly(), ReadFixedUint32(), ReadInt(), and ReadVarUint32(). |
|
Definition at line 69 of file repos-reader.h. Referenced by RefillBuf(). |
|
Definition at line 70 of file repos-reader.h. Referenced by RefillBuf(). |
|
Definition at line 76 of file repos-reader.h. Referenced by AtEnd(), ReadByte(), ReadCharsOnly(), ReadFixedUint32(), ReadInt(), ReadVarUint32(), and RefillBuf(). |
|
Definition at line 64 of file repos-reader.h. |
|
Definition at line 65 of file repos-reader.h. Referenced by ReposReader(). |
|
Definition at line 67 of file repos-reader.h. |
|
Definition at line 68 of file repos-reader.h. Referenced by ParseError(), RefillBuf(), and repos_name(). |