Wolframe, 0.0.3

_Wolframe::utils::IdentifierTable Class Reference

Identifier table structure for parseNextIdentifier( std::string::const_iterator&, std::string::const_iterator, ...);. More...

#include <parseUtils.hpp>

Public Member Functions

 IdentifierTable (bool casesensitive_, const char **arg)
 Constructor. More...
 
int operator[] (const std::string &) const
 Lookup in table. More...
 
std::string tostring () const
 Get the list of keywords defined as string for log messages. More...
 
const char * idstring (int id) const
 Get the keyword with index 'id' (starting from 1) More...
 

Private Attributes

bool m_casesensitive
 
std::map< std::string, int > m_tab
 
const char ** m_arg
 

Detailed Description

Identifier table structure for parseNextIdentifier( std::string::const_iterator&, std::string::const_iterator, ...);.

Constructor & Destructor Documentation

_Wolframe::utils::IdentifierTable::IdentifierTable ( bool  casesensitive_,
const char **  arg 
)

Constructor.

Parameters
[in]casesensitive_true, if the keywords inserted are case sensitive
[in]argNULL terminated array of identifiers to insert

Member Function Documentation

const char* _Wolframe::utils::IdentifierTable::idstring ( int  id) const

Get the keyword with index 'id' (starting from 1)

int _Wolframe::utils::IdentifierTable::operator[] ( const std::string &  ) const

Lookup in table.

std::string _Wolframe::utils::IdentifierTable::tostring ( ) const

Get the list of keywords defined as string for log messages.

Member Data Documentation

const char** _Wolframe::utils::IdentifierTable::m_arg
private
bool _Wolframe::utils::IdentifierTable::m_casesensitive
private
std::map<std::string,int> _Wolframe::utils::IdentifierTable::m_tab
private

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