libpniio
data_node.hpp
Go to the documentation of this file.
1 //
2 // (c) Copyright 2013 DESY, Eugen Wintersberger <eugen.wintersberger@desy.de>
3 //
4 // This file is part of libpniio.
5 //
6 // libpniio is free software: you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation, either version 2 of the License, or
9 // (at your option) any later version.
10 //
11 // libpniio is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with libpniio. If not, see <http://www.gnu.org/licenses/>.
18 // ===========================================================================
19 // Created on: Jul 15, 2013
20 // Author: Eugen Wintersberger <eugen.wintersberger@desy.de>
21 //
22 #pragma once
23 
24 #include <pni/core/types.hpp>
25 #include "node.hpp"
26 
27 
28 namespace pni{
29 namespace io{
30 namespace nx{
31 namespace xml{
32 
39  class data_node
40  {
41  public:
42 
53  static pni::core::string read(const node &n);
54 
55  //----------------------------------------------------------------
65  static void write(node &n,const pni::core::string &data);
66 
67  };
68 
69 
70 //end of namespace
71 }
72 }
73 }
74 }
Definition: cbf_reader.hpp:41
static void write(node &n, const pni::core::string &data)
write data to node
Definition: data_node.cpp:47
boost::property_tree::ptree node
alias for ptree
Definition: node.hpp:39
static pni::core::string read(const node &n)
read data from node
Definition: data_node.cpp:34
node IO
Definition: data_node.hpp:39