summaryrefslogtreecommitdiff
path: root/library/globalFunctions.h
diff options
context:
space:
mode:
Diffstat (limited to 'library/globalFunctions.h')
-rw-r--r--library/globalFunctions.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/library/globalFunctions.h b/library/globalFunctions.h
index 55e37c61..7f50f90a 100644
--- a/library/globalFunctions.h
+++ b/library/globalFunctions.h
@@ -4,6 +4,8 @@
#include <string>
#include <algorithm>
#include <wx/string.h>
+#include <fstream>
+#include <wx/stream.h>
using namespace std;
@@ -32,6 +34,12 @@ namespace globalFunctions
double wxStringToDouble(const wxString& number); //Convert wxString to number
wxString& includeNumberSeparator(wxString& number);
+
+ int readInt(ifstream& stream); //read int from file stream
+ void writeInt(ofstream& stream, const int number); //write int to filestream
+
+ int readInt(wxInputStream& stream); //read int from file stream
+ void writeInt(wxOutputStream& stream, const int number); //write int to filestream
}
bgstack15