ATLAS Offline Software
Loading...
Searching...
No Matches
SGFolderItem.h
Go to the documentation of this file.
1/* -*- C++ -*- */
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
10#ifndef SGTOOLS_FOLDERITEM_H
11#define SGTOOLS_FOLDERITEM_H
12#include <string>
13#include "GaudiKernel/ClassID.h"
14namespace SG {
24 class FolderItem {
25 public:
26 FolderItem(CLID id=CLID_NULL,
27 const std::string& key="",
28 bool exact = false)
29 : m_id(id), m_key(key), m_exact(exact) {}
30 CLID id() const { return m_id; }
31 const std::string& key() const { return m_key; }
32 bool operator < (const FolderItem& rhs) const {
33 return ( id() < rhs.id() ||
34 ( (id() == rhs.id()) && key() < rhs.key()) );
35 }
36 bool isFolder() const;
37 bool exact() const { return m_exact; }
38 private:
40 std::string m_key;
41 bool m_exact;
42 };
43} //ns SG
44
45#endif
uint32_t CLID
The Class ID type.
std::string m_key
bool operator<(const FolderItem &rhs) const
CLID id() const
const std::string & key() const
FolderItem(CLID id=CLID_NULL, const std::string &key="", bool exact=false)
bool isFolder() const
bool exact() const
Forward declaration.