ATLAS Offline Software
Loading...
Searching...
No Matches
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
20class Placement {
21public:
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; }
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
51private:
53 long unsigned m_technology;
55 std::string m_fileName;
57 std::string m_containerName;
59 std::string m_auxString;
60};
61
62#endif
This class holds all the necessary information to guide the writing of an object in a physical place.
Definition Placement.h:20
Placement & setAuxString(std::string &&auxString)
Set auxiliary string.
Definition Placement.h:43
long unsigned m_technology
Technology identifier.
Definition Placement.h:53
const std::string & auxString() const
Access auxiliary string.
Definition Placement.h:41
Placement & setContainerName(const std::string &containerName)
Set container name.
Definition Placement.h:35
std::string m_fileName
File name.
Definition Placement.h:55
std::string m_containerName
Container name.
Definition Placement.h:57
const std::string & containerName() const
Access container name.
Definition Placement.h:33
Placement & setFileName(const std::string &fileName)
Set file name.
Definition Placement.h:31
Placement(const std::string &fileName, const std::string &containerName, long technology)
Constructor with initialization.
const std::string toString() const
Retrieve the string representation of the placement.
Definition Placement.cxx:15
Placement()
Default Constructor.
Definition Placement.cxx:12
Placement & setTechnology(int technology)
Set technology type.
Definition Placement.h:39
const std::string & fileName() const
Access file name.
Definition Placement.h:29
void setAuxString(std::string_view auxString)
Definition Placement.h:44
Placement & fromString(const std::string &from)
Build from the string representation of a placement.
Definition Placement.cxx:28
std::string m_auxString
Auxiliary string.
Definition Placement.h:59
int technology() const
Access technology type.
Definition Placement.h:37