OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CSMFilter::Parser Class Reference

#include <parser.hpp>

Collaboration diagram for CSMFilter::Parser:

Public Member Functions

 Parser (const CSMWorld::Data &data)
 
bool parse (const std::string &filter, bool allowPredefined=true)
 
boost::shared_ptr< NodegetFilter () const
 Throws an exception if the last call to parse did not return true. More...
 

Private Member Functions

Token getStringToken ()
 
Token getNumberToken ()
 
Token getNextToken ()
 
Token checkKeywords (const Token &token)
 Turn string token into keyword token, if possible. More...
 
boost::shared_ptr< NodeparseImp (bool allowEmpty=false, bool ignoreOneShot=false)
 Will return a null-pointer, if there is nothing more to parse. More...
 
boost::shared_ptr< NodeparseNAry (const Token &keyword)
 
boost::shared_ptr< NodeparseText ()
 
boost::shared_ptr< NodeparseValue ()
 
void error ()
 

Private Attributes

boost::shared_ptr< NodemFilter
 
std::string mInput
 
int mIndex
 
bool mError
 
const CSMWorld::DatamData
 

Constructor & Destructor Documentation

CSMFilter::Parser::Parser ( const CSMWorld::Data data)

Member Function Documentation

CSMFilter::Token CSMFilter::Parser::checkKeywords ( const Token token)
private

Turn string token into keyword token, if possible.

Here is the call graph for this function:

Here is the caller graph for this function:

void CSMFilter::Parser::error ( )
private

Here is the caller graph for this function:

boost::shared_ptr< CSMFilter::Node > CSMFilter::Parser::getFilter ( ) const

Throws an exception if the last call to parse did not return true.

CSMFilter::Token CSMFilter::Parser::getNextToken ( )
private
CSMFilter::Token CSMFilter::Parser::getNumberToken ( )
private
CSMFilter::Token CSMFilter::Parser::getStringToken ( )
private

Here is the call graph for this function:

bool CSMFilter::Parser::parse ( const std::string &  filter,
bool  allowPredefined = true 
)

Discards any previous calls to parse

Returns
Success?

Here is the call graph for this function:

boost::shared_ptr< CSMFilter::Node > CSMFilter::Parser::parseImp ( bool  allowEmpty = false,
bool  ignoreOneShot = false 
)
private

Will return a null-pointer, if there is nothing more to parse.

boost::shared_ptr< CSMFilter::Node > CSMFilter::Parser::parseNAry ( const Token keyword)
private
boost::shared_ptr< CSMFilter::Node > CSMFilter::Parser::parseText ( )
private

Here is the call graph for this function:

boost::shared_ptr< CSMFilter::Node > CSMFilter::Parser::parseValue ( )
private

Here is the call graph for this function:

Member Data Documentation

const CSMWorld::Data& CSMFilter::Parser::mData
private
bool CSMFilter::Parser::mError
private
boost::shared_ptr<Node> CSMFilter::Parser::mFilter
private
int CSMFilter::Parser::mIndex
private
std::string CSMFilter::Parser::mInput
private

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