ATLAS Offline Software
Loading...
Searching...
No Matches
HAuxContainerCnv_v1.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5// $Id$
12
13
14#include "HAuxContainerCnv_v1.h"
18
19
20namespace DMTest {
21
22
26
27
30 MsgStream& /*log*/ )
31{
32 newObj->resize(0);
33
34 DMTest::HVec_v1 oldInt;
35 for (size_t i = 0; i < oldObj->size(); i++)
36 oldInt.push_back (new DMTest::H_v1);
37 oldInt.setStore (oldObj);
38
39 DMTest::HVec newInt;
40 newInt.setStore (newObj);
41
42 for( const DMTest::H_v1* oldh : oldInt ) {
43 DMTest::H* newh = new DMTest::H;
44 newInt.push_back( newh );
45
46 newh->setAFloat (oldh->anInt() + 0.5);
47 }
48}
49
50
53 MsgStream& )
54{
55 std::abort();
56}
57
58
59} // namespace DMTest
Test for xAOD schema evolution.
Test for xAOD schema evolution.
Test for xAOD schema evolution.
virtual void persToTrans(const DMTest::HAuxContainer_v1 *oldObj, DMTest::HAuxContainer *newObj, MsgStream &log) override
virtual void transToPers(const DMTest::HAuxContainer *, DMTest::HAuxContainer_v1 *, MsgStream &log) override
void setAFloat(float i)
value_type push_back(value_type pElem)
Add an element to the end of the collection.
virtual bool resize(size_t size) override
Resize the arrays to a given size.
virtual size_t size() const override
Get the size of the container.
Definition B.h:23