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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [src/] [librtools/] [RerrMsg.hpp] - Diff between revs 10 and 19

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 10 Rev 19
Line 1... Line 1...
// $Id: RerrMsg.hpp 359 2011-02-06 22:37:43Z mueller $
// $Id: RerrMsg.hpp 493 2013-03-01 21:02:33Z mueller $
//
//
// Copyright 2011- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
// Copyright 2011-2013 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
//
//
// This program is free software; you may redistribute and/or modify it under
// This program is free software; you may redistribute and/or modify it under
// the terms of the GNU General Public License as published by the Free
// the terms of the GNU General Public License as published by the Free
// Software Foundation, either version 2, or at your option any later version.
// Software Foundation, either version 2, or at your option any later version.
//
//
Line 11... Line 11...
// or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
// or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
// for complete details.
// for complete details.
// 
// 
// Revision History: 
// Revision History: 
// Date         Rev Version  Comment
// Date         Rev Version  Comment
 
// 2013-01-12   474   1.2    add meth+text and meth+text+errnum ctors
// 2011-02-06   359   1.1    use references in interface
// 2011-02-06   359   1.1    use references in interface
// 2011-01-15   356   1.0    Initial version
// 2011-01-15   356   1.0    Initial version
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
 
 
 
 
/*!
/*!
  \file
  \file
  \version $Id: RerrMsg.hpp 359 2011-02-06 22:37:43Z mueller $
  \version $Id: RerrMsg.hpp 493 2013-03-01 21:02:33Z mueller $
  \brief   Declaration of class RerrMsg.
  \brief   Declaration of class RerrMsg.
*/
*/
 
 
#ifndef included_Retro_RerrMsg
#ifndef included_Retro_RerrMsg
#define included_Retro_RerrMsg 1
#define included_Retro_RerrMsg 1
Line 34... Line 35...
 
 
  class RerrMsg {
  class RerrMsg {
    public:
    public:
                    RerrMsg();
                    RerrMsg();
                    RerrMsg(const RerrMsg& rhs);
                    RerrMsg(const RerrMsg& rhs);
 
                    RerrMsg(const std::string& meth, const std::string& text);
 
                    RerrMsg(const std::string& meth, const std::string& text,
 
                            int errnum);
                    ~RerrMsg();
                    ~RerrMsg();
 
 
      void          Init(const std::string& meth, const std::string& text);
      void          Init(const std::string& meth, const std::string& text);
      void          InitErrno(const std::string& meth,
      void          InitErrno(const std::string& meth,
                              const std::string& text, int errnum);
                              const std::string& text, int errnum);
Line 54... Line 58...
 
 
      const std::string& Meth() const;
      const std::string& Meth() const;
      const std::string& Text() const;
      const std::string& Text() const;
      std::string   Message() const;
      std::string   Message() const;
 
 
      void          Grab(RerrMsg& rhs);
      void          Swap(RerrMsg& rhs);
 
 
      RerrMsg&      operator=(const RerrMsg& rhs);
      RerrMsg&      operator=(const RerrMsg& rhs);
                    operator std::string() const;
                    operator std::string() const;
 
 
    protected:
    protected:
Line 68... Line 72...
 
 
  std::ostream&     operator<<(std::ostream& os, const RerrMsg& obj);
  std::ostream&     operator<<(std::ostream& os, const RerrMsg& obj);
 
 
} // end namespace Retro
} // end namespace Retro
 
 
#if !(defined(Retro_NoInline) || defined(Retro_RerrMsg_NoInline))
 
#include "RerrMsg.ipp"
#include "RerrMsg.ipp"
#endif
 
 
 
#endif
#endif
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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