OpenMW
Public Types | Public Member Functions | Private Attributes
CSMFilter::ValueNode Class Reference

#include <valuenode.hpp>

List of all members.

Public Types

enum  Type { Type_Closed, Type_Open, Type_Infinite }

Public Member Functions

 ValueNode (int columnId, Type lowerType, Type upperType, double lower, double upper)
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
double mLower
double mUpper
Type mLowerType
Type mUpperType

Member Enumeration Documentation

Enumerator:
Type_Closed 
Type_Open 
Type_Infinite 

Constructor & Destructor Documentation

CSMFilter::ValueNode::ValueNode ( int  columnId,
Type  lowerType,
Type  upperType,
double  lower,
double  upper 
)

Member Function Documentation

std::vector< int > CSMFilter::ValueNode::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::ValueNode::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

Implements CSMFilter::Node.

std::string CSMFilter::ValueNode::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

double CSMFilter::ValueNode::mLower [private]
std::string CSMFilter::ValueNode::mText [private]
double CSMFilter::ValueNode::mUpper [private]

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