sys-sage
Loading...
Searching...
No Matches
xml_dump.hpp
1#ifndef XML_DUMP
2#define XML_DUMP
3
4#include <functional>
5
6#include "Component.hpp"
7#include "DataPath.hpp"
8
9namespace sys_sage{
22 int exportToXml(Component *root, std::string path = "", std::function<int(std::string, void *, std::string *)> search_custom_attrib_key_fcn = NULL, std::function<int(std::string, void *, xmlNodePtr)> search_custom_complex_attrib_key_fcn = NULL);
35 int _search_default_complex_attrib_key(std::string key, void* value, xmlNodePtr n);
48 int _search_default_attrib_key(std::string key, void *value, std::string *ret_value_str);
59 xmlNodePtr _buildComponentSubtree(Component* root);
70 int _print_attrib(std::map<std::string, void *> attrib, xmlNodePtr n);
71} //namespace sys_sage
72#endif