ATLAS Offline Software
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 
13 #include <string>
14 
19 class Placement {
20 public:
22  Placement();
23 
25  Placement(const std::string& fileName, const std::string& containerName, long technology);
26 
28  const std::string& fileName() const { return m_fileName; }
30  Placement& setFileName(const std::string& fileName) { m_fileName = fileName; return *this; }
32  const std::string& containerName() const { return m_containerName; }
34  Placement& setContainerName(const std::string& containerName) { m_containerName = containerName; return *this; }
36  int technology() const { return m_technology; }
40  const std::string& auxString() const { return m_auxString; }
42  Placement& setAuxString(const std::string& auxString) { m_auxString = auxString; return *this; }
43 
45  const std::string toString() const;
47  Placement& fromString(const std::string& from);
48 
49 private:
51  long unsigned m_technology;
53  std::string m_fileName;
55  std::string m_containerName;
57  std::string m_auxString;
58 };
59 
60 #endif
Placement
This class holds all the necessary information to guide the writing of an object in a physical place.
Definition: Placement.h:19
Placement::containerName
const std::string & containerName() const
Access container name.
Definition: Placement.h:32
Placement::technology
int technology() const
Access technology type.
Definition: Placement.h:36
Placement::setAuxString
Placement & setAuxString(const std::string &auxString)
Set auxiliary string.
Definition: Placement.h:42
Placement::setContainerName
Placement & setContainerName(const std::string &containerName)
Set container name.
Definition: Placement.h:34
Placement::m_auxString
std::string m_auxString
Auxiliary string.
Definition: Placement.h:57
Placement::m_containerName
std::string m_containerName
Container name.
Definition: Placement.h:55
Placement::m_fileName
std::string m_fileName
File name.
Definition: Placement.h:53
Placement::fileName
const std::string & fileName() const
Access file name.
Definition: Placement.h:28
Placement::setFileName
Placement & setFileName(const std::string &fileName)
Set file name.
Definition: Placement.h:30
Placement::auxString
const std::string & auxString() const
Access auxiliary string.
Definition: Placement.h:40
Placement::m_technology
long unsigned m_technology
Technology identifier.
Definition: Placement.h:51
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:38
Placement::Placement
Placement(const std::string &fileName, const std::string &containerName, long technology)
Constructor with initialization.
Placement::fromString
Placement & fromString(const std::string &from)
Build from the string representation of a placement.
Definition: Placement.cxx:28