ATLAS Offline Software
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  */
21 namespace 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
pool::Shape::shapeID
const Guid & shapeID() const
Access database identifier.
Definition: Shape.h:45
pool
pool namespace
Definition: libname.h:15
pool::Shape
Definition: Shape.h:35
pool::Shape::~Shape
virtual ~Shape()
Standard Destructor.
Definition: Shape.h:43
pool::Shape::setShapeID
void setShapeID(const Guid &id)
Access database identifier.
Definition: Shape.h:48
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
Guid
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
Definition: Guid.h:20
Guid::fromString
const Guid & fromString(const std::string &s)
Automatic conversion from string representation.
Definition: Guid.cxx:65
pool::Shape::shapeID
Guid & shapeID()
Definition: Shape.h:46
pool::Shape::setShapeID
Guid & setShapeID(const std::string &id)
Definition: Shape.h:49
Guid.h
This file contains the class definition for the Guid class (migrated from POOL).
pool::Shape::m_id
Guid m_id
Object global identifier.
Definition: Shape.h:38
pool::Shape::Shape
Shape()
Standard Constructor.
Definition: Shape.h:41