diff options
| author | Thales1330 <thaleslima.ufu@gmail.com> | 2016-12-13 21:38:03 -0200 |
|---|---|---|
| committer | Thales1330 <thaleslima.ufu@gmail.com> | 2016-12-13 21:38:03 -0200 |
| commit | e86a20525e9838f4b3962eb267ea51dce7e8fb77 (patch) | |
| tree | 0d54cff51a103800e9d416a553bbb6632d894e19 /Project/FileHanding.h | |
| parent | a235ce69803fb9b276ab682f9f15ddf30849372a (diff) | |
| download | PSP.git-e86a20525e9838f4b3962eb267ea51dce7e8fb77.tar.gz PSP.git-e86a20525e9838f4b3962eb267ea51dce7e8fb77.tar.xz PSP.git-e86a20525e9838f4b3962eb267ea51dce7e8fb77.zip | |
Bus open implemented, capacitor buggy
Diffstat (limited to 'Project/FileHanding.h')
| -rw-r--r-- | Project/FileHanding.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 |
