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

#include <textnode.hpp>

Inheritance diagram for CSMFilter::TextNode:
Collaboration diagram for CSMFilter::TextNode:

Public Member Functions

 TextNode (int columnId, const std::string &text)
 
virtual bool test (const CSMWorld::IdTableBase &table, int row, const std::map< int, int > &columns) const
 
virtual std::vector< intgetReferencedColumns () const
 
virtual std::string toString (bool numericColumns) const
 
- Public Member Functions inherited from CSMFilter::Node
 Node ()
 
virtual ~Node ()
 

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::IdTableBase 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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

Member Data Documentation

int CSMFilter::TextNode::mColumnId
private
std::string CSMFilter::TextNode::mText
private

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