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

added modification functions

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: 1448
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 7f9c682c
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: sffxx.h,v 1.7 2003-12-30 17:18:53 tforb Exp $
* $Id: sffxx.h,v 1.8 2004-01-11 17:54:04 tforb Exp $
* \author Thomas Forbriger
* \date 21/12/2003
*
......@@ -16,6 +16,9 @@
* - 23/12/2003 V1.1
* - first version writing SFF successfully
* - starting with reading code
* - 11/01/2004 V1.2
* - FileHeader modification functions
* - TraceHeader modification functions
*
* ============================================================================
*/
......@@ -24,9 +27,9 @@
#ifndef TF_SFFXX_H_VERSION
#define TF_SFFXX_H_VERSION \
"TF_SFFXX_H V1.1 "
"TF_SFFXX_H V1.2 "
#define TF_SFFXX_H_CVSID \
"$Id: sffxx.h,v 1.7 2003-12-30 17:18:53 tforb Exp $"
"$Id: sffxx.h,v 1.8 2004-01-11 17:54:04 tforb Exp $"
#include<string>
#include<list>
......@@ -174,6 +177,10 @@ namespace sff {
const SRCE& srce() const { return(Msrce); }
const bool& hassrce() const { return(Mstat.hassrce); }
const bool& hasfree() const { return(Mstat.hasfree); }
void appendfree(const std::string& line)
{ Mstat.hasfree=true; Mfree.lines.push_back(line); }
void setsrce(const SRCE& srce)
{ Mstat.hassrce=true; Msrce=srce; }
private:
STAT Mstat;
FREE Mfree;
......@@ -225,6 +232,12 @@ namespace sff {
const bool& scale() const { return(Mscale); }
const bool& hasinfo() const { return(Mdast.hasinfo); }
const bool& hasfree() const { return(Mdast.hasfree); }
void setlast(const bool& flag) { Mdast.last=flag; }
void setwid2(const WID2& wid2line) { Mwid2=wid2line; }
void setinfo(const INFO& infoline)
{ Mdast.hasinfo=true; Minfo=infoline; }
void appendfree(const std::string& line)
{ Mdast.hasfree=true; Mfree.lines.push_back(line); }
private:
WID2 Mwid2;
DAST Mdast;
......
Supports Markdown
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