]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/statement.cpp
Add binary data format
[libs/datafile.git] / source / statement.cpp
diff --git a/source/statement.cpp b/source/statement.cpp
new file mode 100644 (file)
index 0000000..2df8b4c
--- /dev/null
@@ -0,0 +1,23 @@
+/* $Id: statement.h 19 2007-08-21 14:11:23Z tdb $
+
+This file is part of libmspdatafile
+Copyright © 2006  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
+#include <msp/strings/formatter.h>
+#include "statement.h"
+
+namespace Msp {
+namespace DataFile {
+
+std::string Statement::get_location() const
+{
+       std::string result=source;
+       if(line)
+               result+=format(":%d", line);
+       return result;
+}
+
+} // namespace DataFile
+} // namespace Msp