OpenMW
apps/opencs/model/filter/narynode.hpp
Go to the documentation of this file.
00001 #ifndef CSM_FILTER_NARYNODE_H
00002 #define CSM_FILTER_NARYNODE_H
00003 
00004 #include <vector>
00005 #include <string>
00006 
00007 #include <boost/shared_ptr.hpp>
00008 
00009 #include "node.hpp"
00010 
00011 namespace CSMFilter
00012 {
00013     class NAryNode : public Node
00014     {
00015             std::vector<boost::shared_ptr<Node> > mNodes;
00016             std::string mName;
00017 
00018         public:
00019 
00020             NAryNode (const std::vector<boost::shared_ptr<Node> >& nodes, const std::string& name);
00021 
00022             int getSize() const;
00023 
00024             const Node& operator[] (int index) const;
00025 
00026             virtual std::vector<int> getReferencedColumns() const;
00029 
00030             virtual std::string toString (bool numericColumns) const;
00034     };
00035 }
00036 
00037 #endif