]> git.tdb.fi Git - libs/datafile.git/blob - source/statement.cpp
Add binary data format
[libs/datafile.git] / source / statement.cpp
1 /* $Id: statement.h 19 2007-08-21 14:11:23Z tdb $
2
3 This file is part of libmspdatafile
4 Copyright © 2006  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #include <msp/strings/formatter.h>
9 #include "statement.h"
10
11 namespace Msp {
12 namespace DataFile {
13
14 std::string Statement::get_location() const
15 {
16         std::string result=source;
17         if(line)
18                 result+=format(":%d", line);
19         return result;
20 }
21
22 } // namespace DataFile
23 } // namespace Msp