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
18
19class Placement {
20public:
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
49private:
51 long unsigned m_technology;
53 std::string m_fileName;
55 std::string m_containerName;
57 std::string m_auxString;
58};
59
60#endif
This class holds all the necessary information to guide the writing of an object in a physical place.
Definition Placement.h:19
long unsigned m_technology
Technology identifier.
Definition Placement.h:51
const std::string & auxString() const
Access auxiliary string.
Definition Placement.h:40
Placement & setContainerName(const std::string &containerName)
Set container name.
Definition Placement.h:34
std::string m_fileName
File name.
Definition Placement.h:53
std::string m_containerName
Container name.
Definition Placement.h:55
const std::string & containerName() const
Access container name.
Definition Placement.h:32
Placement & setFileName(const std::string &fileName)
Set file name.
Definition Placement.h:30
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:38
Placement & setAuxString(const std::string &auxString)
Set auxiliary string.
Definition Placement.h:42
const std::string & fileName() const
Access file name.
Definition Placement.h:28
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:57
int technology() const
Access technology type.
Definition Placement.h:36