Public Member Functions | |
PartitionName (const char *name) | |
bool | matches (const PartitionName &n) |
Private Attributes | |
const char * | name_ |
bool | wildcard_ |
Definition at line 39 of file DCPS_Utils.cpp.
OpenDDS::DCPS::PartitionName::PartitionName | ( | const char * | name | ) | [inline] |
Definition at line 41 of file DCPS_Utils.cpp.
00042 : name_(name), 00043 wildcard_(is_wildcard(name)) {}
bool OpenDDS::DCPS::PartitionName::matches | ( | const PartitionName & | n | ) | [inline] |
Definition at line 45 of file DCPS_Utils.cpp.
References name_, and wildcard_.
00045 { 00046 if (wildcard_ && n.wildcard_) 00047 return false; // wildcards never match 00048 00049 if (wildcard_) 00050 return ACE::wild_match(n.name_, name_, true, true); 00051 00052 else if (n.wildcard_) 00053 return ACE::wild_match(name_, n.name_, true, true); 00054 00055 else 00056 return ACE_OS::strcmp(name_, n.name_) == 0; 00057 }
const char* OpenDDS::DCPS::PartitionName::name_ [private] |
bool OpenDDS::DCPS::PartitionName::wildcard_ [private] |