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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.61/] [tools/] [src/] [librwxxtpp/] [RtclRw11CntlFactory.cpp] - Diff between revs 19 and 20

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

Rev 19 Rev 20
Line 1... Line 1...
// $Id: RtclRw11CntlFactory.cpp 495 2013-03-06 17:13:48Z mueller $
// $Id: RtclRw11CntlFactory.cpp 504 2013-04-13 15:37:24Z mueller $
//
//
// Copyright 2013- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
// Copyright 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
Line 17... Line 17...
// 2013-02-09   489   0.1    First draft
// 2013-02-09   489   0.1    First draft
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
 
 
/*!
/*!
  \file
  \file
  \version $Id: RtclRw11CntlFactory.cpp 495 2013-03-06 17:13:48Z mueller $
  \version $Id: RtclRw11CntlFactory.cpp 504 2013-04-13 15:37:24Z mueller $
  \brief   Implemenation of global function RtclRw11CntlFactory.
  \brief   Implemenation of global function RtclRw11CntlFactory.
*/
*/
 
 
#include "tcl.h"
#include "tcl.h"
 
 
#include "RtclRw11CntlFactory.hpp"
#include "RtclRw11CntlFactory.hpp"
 
 
#include "RtclRw11CntlDL11.hpp"
#include "RtclRw11CntlDL11.hpp"
//#include "RtclRw11CntlRK11.hpp"
#include "RtclRw11CntlRK11.hpp"
 
 
using namespace std;
using namespace std;
 
 
// all method definitions in namespace Retro (avoid using in includes...)
// all method definitions in namespace Retro (avoid using in includes...)
namespace Retro {
namespace Retro {
Line 47... Line 47...
  if        (type == "dl11") {              // dl11 --------------------------
  if        (type == "dl11") {              // dl11 --------------------------
    unique_ptr<RtclRw11CntlDL11> pobj(new RtclRw11CntlDL11());
    unique_ptr<RtclRw11CntlDL11> pobj(new RtclRw11CntlDL11());
    if(pobj->FactoryCmdConfig(args, cpu) != TCL_OK) return TCL_ERROR;
    if(pobj->FactoryCmdConfig(args, cpu) != TCL_OK) return TCL_ERROR;
    pobj.release();
    pobj.release();
 
 
//  } else if (type == "rk11") {              // rk11 --------------------------
  } else if (type == "rk11") {              // rk11 --------------------------
//    unique_ptr<RtclRw11CntlRK11> pobj(new RtclRw11CntlRK11());
    unique_ptr<RtclRw11CntlRK11> pobj(new RtclRw11CntlRK11());
//    if(pobj->FactoryCmdConfig(args, cpu) != TCL_OK) return TCL_ERROR;
    if(pobj->FactoryCmdConfig(args, cpu) != TCL_OK) return TCL_ERROR;
//    pobj.release();
    pobj.release();
 
 
  } else {                                  // unknown cntl type -------------
  } else {                                  // unknown cntl type -------------
    return args.Quit(string("-E: unknown controller type '") + type + "'");
    return args.Quit(string("-E: unknown controller type '") + type + "'");
  }
  }
 
 

powered by: WebSVN 2.1.0

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