43 |
|
#include <set> |
44 |
|
#include <string> |
45 |
|
#include <map> |
46 |
< |
|
46 |
> |
#include "brains/SimInfo.hpp" |
47 |
|
#include "utils/BitSet.hpp" |
48 |
|
namespace oopse { |
49 |
|
|
59 |
|
public: |
60 |
|
NameFinder(SimInfo* info); |
61 |
|
~NameFinder(); |
62 |
< |
bool match(const std::string& name, BitSet& bs); |
62 |
> |
BitSet match(const std::string& name); |
63 |
|
|
64 |
|
private: |
65 |
|
void loadNames(); |
67 |
|
void matchStuntDouble(const std::string& molName, const std::string& sdName, BitSet& bs); |
68 |
|
void matchRigidAtoms(const std::string& molName, const std::string& rbName, const std::string& rbAtomName, BitSet& bs); |
69 |
|
|
70 |
+ |
TreeNode* createNode(TreeNode* parent, const std::string& name); |
71 |
|
std::vector<TreeNode*> getMatchedChildren(TreeNode* node, const std::string& name); |
72 |
|
bool isMatched(const std::string& str, const std::string& wildcard); |
73 |
|
|