OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
valuenode.hpp
Go to the documentation of this file.
1 #ifndef CSM_FILTER_VALUENODE_H
2 #define CSM_FILTER_VALUENODE_H
3 
4 #include "leafnode.hpp"
5 
6 namespace CSMFilter
7 {
8  class ValueNode : public LeafNode
9  {
10  public:
11 
12  enum Type
13  {
15  };
16 
17  private:
18 
19  int mColumnId;
20  std::string mText;
21  double mLower;
22  double mUpper;
25 
26  public:
27 
28  ValueNode (int columnId, Type lowerType, Type upperType, double lower, double upper);
29 
30  virtual bool test (const CSMWorld::IdTableBase& table, int row,
31  const std::map<int, int>& columns) const;
34 
35  virtual std::vector<int> getReferencedColumns() const;
38 
39  virtual std::string toString (bool numericColumns) const;
43  };
44 }
45 
46 #endif
Type
Definition: valuenode.hpp:12
double mUpper
Definition: valuenode.hpp:22
Definition: leafnode.hpp:10
virtual std::vector< int > getReferencedColumns() const
Definition: valuenode.cpp:51
Type mLowerType
Definition: valuenode.hpp:23
int mColumnId
Definition: valuenode.hpp:19
Definition: valuenode.hpp:14
std::string mText
Definition: valuenode.hpp:20
virtual bool test(const CSMWorld::IdTableBase &table, int row, const std::map< int, int > &columns) const
Definition: valuenode.cpp:13
Definition: valuenode.hpp:8
virtual std::string toString(bool numericColumns) const
Definition: valuenode.cpp:56
ValueNode(int columnId, Type lowerType, Type upperType, double lower, double upper)
Definition: valuenode.cpp:9
Type mUpperType
Definition: valuenode.hpp:24
Definition: idtablebase.hpp:12
Definition: valuenode.hpp:14
Definition: valuenode.hpp:14
double mLower
Definition: valuenode.hpp:21