]> git.tdb.fi Git - libs/datafile.git/commitdiff
Add a getter for fallback in Collection
authorMikko Rasa <tdb@tdb.fi>
Tue, 24 Nov 2015 20:19:06 +0000 (22:19 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 24 Nov 2015 20:19:06 +0000 (22:19 +0200)
source/collection.h

index 612a0af01879deaac213f1883db29df76d3cd57d..06b8e348cbe3d2a7e16ce2735971802efa73a863 100644 (file)
@@ -284,6 +284,8 @@ protected:
        /** Sets a fallback collection, which will be consulted if an item is not
        found. */
        void set_fallback(Collection *);
+
+       Collection *get_fallback() const { return fallback; }
 };
 
 template<typename T>