X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstatement.cpp;fp=source%2Fstatement.cpp;h=2df8b4cdde28e9019164977aa32b6771fbcd249f;hb=27630d44298cb67e075c166f4421288cc8ca117e;hp=0000000000000000000000000000000000000000;hpb=c4930d8d15a5a248ca921e0ed3f9bca8aa18b322;p=libs%2Fdatafile.git diff --git a/source/statement.cpp b/source/statement.cpp new file mode 100644 index 0000000..2df8b4c --- /dev/null +++ b/source/statement.cpp @@ -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 +#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