VPTissue Reference Manual
XmlWriterSettings.h
Go to the documentation of this file.
1 #ifndef PTREE_SETTINGS_H_INCLUDED
2 #define PTREE_SETTINGS_H_INCLUDED
3 /*
4  * Copyright 2011-2016 Universiteit Antwerpen
5  *
6  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
7  * the European Commission - subsequent versions of the EUPL (the "Licence");
8  * You may not use this work except in compliance with the Licence.
9  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the Licence is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the Licence for the specific language governing
15  * permissions and limitations under the Licence.
16  */
22 #include <boost/property_tree/xml_parser.hpp>
23 #include <boost/version.hpp>
24 
25 namespace SimPT_Sim {
26 namespace Util {
27 
28 using namespace boost::property_tree;
29 using namespace boost::property_tree::xml_parser;
30 
35 {
36 public:
37 #if BOOST_VERSION >= 105600
38  static xml_writer_settings<typename ptree::key_type> GetTab()
39  {
40  return xml_writer_make_settings<ptree::key_type>('\t', 1);
41  }
42 #else
43  static xml_writer_settings<char> GetTab()
44  {
45  return xml_writer_make_settings('\t', 1);
46  }
47 #endif
48 };
49 
50 } // namespace
51 } // namespace
52 
53 #endif // end-of-include-guard
Settings for xml output of Property Trees (ptree).
Namespace for the core simulator.