Commit 8b40744f authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

append full blocks to FREE

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 1602
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent d37382c0
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: sffxx.cc,v 1.9 2004-04-07 13:22:49 tforb Exp $
* $Id: sffxx.cc,v 1.10 2004-12-23 11:34:26 tforb Exp $
* \author Thomas Forbriger
* \date 21/12/2003
*
......@@ -18,13 +18,14 @@
* - 07/04/2004 V1.2
* - provide debug output
* - correct reading of FREE block
* - 23/12/2004 V1.3 added full block append to FREE
*
* ============================================================================
*/
#define TF_SFFXX_CC_VERSION \
"TF_SFFXX_CC V1.2"
"TF_SFFXX_CC V1.3"
#define TF_SFFXX_CC_CVSID \
"$Id: sffxx.cc,v 1.9 2004-04-07 13:22:49 tforb Exp $"
"$Id: sffxx.cc,v 1.10 2004-12-23 11:34:26 tforb Exp $"
#include<sstream>
#include <sffxx.h>
......@@ -287,6 +288,16 @@ namespace sff {
}
} // FREE::read
void FREE::append(const Tlines& lines)
{
Tlines::const_iterator I(lines.begin());
while (I != lines.end())
{
this->append(*I);
++I;
}
} // void FREE::append(const Tlines& lines)
/*----------------------------------------------------------------------*/
// WID2
// ----
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: sffxx.h,v 1.17 2004-04-07 13:22:50 tforb Exp $
* $Id: sffxx.h,v 1.18 2004-12-23 11:34:26 tforb Exp $
* \author Thomas Forbriger
* \date 21/12/2003
*
......@@ -19,6 +19,7 @@
* - 11/01/2004 V1.2
* - FileHeader modification functions
* - TraceHeader modification functions
* - 23/12/2004 V1.3 added full block append to FREE
*
* ============================================================================
*/
......@@ -27,9 +28,9 @@
#ifndef TF_SFFXX_H_VERSION
#define TF_SFFXX_H_VERSION \
"TF_SFFXX_H V1.2 "
"TF_SFFXX_H V1.3"
#define TF_SFFXX_H_CVSID \
"$Id: sffxx.h,v 1.17 2004-04-07 13:22:50 tforb Exp $"
"$Id: sffxx.h,v 1.18 2004-12-23 11:34:26 tforb Exp $"
#include<string>
#include<cmath>
......@@ -100,6 +101,8 @@ namespace sff {
void write(std::ostream& os) const;
void read(std::istream& is, const bool& debug=false);
void append(const std::string& line) { lines.push_back(line); }
void append(const Tlines& lines);
void append(const FREE& free) { this->append(free.lines); }
Tlines lines;
}; // struct FREE
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment