Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
canvas
canvas
Persistency
Provenance
ProductID.cc
Go to the documentation of this file.
1
#include "
canvas/Persistency/Provenance/ProductID.h
"
2
#include "
cetlib/crc32.h
"
3
4
#include <ostream>
5
6
namespace
art
{
7
8
ProductID::ProductID
(
std::string
const
&
canonicalProductName
)
9
:
ProductID
{
toID
(canonicalProductName)}
10
{}
11
12
void
13
ProductID::setID
(
std::string
const
&
canonicalProductName
)
14
{
15
value_
=
toID
(canonicalProductName);
16
}
17
18
ProductID::value_type
19
ProductID::toID
(
std::string
const
&
canonicalProductName
)
20
{
21
return
cet::crc32
{canonicalProductName}.
digest
();
22
}
23
24
std::ostream&
25
operator<<
(std::ostream& os,
ProductID
const
id
)
26
{
27
os <<
id
.value();
28
return
os;
29
}
30
}
string
std::string string
Definition:
nybbler.cc:12
art::ProductID::ProductID
constexpr ProductID()=default
ProductID.h
crc32.h
art::operator<<
std::ostream & operator<<(std::ostream &os, const GroupSelector &gs)
Definition:
GroupSelector.cc:62
art::ProductID::value_type
unsigned int value_type
Definition:
ProductID.h:17
art::canonicalProductName
std::string canonicalProductName(std::string const &friendlyClassName, std::string const &moduleLabel, std::string const &productInstanceName, std::string const &processName)
Definition:
canonicalProductName.cc:9
art::ProductID::setID
void setID(std::string const &canonicalProductName)
Definition:
ProductID.cc:13
art::ProductID::toID
static value_type toID(std::string const &branchName)
Definition:
ProductID.cc:19
art::ProductID::value_
value_type value_
Definition:
ProductID.h:86
art
Definition:
BasicOptionsHandler.h:9
cet::crc32::digest
constexpr digest_t digest() const
Definition:
crc32.h:138
art::ProductID
Definition:
ProductID.h:15
cet::crc32
Definition:
crc32.h:19
Generated by
1.8.11