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 41 of file DCPS_Utils.cpp.


Constructor & Destructor Documentation

OpenDDS::DCPS::PartitionName::PartitionName ( const char *  name  )  [inline]

Definition at line 43 of file DCPS_Utils.cpp.

00044     : name_(name),
00045       wildcard_(is_wildcard(name)) {}


Member Function Documentation

bool OpenDDS::DCPS::PartitionName::matches ( const PartitionName n  )  [inline]

Definition at line 47 of file DCPS_Utils.cpp.

References name_, ACE_OS::strcmp(), ACE::wild_match(), and wildcard_.

Referenced by OpenDDS::DCPS::matches_name().

00047                                        {
00048     if (wildcard_ && n.wildcard_)
00049       return false; // wildcards never match
00050 
00051     if (wildcard_)
00052       return ACE::wild_match(n.name_, name_, true, true);
00053 
00054     else if (n.wildcard_)
00055       return ACE::wild_match(name_, n.name_, true, true);
00056 
00057     else
00058       return ACE_OS::strcmp(name_, n.name_) == 0;
00059   }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

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

Definition at line 62 of file DCPS_Utils.cpp.

Referenced by matches().

Definition at line 63 of file DCPS_Utils.cpp.

Referenced by matches().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1