summaryrefslogtreecommitdiff
path: root/i/simulotron/src/gs/gs_message.cc
diff options
context:
space:
mode:
Diffstat (limited to 'i/simulotron/src/gs/gs_message.cc')
-rw-r--r--i/simulotron/src/gs/gs_message.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/i/simulotron/src/gs/gs_message.cc b/i/simulotron/src/gs/gs_message.cc
index 541c14c..0ab8bb8 100644
--- a/i/simulotron/src/gs/gs_message.cc
+++ b/i/simulotron/src/gs/gs_message.cc
@@ -56,12 +56,21 @@ GSMessage::readGS(void * data, size_t size)
}
void
+GSMessage::getString(std::string & str)
+{
+ std::string tmp (igs_, gs_.end());
+ str.assign(tmp.c_str());
+ igs_ += str.size() + 1;
+}
+
+void
GSMessage::getString(std::string & str, size_t size)
{
str.assign(igs_, igs_ + size);
igs_ += size;
}
+///\todo Est-ce vraiment bien ca? et pourquoi une fct templaté?
void
GSMessage::appendGS (const void * data, size_t size)
{