X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fxml.h;h=f21edb4cb1da539764b4764b045172d540329deb;hb=2ae92dcc97765deb2845dd07a338858aeb375cb3;hp=5978ff7ec10d7346a941d5ebbb71297c3fc5b33c;hpb=797916ae28d976f3c5be62d37b45864219af6098;p=libdcp.git diff --git a/src/xml.h b/src/xml.h index 5978ff7e..f21edb4c 100644 --- a/src/xml.h +++ b/src/xml.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2013 Carl Hetherington + Copyright (C) 2013-2014 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,10 +20,10 @@ #ifndef LIBDCP_XML_H #define LIBDCP_XML_H -#include #include "exceptions.h" +#include -namespace libdcp +namespace dcp { template @@ -44,7 +44,7 @@ template boost::shared_ptr type_child (boost::shared_ptr node, std::string name) { return boost::shared_ptr (new T (node->node_child (name))); } - + template boost::shared_ptr optional_type_child (boost::shared_ptr node, std::string name) @@ -70,7 +70,7 @@ type_children (boost::shared_ptr node, std::string name) { return type_children (*node.get(), name); } - + template std::list > type_grand_children (cxml::Node const & node, std::string name, std::string sub) @@ -85,7 +85,7 @@ type_grand_children (boost::shared_ptr node, std::string name, { return type_grand_children (*node.get(), name, sub); } - + } #endif