Public Member Functions | Private Member Functions | Private Attributes | List of all members
NewEagle::LineParser Class Reference

#include <LineParser.h>

Public Member Functions

int32_t GetPosition ()
 
 LineParser (const std::string &line)
 
uint32_t PeekUInt ()
 
std::string ReadCIdentifier ()
 
std::string ReadCIdentifier (std::string fieldName)
 
double ReadDouble ()
 
double ReadDouble (std::string fieldName)
 
int32_t ReadInt ()
 
char ReadNextChar (std::string fieldName)
 
std::string ReadQuotedString ()
 
uint32_t ReadUInt ()
 
uint32_t ReadUInt (std::string fieldName)
 
void SeekSeparator (char separator)
 
 ~LineParser ()
 

Private Member Functions

bool AtEOL ()
 
char ReadNextChar ()
 
void SkipWhitespace ()
 

Private Attributes

std::string _line
 
int32_t _position
 

Detailed Description

Definition at line 115 of file LineParser.h.

Constructor & Destructor Documentation

◆ LineParser()

NewEagle::LineParser::LineParser ( const std::string &  line)

Definition at line 71 of file LineParser.cpp.

◆ ~LineParser()

NewEagle::LineParser::~LineParser ( )

Definition at line 77 of file LineParser.cpp.

Member Function Documentation

◆ AtEOL()

bool NewEagle::LineParser::AtEOL ( )
private

Definition at line 135 of file LineParser.cpp.

◆ GetPosition()

int32_t NewEagle::LineParser::GetPosition ( )

Definition at line 81 of file LineParser.cpp.

◆ PeekUInt()

uint32_t NewEagle::LineParser::PeekUInt ( )

Definition at line 170 of file LineParser.cpp.

◆ ReadCIdentifier() [1/2]

std::string NewEagle::LineParser::ReadCIdentifier ( )

Definition at line 86 of file LineParser.cpp.

◆ ReadCIdentifier() [2/2]

std::string NewEagle::LineParser::ReadCIdentifier ( std::string  fieldName)

Definition at line 114 of file LineParser.cpp.

◆ ReadDouble() [1/2]

double NewEagle::LineParser::ReadDouble ( )

Definition at line 305 of file LineParser.cpp.

◆ ReadDouble() [2/2]

double NewEagle::LineParser::ReadDouble ( std::string  fieldName)

Definition at line 403 of file LineParser.cpp.

◆ ReadInt()

int32_t NewEagle::LineParser::ReadInt ( )

Definition at line 261 of file LineParser.cpp.

◆ ReadNextChar() [1/2]

char NewEagle::LineParser::ReadNextChar ( )
private

Definition at line 140 of file LineParser.cpp.

◆ ReadNextChar() [2/2]

char NewEagle::LineParser::ReadNextChar ( std::string  fieldName)

Definition at line 156 of file LineParser.cpp.

◆ ReadQuotedString()

std::string NewEagle::LineParser::ReadQuotedString ( )

Definition at line 427 of file LineParser.cpp.

◆ ReadUInt() [1/2]

uint32_t NewEagle::LineParser::ReadUInt ( )

Definition at line 210 of file LineParser.cpp.

◆ ReadUInt() [2/2]

uint32_t NewEagle::LineParser::ReadUInt ( std::string  fieldName)

Definition at line 248 of file LineParser.cpp.

◆ SeekSeparator()

void NewEagle::LineParser::SeekSeparator ( char  separator)

Definition at line 417 of file LineParser.cpp.

◆ SkipWhitespace()

void NewEagle::LineParser::SkipWhitespace ( )
private

Definition at line 127 of file LineParser.cpp.

Member Data Documentation

◆ _line

std::string NewEagle::LineParser::_line
private

Definition at line 136 of file LineParser.h.

◆ _position

int32_t NewEagle::LineParser::_position
private

Definition at line 135 of file LineParser.h.


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


can_dbc_parser
Author(s): Ryan Borchert
autogenerated on Sat Apr 9 2022 02:34:32