ATLAS Offline Software
Loading...
Searching...
No Matches
Shape.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//====================================================================
6// Shape definition file
7//--------------------------------------------------------------------
8//
9// Author : M.Frank
10//====================================================================
11#ifndef POOL_SHAPE_H
12#define POOL_SHAPE_H
13
14// Framework include files
16#include <string>
17
18/*
19 * POOL namespace
20 */
21namespace pool {
22
35 class Shape {
36 protected:
39 public:
41 Shape() { }
43 virtual ~Shape() { }
45 const Guid& shapeID() const { return m_id; }
46 Guid& shapeID() { return m_id; }
48 void setShapeID(const Guid& id) { m_id=id; }
49 Guid& setShapeID(const std::string &id) { m_id.fromString(id); return shapeID(); }
50 };
51} // End namespace pool
52#endif // POOL_SHAPE_H
This file contains the class definition for the Guid class (migrated from POOL).
Guid & setShapeID(const std::string &id)
Definition Shape.h:49
const Guid & shapeID() const
Access database identifier.
Definition Shape.h:45
virtual ~Shape()
Standard Destructor.
Definition Shape.h:43
Shape()
Standard Constructor.
Definition Shape.h:41
Guid & shapeID()
Definition Shape.h:46
void setShapeID(const Guid &id)
Access database identifier.
Definition Shape.h:48
Guid m_id
Object global identifier.
Definition Shape.h:38
pool namespace
Definition libname.h:15