OpenMW
Public Member Functions | Private Attributes
CSMFilter::TextNode Class Reference

#include <textnode.hpp>

List of all members.

Public Member Functions

 TextNode (int columnId, const std::string &text)
virtual bool test (const CSMWorld::IdTable &table, int row, const std::map< int, int > &columns) const
virtual std::vector< int > getReferencedColumns () const
virtual std::string toString (bool numericColumns) const

Private Attributes

int mColumnId
std::string mText

Constructor & Destructor Documentation

CSMFilter::TextNode::TextNode ( int  columnId,
const std::string &  text 
)

Member Function Documentation

std::vector< int > CSMFilter::TextNode::getReferencedColumns ( ) const [virtual]

Return a list of the IDs of the columns referenced by this node. The column mapping passed into test as columns must contain all columns listed here.

Reimplemented from CSMFilter::LeafNode.

bool CSMFilter::TextNode::test ( const CSMWorld::IdTable table,
int  row,
const std::map< int, int > &  columns 
) const [virtual]
Returns:
Can the specified table row pass through to filter?
Parameters:
columnscolumn ID to column index mapping
Todo:
make pattern syntax configurable

Implements CSMFilter::Node.

std::string CSMFilter::TextNode::toString ( bool  numericColumns) const [virtual]

Return a string that represents this node.

Parameters:
numericColumnsUse numeric IDs instead of string to represent columns.

Implements CSMFilter::Node.


Member Data Documentation

std::string CSMFilter::TextNode::mText [private]

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