ATLAS Offline Software
View.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "AthViews/View.h"
6 
7 using namespace SG;
8 
9 View::View(const std::string& name, const int index, const bool AllowFallThrough, std::string const& storeName) {
10 
11  std::string fullName = name;
12  if ( index == -1 ) {
13  m_index = 0;
14  }
15  else {
16  m_index = index;
17  fullName += '_';
19  }
20 
21 #ifdef ATHVIEWS_DEBUG
22  m_implementation = new DebugView( fullName, AllowFallThrough, storeName );
23 #else
24  m_implementation = new SimpleView( fullName, AllowFallThrough, storeName );
25 #endif
26 }
27 
29  delete m_implementation;
30 }
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
index
Definition: index.py:1
SG::View::~View
virtual ~View()
Definition: View.cxx:28
WriteCellNoiseToCool.fullName
fullName
Definition: WriteCellNoiseToCool.py:461
SG::View::View
View()=delete
SimpleView
Very simple pass-through implementation of IProxyDict.
Definition: SimpleView.h:35
DebugView
Very simple pass-through implementation of IProxyDict.
Definition: DebugView.h:29
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
DeMoScan.index
string index
Definition: DeMoScan.py:364
SG::View::name
virtual const std::string & name() const
Definition: View.h:132
SG::View::m_implementation
SimpleView * m_implementation
Definition: View.h:141
View.h
SG::View::m_index
size_t m_index
Definition: View.h:150