implemented import formats

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@102 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-09 23:22:33 +00:00
parent c130916465
commit a400644b25
12 changed files with 260 additions and 18 deletions
+7 -1
View File
@@ -40,12 +40,18 @@ class Defaultable {
/// Get access to the value
inline const T& operator () () const { return value; }
inline const T& get () const { return value; }
/// Get access to the value, for changing it
inline T& mutate () {
is_default = false;
return value;
}
/// Is this value in the default state?
inline bool isDefault() const { return is_default; }
/// Set the defaultness to true
inline void setDefault() { is_default = true; }
/// Set the defaultness to false
inline void unsetDefault() { is_default = false; }
/// Compare the values, ignore defaultness
/** used by scriptable to check for changes */