ATLAS Offline Software
TestGaudiProperty.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 //
7 // $Id: TestGaudiProperty.cxx,v 1.3 2006-08-02 09:36:39 schaffer Exp $
8 //
9 // GaudiHistory/TestGaudiProperty.cpp
10 //
11 // Contains history information for a job. Imports all environment vars
12 // and info from uname
13 //
14 //
15 // @author: Charles Leggett
16 //
18 
19 #include "GaudiKernel/System.h"
20 #include "Gaudi/Property.h"
22 
23 #include <cstdlib>
24 #include <iostream>
25 
26 using std::string;
27 using std::ostream;
28 using std::endl;
29 using std::vector;
30 
31 //**********************************************************************
32 // Member functions.
33 //**********************************************************************
34 
35 // Constructor.
36 
37 TestGaudiProperty::TestGaudiProperty() : m_pptr(0), m_cptr(0)
38 {
39  m_ncprops.push_back(m_pptr);
40 }
41 
42 //**********************************************************************
43 
44 // Destructor.
45 
47 }
48 /*
49 void
50 //TestGaudiProperty::addProperty(const std::string& client, const Gaudi::Details::PropertyBase* prop) {
51 TestGaudiProperty::addProperty(const Gaudi::Details::PropertyBase* prop) {
52 // if (m_props.find(prop) == m_props.end()) {
53  //m_props.push_back( prop);
54  //m_ncprops.push_back( const_cast<Gaudi::Details::PropertyBase*>(prop));
55  //m_p1 = *prop;
56  //m_pptr = m_ncprops[0];
57  m_cptr = prop;
58  //m_cptr = m_props[0];
59 // }
60 }
61 */
62 
63 //**********************************************************************
64 // Free functions.
65 //**********************************************************************
66 
67 // Output stream.
68 
69 ostream& operator<<(ostream& lhs, const TestGaudiProperty& /*rhs*/) {
70  lhs << "Property: [" << endl;
71  lhs << "DUMB: ";
72  //rhs.property()->nameAndValueAsStream(lhs);
73  lhs << endl;
74  lhs << "]" << endl;
75  return lhs;
76 }
77 
78 //**********************************************************************
TestGaudiProperty::m_ncprops
std::vector< Gaudi::Details::PropertyBase * > m_ncprops
Definition: TestGaudiProperty.h:40
TestGaudiProperty::~TestGaudiProperty
~TestGaudiProperty()
Definition: TestGaudiProperty.cxx:46
TestGaudiProperty.h
TestGaudiProperty::TestGaudiProperty
TestGaudiProperty()
Definition: TestGaudiProperty.cxx:37
operator<<
ostream & operator<<(ostream &lhs, const TestGaudiProperty &)
Definition: TestGaudiProperty.cxx:69
TestGaudiProperty::m_pptr
Gaudi::Details::PropertyBase * m_pptr
Definition: TestGaudiProperty.h:38
TestGaudiProperty
Definition: TestGaudiProperty.h:26