From 3e8c8ff24a10796eb8dfb9ef4175c9b5184dd112 Mon Sep 17 00:00:00 2001 From: Philippe Hamelin Date: Wed, 26 Jan 2011 10:48:06 -0500 Subject: [PATCH] Add real-time output string stream. --- rtt/rt_string.hpp | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/rtt/rt_string.hpp b/rtt/rt_string.hpp index bfd97db..46f6617 100644 --- a/rtt/rt_string.hpp +++ b/rtt/rt_string.hpp @@ -41,12 +41,16 @@ #include "os/oro_allocator.hpp" #include +#include namespace RTT { /// Real-time allocatable, dynamically-sized string typedef std::basic_string, RTT::os::rt_allocator > rt_string; + /// Real-time allocatable, dynamically-size output string stream + typedef std::basic_ostringstream, RTT::os::rt_allocator > rt_ostringstream; + //! convert from real-time string to std::string inline std::string makeString(const RTT::rt_string& str) { -- 1.7.0.4