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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [src/] [librw11/] [Rw11UnitTerm.cpp] - Diff between revs 20 and 21

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

Rev 20 Rev 21
Line 1... Line 1...
// $Id: Rw11UnitTerm.cpp 508 2013-04-20 18:43:28Z mueller $
// $Id: Rw11UnitTerm.cpp 516 2013-05-05 21:24:52Z 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 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-05-03   515   1.1    use AttachDone(),DetachCleanup(),DetachDone()
// 2013-04-13   504   1.0    Initial version
// 2013-04-13   504   1.0    Initial version
// 2013-02-19   490   0.1    First draft
// 2013-02-19   490   0.1    First draft
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
 
 
/*!
/*!
  \file
  \file
  \version $Id: Rw11UnitTerm.cpp 508 2013-04-20 18:43:28Z mueller $
  \version $Id: Rw11UnitTerm.cpp 516 2013-05-05 21:24:52Z mueller $
  \brief   Implemenation of Rw11UnitTerm.
  \brief   Implemenation of Rw11UnitTerm.
*/
*/
 
 
#include "boost/thread/locks.hpp"
#include "boost/thread/locks.hpp"
#include "boost/bind.hpp"
#include "boost/bind.hpp"
Line 91... Line 92...
  fLogFname.clear();
  fLogFname.clear();
  if (fname.length() == 0) return;
  if (fname.length() == 0) return;
 
 
  RparseUrl purl;
  RparseUrl purl;
  RerrMsg emsg;
  RerrMsg emsg;
  if (!purl.Set(fname, "|app|crlf|", emsg))
  if (!purl.Set(fname, "|app|bck=|crlf|", emsg))
 
    throw Rexception(emsg);
 
  if (!Rtools::CreateBackupFile(purl, emsg))
    throw Rexception(emsg);
    throw Rexception(emsg);
 
 
  ios_base::openmode mode = ios_base::out;
  ios_base::openmode mode = ios_base::out;
  if (purl.FindOpt("app")) mode |= ios_base::app;
  if (purl.FindOpt("app")) mode |= ios_base::app;
 
 
Line 307... Line 310...
}
}
 
 
//------------------------------------------+-----------------------------------
//------------------------------------------+-----------------------------------
//! FIXME_docs
//! FIXME_docs
 
 
void Rw11UnitTerm::AttachSetup()
void Rw11UnitTerm::AttachDone()
{
{
  fpVirt->SetupRcvCallback(boost::bind(&Rw11UnitTerm::RcvCallback,
  fpVirt->SetupRcvCallback(boost::bind(&Rw11UnitTerm::RcvCallback,
                                           this, _1, _2));
                                           this, _1, _2));
  return;
  return;
}
}

powered by: WebSVN 2.1.0

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