From e86a20525e9838f4b3962eb267ea51dce7e8fb77 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Tue, 13 Dec 2016 21:38:03 -0200 Subject: Bus open implemented, capacitor buggy --- Project/FileHanding.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Project/FileHanding.h') diff --git a/Project/FileHanding.h b/Project/FileHanding.h index 5e06c3e..ba95177 100644 --- a/Project/FileHanding.h +++ b/Project/FileHanding.h @@ -24,7 +24,7 @@ public: void SetWorkspace(Workspace* workspace) { m_workspace = workspace; } void SaveProject(wxFileName path); - void OpenProject(wxFileName path); + bool OpenProject(wxFileName path); protected: Workspace* m_workspace; @@ -39,6 +39,9 @@ protected: void SetNodeAttribute(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* node, const char* atrName, wxString value); void SetNodeAttribute(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* node, const char* atrName, int value); void SetNodeAttribute(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* node, const char* atrName, double value); + double GetNodeValueDouble(rapidxml::xml_node<>* parent, const char* nodeName); + int GetNodeValueInt(rapidxml::xml_node<>* parent, const char* nodeName); + int GetAttributeValueInt(rapidxml::xml_node<>* parent, const char* nodeName, const char* atrName); }; #endif // FILEHANDING_H -- cgit