OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [src/] [librtools/] [RosPrintfBase.cpp] - Blame information for rev 40

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 wfjm
// $Id: RosPrintfBase.cpp 488 2013-02-16 18:49:47Z mueller $
2 10 wfjm
//
3
// Copyright 2011- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4
//
5
// This program is free software; you may redistribute and/or modify it under
6
// the terms of the GNU General Public License as published by the Free
7
// Software Foundation, either version 2, or at your option any later version.
8
//
9
// This program is distributed in the hope that it will be useful, but
10
// WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
11
// or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12
// for complete details.
13
// 
14
// Revision History: 
15
// Date         Rev Version  Comment
16
// 2011-02-25   364   1.0    Initial version
17
// ---------------------------------------------------------------------------
18
 
19
/*!
20
  \file
21 19 wfjm
  \version $Id: RosPrintfBase.cpp 488 2013-02-16 18:49:47Z mueller $
22 10 wfjm
  \brief   Implemenation of RosPrintfBase .
23
*/
24
 
25
#include <sstream>
26
 
27
#include "RosPrintfBase.hpp"
28
 
29
using namespace std;
30
 
31 19 wfjm
// all method definitions in namespace Retro
32
namespace Retro {
33
 
34 10 wfjm
//------------------------------------------+-----------------------------------
35
/*!
36
  \relates RosPrintfBase
37
  \brief string insertion
38
*/
39
 
40 19 wfjm
std::string& operator<<(std::string& os, const RosPrintfBase& obj)
41 10 wfjm
{
42
  std::ostringstream sos;
43
  obj.ToStream(sos);
44
  os += sos.str();
45
  return os;
46
}
47
 
48 19 wfjm
} // end namespace Retro

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.