ATLAS Offline Software
Loading...
Searching...
No Matches
natomsHandler.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
6#include <iostream>
7
8natomsHandler::natomsHandler(const std::string& s,
10 : XMLHandler(s, c)
11{
12}
13
15 xercesc::DOMNode *t)
16{
17 bool res;
18 int natoms=getAttributeAsInt(c, t, "n",res);
19 m_natoms.push_back (natoms);
20}
21
22
23std::vector<int> natomsHandler::GetNatoms()
24{
25 std::vector<int> v;
26 v.swap (m_natoms);
27 return v;
28}
std::pair< std::vector< unsigned int >, bool > res
int getAttributeAsInt(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
XMLHandler(const std::string &n, AGDDController &c)
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
std::vector< int > m_natoms
std::vector< int > GetNatoms()
natomsHandler(const std::string &, AGDDController &c)