X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstatement.h;h=efc097bd7e11b4c100627fbd9dcf8a5776433cc0;hb=db9c49893c2a9475cb5efa4a53bc481a5f66231f;hp=6b3c54b8b7989d386fff3c3cb98ef3354f5433ad;hpb=8ff59df1f2e603557eceacbc81a8dc44de051dae;p=libs%2Fdatafile.git diff --git a/source/statement.h b/source/statement.h index 6b3c54b..efc097b 100644 --- a/source/statement.h +++ b/source/statement.h @@ -8,8 +8,6 @@ Distributed under the LGPL #define MSP_DATAFILE_STATEMENT_H_ #include -#include -#include #include "value.h" namespace Msp { @@ -26,8 +24,19 @@ public: std::list sub; Statement(): valid(false), line(0) { } - std::string get_location() const - { std::ostringstream ss; ss< + Statement &append(const T &v) + { + args.push_back(Value(v)); + return *this; + } + + template + Statement &operator,(const T &v) + { return append(v); } }; } // namespace DataFile