Public Member Functions | Private Member Functions | Private Attributes | List of all members
routeguide::Parser Class Reference

Public Member Functions

bool Finished ()
 
 Parser (const std::string &db)
 
bool TryParseOne (Feature *feature)
 

Private Member Functions

bool Match (const std::string &prefix)
 
void ReadLong (long *l)
 
bool SetFailedAndReturnFalse ()
 

Private Attributes

size_t current_ = 0
 
std::string db_
 
bool failed_ = false
 
const std::string latitude_ = "\"latitude\":"
 
const std::string location_ = "\"location\":"
 
const std::string longitude_ = "\"longitude\":"
 
const std::string name_ = "\"name\":"
 

Detailed Description

Definition at line 66 of file helper.cc.

Constructor & Destructor Documentation

◆ Parser()

routeguide::Parser::Parser ( const std::string &  db)
inlineexplicit

Definition at line 68 of file helper.cc.

Member Function Documentation

◆ Finished()

bool routeguide::Parser::Finished ( )
inline

Definition at line 76 of file helper.cc.

◆ Match()

bool routeguide::Parser::Match ( const std::string &  prefix)
inlineprivate

Definition at line 118 of file helper.cc.

◆ ReadLong()

void routeguide::Parser::ReadLong ( long l)
inlineprivate

Definition at line 124 of file helper.cc.

◆ SetFailedAndReturnFalse()

bool routeguide::Parser::SetFailedAndReturnFalse ( )
inlineprivate

Definition at line 113 of file helper.cc.

◆ TryParseOne()

bool routeguide::Parser::TryParseOne ( Feature *  feature)
inline

Definition at line 78 of file helper.cc.

Member Data Documentation

◆ current_

size_t routeguide::Parser::current_ = 0
private

Definition at line 136 of file helper.cc.

◆ db_

std::string routeguide::Parser::db_
private

Definition at line 135 of file helper.cc.

◆ failed_

bool routeguide::Parser::failed_ = false
private

Definition at line 134 of file helper.cc.

◆ latitude_

const std::string routeguide::Parser::latitude_ = "\"latitude\":"
private

Definition at line 138 of file helper.cc.

◆ location_

const std::string routeguide::Parser::location_ = "\"location\":"
private

Definition at line 137 of file helper.cc.

◆ longitude_

const std::string routeguide::Parser::longitude_ = "\"longitude\":"
private

Definition at line 139 of file helper.cc.

◆ name_

const std::string routeguide::Parser::name_ = "\"name\":"
private

Definition at line 140 of file helper.cc.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:43