CHROMA
xml_group_reader.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Read an XML group as a std::string
4  */
5 
6 #ifndef __xml_group_reader_h__
7 #define __xml_group_reader_h__
8 
9 #include "chromabase.h"
10 
11 namespace Chroma
12 {
13 
14  //! Hold group xml and type id
15  /*! \ingroup io */
16  struct GroupXML_t
17  {
18  std::string xml; /*!< xml holding group */
19  std::string id; /*!< typeid within group */
20  std::string path; /*!< pathname of root */
21  };
22 
23 
24  //! Read group and return as a std::string
25  /*! \ingroup io */
26  GroupXML_t readXMLGroup(XMLReader& xml,
27  const std::string& path,
28  const std::string& type_name);
29 
30  //! Read group and return as a std::string
31  /*! \ingroup io */
32  multi1d<GroupXML_t> readXMLArrayGroup(XMLReader& xml,
33  const std::string& path,
34  const std::string& type_name);
35 
36 } //end namespace chroma
37 
38 #endif
Primary include file for CHROMA library code.
multi1d< GroupXML_t > readXMLArrayGroup(XMLReader &xml_in, const std::string &path, const std::string &type_name)
Read group and return as a std::string.
GroupXML_t readXMLGroup(XMLReader &xml_in, const std::string &path, const std::string &type_name)
Read group and return as a std::string.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Hold group xml and type id.