ldas-tools-frameAPI  2.6.5
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
ListParser Class Reference

List parser class. More...

#include <rdsutil.hh>

Collaboration diagram for ListParser:
Collaboration graph
[legend]

Public Member Functions

 ListParser (const char *list)
 Constructor. More...
 
 ~ListParser ()
 
bool getNextToken ()
 return: const bool - True if token was parsed out, false otherwise (end of More...
 
const std::vector< std::string > getTokenList ()
 return: const std::vector< std::string > - Vector of tokens. More...
 

Private Attributes

char * mBuffer
 
const char * mStart
 
const char * mCurrPos
 
std::string mName
 

Static Private Attributes

static const char mSeparator
 
static const char mOpen
 
static const char mClose
 

Detailed Description

List parser class.

Handles comma separated string list.

Constructor & Destructor Documentation

◆ ListParser()

ListParser::ListParser ( const char *  list)

Constructor.

Parameters
[in]listList of comma separated strings.
Returns
A new instance of this object.

This constructor initializes the instance to be ready to parse the supplied string.

◆ ~ListParser()

ListParser::~ListParser ( )

Member Function Documentation

◆ getNextToken()

bool ListParser::getNextToken ( )

return: const bool - True if token was parsed out, false otherwise (end of

◆ getTokenList()

const std::vector< std::string > ListParser::getTokenList ( )

return: const std::vector< std::string > - Vector of tokens.

Member Data Documentation

◆ mBuffer

char* ListParser::mBuffer
private

◆ mClose

const char ListParser::mClose
staticprivate

◆ mCurrPos

const char* ListParser::mCurrPos
private

◆ mName

std::string ListParser::mName
private

◆ mOpen

const char ListParser::mOpen
staticprivate

◆ mSeparator

const char ListParser::mSeparator
staticprivate

◆ mStart

const char* ListParser::mStart
private

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