fixed: GetMember works on values without save_value

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@130 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-19 22:16:29 +00:00
parent 2552afe8be
commit 2504eb908b
8 changed files with 10 additions and 5 deletions
+2
View File
@@ -27,6 +27,7 @@ class GetDefaultMember {
public:
/// Tell the reflection code we are not reading
inline bool reading() const { return false; }
inline bool scripting() const { return true; }
inline bool isComplex() const { return false; }
inline void addAlias(int, const Char*, const Char*) {}
inline void handleAppVersion() {} // no effect
@@ -67,6 +68,7 @@ class GetMember : private GetDefaultMember {
/// Tell the reflection code we are not reading
inline bool reading() const { return false; }
inline bool scripting() const { return true; }
inline bool isComplex() const { return false; }
inline void addAlias(int, const Char*, const Char*) {}
inline void handleAppVersion() {} // no effect
+2
View File
@@ -46,6 +46,8 @@ class Reader {
/// Tell the reflection code we are reading
inline bool reading() const { return true; }
/// Tell the reflection code we are not related to scripting
inline bool scripting() const { return false; }
/// Is the thing currently being read 'complex', i.e. does it have children
inline bool isComplex() const { return value.empty(); }
/// Add a as an alias for b, all keys a will be replaced with b, only if file_app_version < end_version
+1
View File
@@ -30,6 +30,7 @@ class Writer {
/// Tell the reflection code we are not reading
inline bool reading() const { return false; }
inline bool scripting() const { return false; }
inline bool isComplex() const { return false; }
inline void addAlias(int, const Char*, const Char*) {}