ATLAS Offline Software
Loading...
Searching...
No Matches
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
26using std::string;
27using std::ostream;
28using std::endl;
29using std::vector;
30
31//**********************************************************************
32// Member functions.
33//**********************************************************************
34
35// Constructor.
36
41
42//**********************************************************************
43
44// Destructor.
45
48/*
49void
50//TestGaudiProperty::addProperty(const std::string& client, const Gaudi::Details::PropertyBase* prop) {
51TestGaudiProperty::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
69ostream& 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//**********************************************************************
ostream & operator<<(ostream &lhs, const TestGaudiProperty &)
TestGaudiProperty class definition.
Gaudi::Details::PropertyBase * m_pptr
const Gaudi::Details::PropertyBase * m_cptr
std::vector< Gaudi::Details::PropertyBase * > m_ncprops