ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
PersistentDataModel
PersistentDataModel
Placement.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef PERSISTENTDATAMODEL_PLACEMENT_H
6
#define PERSISTENTDATAMODEL_PLACEMENT_H
7
12
13
#include <string>
14
#include <string_view>
15
19
20
class
Placement
{
21
public
:
23
Placement
();
24
26
Placement
(
const
std::string&
fileName
,
const
std::string&
containerName
,
long
technology
);
27
29
const
std::string&
fileName
()
const
{
return
m_fileName
; }
31
Placement
&
setFileName
(
const
std::string&
fileName
) {
m_fileName
=
fileName
;
return
*
this
; }
33
const
std::string&
containerName
()
const
{
return
m_containerName
; }
35
Placement
&
setContainerName
(
const
std::string&
containerName
) {
m_containerName
=
containerName
;
return
*
this
; }
37
int
technology
()
const
{
return
m_technology
; }
39
Placement
&
setTechnology
(
int
technology
) {
m_technology
=
technology
;
return
*
this
; }
41
const
std::string&
auxString
()
const
{
return
m_auxString
; }
43
Placement
&
setAuxString
(std::string&&
auxString
) {
m_auxString
= std::move(
auxString
);
return
*
this
; }
44
void
setAuxString
(std::string_view
auxString
) {
m_auxString
=
auxString
; }
45
47
const
std::string
toString
()
const
;
49
Placement
&
fromString
(
const
std::string& from);
50
51
private
:
53
long
unsigned
m_technology
;
55
std::string
m_fileName
;
57
std::string
m_containerName
;
59
std::string
m_auxString
;
60
};
61
62
#endif
Placement
This class holds all the necessary information to guide the writing of an object in a physical place.
Definition
Placement.h:20
Placement::setAuxString
Placement & setAuxString(std::string &&auxString)
Set auxiliary string.
Definition
Placement.h:43
Placement::m_technology
long unsigned m_technology
Technology identifier.
Definition
Placement.h:53
Placement::auxString
const std::string & auxString() const
Access auxiliary string.
Definition
Placement.h:41
Placement::setContainerName
Placement & setContainerName(const std::string &containerName)
Set container name.
Definition
Placement.h:35
Placement::m_fileName
std::string m_fileName
File name.
Definition
Placement.h:55
Placement::m_containerName
std::string m_containerName
Container name.
Definition
Placement.h:57
Placement::containerName
const std::string & containerName() const
Access container name.
Definition
Placement.h:33
Placement::setFileName
Placement & setFileName(const std::string &fileName)
Set file name.
Definition
Placement.h:31
Placement::Placement
Placement(const std::string &fileName, const std::string &containerName, long technology)
Constructor with initialization.
Placement::toString
const std::string toString() const
Retrieve the string representation of the placement.
Definition
Placement.cxx:15
Placement::Placement
Placement()
Default Constructor.
Definition
Placement.cxx:12
Placement::setTechnology
Placement & setTechnology(int technology)
Set technology type.
Definition
Placement.h:39
Placement::fileName
const std::string & fileName() const
Access file name.
Definition
Placement.h:29
Placement::setAuxString
void setAuxString(std::string_view auxString)
Definition
Placement.h:44
Placement::fromString
Placement & fromString(const std::string &from)
Build from the string representation of a placement.
Definition
Placement.cxx:28
Placement::m_auxString
std::string m_auxString
Auxiliary string.
Definition
Placement.h:59
Placement::technology
int technology() const
Access technology type.
Definition
Placement.h:37
Generated on
for ATLAS Offline Software by
1.17.0