]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/loader.h
Provide access to the keyword of the current statement
[libs/datafile.git] / source / loader.h
index 8a1103d11f14d4c251033a20a1189a2a886599e8..fe928048508d208aafe339def238a4cdc722dc2d 100644 (file)
@@ -141,6 +141,10 @@ protected:
        source may not necessarily be a file. */
        const std::string &get_source() const;
 
+       /** Returns the keyword of the statement being processed.  Can be used to
+       implement dynamic keywords. */
+       const std::string &get_keyword() const;
+
        virtual void finish() { }
 };