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 10

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

Line No. Rev Author Line
1 10 wfjm
// $Id: $
2
//
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
  \version $Id:  $
22
  \brief   Implemenation of RosPrintfBase .
23
*/
24
 
25
#include <sstream>
26
 
27
#include "RosPrintfBase.hpp"
28
 
29
using namespace std;
30
using namespace Retro;
31
 
32
//------------------------------------------+-----------------------------------
33
/*!
34
  \relates RosPrintfBase
35
  \brief string insertion
36
*/
37
 
38
std::string& Retro::operator<<(std::string& os, const RosPrintfBase& obj)
39
{
40
  std::ostringstream sos;
41
  obj.ToStream(sos);
42
  os += sos.str();
43
  return os;
44
}
45
 
46
//------------------------------------------+-----------------------------------
47
#if (defined(Retro_NoInline) || defined(Retro_RosPrintfBase_NoInline))
48
#define inline
49
#include "RosPrintfBase.ipp"
50
#undef  inline
51
#endif

powered by: WebSVN 2.1.0

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