OpenDDS::DCPS::PartitionName Class Reference

List of all members.

Public Member Functions

 PartitionName (const char *name)
bool matches (const PartitionName &n)

Private Attributes

const char * name_
bool wildcard_

Detailed Description

Definition at line 39 of file DCPS_Utils.cpp.


Constructor & Destructor Documentation

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)) {}


Member Function Documentation

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   }


Member Data Documentation

const char* OpenDDS::DCPS::PartitionName::name_ [private]

Definition at line 60 of file DCPS_Utils.cpp.

Referenced by matches().

bool OpenDDS::DCPS::PartitionName::wildcard_ [private]

Definition at line 61 of file DCPS_Utils.cpp.

Referenced by matches().


The documentation for this class was generated from the following file:
Generated on Fri Feb 12 20:06:14 2016 for OpenDDS by  doxygen 1.4.7