sys-sage
Loading...
Searching...
No Matches
xml_load.hpp
1#ifndef XML_LOAD
2#define XML_LOAD
3
4#include <functional>
5
6#include "Component.hpp"
7#include "DataPath.hpp"
8
9//SVTODO make sure all functions from the .cpp are also in the header
10//SVTODO check the import and export functionalities and adapt them to Relations
11namespace sys_sage {
23 Component* importFromXml(std::string path, std::function<void*(xmlNodePtr)> search_custom_attrib_key_fcn = NULL, std::function<int(xmlNodePtr, Component*)> search_custom_complex_attrib_key_fcn = NULL);
24
32 std::string _getStringFromProp(xmlNodePtr n, std::string prop);
39 int _CreateRelations(xmlNodePtr relationNode);
40
47 Component* _CreateComponentSubtree(xmlNodePtr n);
55 void* _search_default_attrib_key(xmlNodePtr n);
64 int _search_default_complex_attrib_key(xmlNodePtr n, Component *c);
72 int _collect_attrib(xmlNodePtr n, Component* c);
73} //namespace sys_sage
74#endif
75