DataFormats
Provenance
interface
FileID.h
Go to the documentation of this file.
1
#ifndef DataFormats_Provenance_FileID_h
2
#define DataFormats_Provenance_FileID_h
3
4
/*----------------------------------------------------------------------
5
6
Holds a unique file identifier in string form.
7
8
----------------------------------------------------------------------*/
9
10
#include <string>
11
12
namespace
edm
{
13
14
class
FileID
{
15
public
:
16
FileID
() :
fid_
() {}
17
explicit
FileID
(
std::string
const
&
id
) :
fid_
(
id
) {}
18
bool
isValid
()
const
{
return
!
fid
().empty(); }
19
std::string
const
&
fid
()
const
{
return
fid_
; }
20
21
private
:
22
std::string
fid_
;
23
};
24
25
inline
bool
operator==
(
FileID
const
&
lh
,
FileID
const
& rh) {
return
lh
.fid() == rh.
fid
(); }
26
27
inline
bool
operator!=
(
FileID
const
&
lh
,
FileID
const
& rh) {
return
!(
lh
== rh); }
28
29
std::ostream&
operator<<
(std::ostream& os, FileID
const
&
id
);
30
}
// namespace edm
31
#endif
edm::FileID::fid_
std::string fid_
Definition:
FileID.h:22
edm::FileID::isValid
bool isValid() const
Definition:
FileID.h:18
edm::FileID::fid
std::string const & fid() const
Definition:
FileID.h:19
edm
HLT enums.
Definition:
AlignableModifier.h:19
mathSSE::lh
bool int lh
Definition:
SIMDVec.h:20
edm::FileID
Definition:
FileID.h:14
edm::FileID::FileID
FileID()
Definition:
FileID.h:16
edm::operator<<
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
Definition:
HLTGlobalStatus.h:106
edm::operator!=
bool operator!=(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
Definition:
debugging_allocator.h:75
edm::operator==
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
Definition:
debugging_allocator.h:72
edm::FileID::FileID
FileID(std::string const &id)
Definition:
FileID.h:17
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
triggerObjects_cff.id
id
Definition:
triggerObjects_cff.py:31
Generated for CMSSW Reference Manual by
1.8.16