mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 21:27:01 -04:00
improved handling of aliasses and warnings
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@51 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -42,6 +42,8 @@ class Reader {
|
||||
/** Used for "include file" keys. */
|
||||
Reader(const String& filename);
|
||||
|
||||
~Reader() { showWarnings(); }
|
||||
|
||||
/// Tell the reflection code we are reading
|
||||
inline bool reading() const { return true; }
|
||||
/// Is the thing currently being read 'complex', i.e. does it have children
|
||||
@@ -52,8 +54,10 @@ class Reader {
|
||||
/// Read and check the application version
|
||||
void handleAppVersion();
|
||||
|
||||
/// Show a warning message, but continue reading
|
||||
/// Add a warning message, but continue reading
|
||||
void warning(const String& msg);
|
||||
/// Show all warning messages, but continue reading
|
||||
void showWarnings();
|
||||
|
||||
// --------------------------------------------------- : Handling objects
|
||||
/// Handle an object: read it if it's name matches
|
||||
@@ -111,6 +115,8 @@ class Reader {
|
||||
InputStreamP input;
|
||||
/// Text stream wrapping the input stream
|
||||
wxTextInputStream stream;
|
||||
/// Accumulated warning messages
|
||||
String warnings;
|
||||
|
||||
// --------------------------------------------------- : Reading the stream
|
||||
|
||||
|
||||
Reference in New Issue
Block a user