00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef PARTSUBSET_H
00016 #define PARTSUBSET_H
00017
00018 #include "pandabase.h"
00019 #include "globPattern.h"
00020
00021
00022
00023
00024
00025
00026
00027
00028 class EXPCL_PANDA_CHAN PartSubset {
00029 PUBLISHED:
00030 PartSubset();
00031 PartSubset(const PartSubset ©);
00032 void operator = (const PartSubset ©);
00033
00034 void add_include_joint(const GlobPattern &name);
00035 void add_exclude_joint(const GlobPattern &name);
00036
00037 void append(const PartSubset &other);
00038
00039 void output(ostream &out) const;
00040
00041 bool is_include_empty() const;
00042 bool matches_include(const string &joint_name) const;
00043 bool matches_exclude(const string &joint_name) const;
00044
00045 private:
00046 typedef pvector<GlobPattern> Joints;
00047 Joints _include_joints;
00048 Joints _exclude_joints;
00049 };
00050
00051 INLINE ostream &operator << (ostream &out, const PartSubset &subset) {
00052 subset.output(out);
00053 return out;
00054 }
00055
00056 #include "partSubset.I"
00057
00058 #endif
00059