/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Private Attributes
CompareByName Class Reference
Inheritance diagram for CompareByName:
Inheritance graph
[legend]
Collaboration diagram for CompareByName:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CompareByName (const std::string &name)
bool check (const DayaBay::HeaderObject &ho)

Private Attributes

std::string m_name

Detailed Description

Definition at line 158 of file HeaderObject.cc.


Constructor & Destructor Documentation

CompareByName::CompareByName ( const std::string &  name) [inline]

Definition at line 161 of file HeaderObject.cc.

: m_name(name) {}

Member Function Documentation

bool CompareByName::check ( const DayaBay::HeaderObject ho) [inline, virtual]

Implements HeaderCompare.

Definition at line 162 of file HeaderObject.cc.

                                              {
        if (m_name[0]=='/' && ho.registry()) {
            // Check full registry path
            if (ho.registry()->identifier() == m_name) {
                return true;
            }
        }
        else {
            // Check name only (not full path)
            if (ho.name() == '/' + m_name) {
                return true;
            }
        }
        return false;
    }

Member Data Documentation

std::string CompareByName::m_name [private]

Definition at line 159 of file HeaderObject.cc.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:58:11 for BaseEvent by doxygen 1.7.4