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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.7/] [tools/] [src/] [librtools/] [Rtools.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-03-12   368   1.0    Initial version
17
// ---------------------------------------------------------------------------
18
 
19
/*!
20
  \file
21
  \version $Id:  $
22
  \brief   Implemenation of Rtools .
23
*/
24
 
25
#include <stdexcept>
26
 
27
#include "Rtools.hpp"
28
 
29
using namespace std;
30
using namespace Retro;
31
 
32
/*!
33
  \class Retro::Rtools
34
  \brief FIXME_docs
35
*/
36
 
37
//------------------------------------------+-----------------------------------
38
//! FIXME_docs
39
 
40
std::string Rtools::Flags2String(uint32_t flags, const RflagName* fnam,
41
                                 char delim)
42
{
43
  if (fnam == 0)
44
    throw invalid_argument("Rtools::Flags2String: fnam==NULL");
45
 
46
  string rval;
47
  while (fnam->mask) {
48
    if (flags & fnam->mask) {
49
      if (!rval.empty()) rval += delim;
50
      rval += fnam->name;
51
    }
52
    fnam++;
53
  }
54
  return rval;
55
}
56
 
57
 
58
//------------------------------------------+-----------------------------------
59
#if (defined(Retro_NoInline) || defined(Retro_Rtools_NoInline))
60
#define inline
61
//#include "Rtools.ipp"
62
#undef  inline
63
#endif

powered by: WebSVN 2.1.0

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