diff options
Diffstat (limited to 'slicer/xml/serializer.h')
-rw-r--r-- | slicer/xml/serializer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/slicer/xml/serializer.h b/slicer/xml/serializer.h index 5b738ca..1e5cc5f 100644 --- a/slicer/xml/serializer.h +++ b/slicer/xml/serializer.h @@ -7,11 +7,12 @@ namespace Slicer { class XmlSerializer : public Serializer { protected: - static void ModelTreeIterate(xmlpp::Element *, const std::string &, ModelPartPtr mp, HookCommonPtr hp); + typedef boost::function<xmlpp::Element *(xmlpp::Element *, const Glib::ustring &)> ElementCreator; + static void ModelTreeIterate(xmlpp::Element *, const std::string &, ModelPartPtr mp, HookCommonPtr hp, const ElementCreator &); static void ModelTreeIterateRoot(xmlpp::Document *, const std::string &, ModelPartPtr mp); private: - static void ModelTreeProcessElement(xmlpp::Element * n, ModelPartPtr mp); + static void ModelTreeProcessElement(xmlpp::Element * n, ModelPartPtr mp, const ElementCreator &); }; class XmlFileSerializer : public XmlSerializer { |