Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

header.cc File Reference

#include "header.h"
#include "options.h"
#include "footprint.h"
#include <string.h>
#include <stdlib.h>
#include <iostream>

Include dependency graph for header.cc:

Include dependency graph

Go to the source code of this file.

Functions

void initheader ()
void addheaderitem (const char *descr, const char *value)
 
Id
header.h,v 1.4 2003/12/30 11:01:22 stoerr Exp
add item to header

void addheaderitem (const char *descr, const long value)
 add item to header

void writeheader (FILE *outfile)
 writes the header to a file

char * readheader (FILE *infile)
 reads header from a file. file is positioned on data, aferwards.


Variables

char eprotmagic1 [] = "HPS."
 header.cc -*- c++ -*- Hans-Peter Stoerr Mon Nov 10 2003
Id
header.cc,v 1.4 2003/12/29 18:06:31 stoerr Exp


char eprotmagic2 [] = "ErrorProtect"
char eprotversion [] = "(1.0,ecc-1.3.5)"
char * theheader = NULL


Function Documentation

void addheaderitem const char *  descr,
const long  value
 

add item to header

Definition at line 37 of file header.cc.

References headerlen, initheader(), and theheader.

Referenced by initheader(), protectfile(), and writeheader().

Here is the call graph for this function:

void addheaderitem const char *  descr,
const char *  value
 

Id
header.h,v 1.4 2003/12/30 11:01:22 stoerr Exp
add item to header

Definition at line 28 of file header.cc.

void initheader  ) 
 

Definition at line 17 of file header.cc.

References addheaderitem(), eprotmagic1, eprotmagic2, eprotversion, headerlen, and theheader.

Referenced by addheaderitem().

Here is the call graph for this function:

char* readheader FILE *  infile  ) 
 

reads header from a file. file is positioned on data, aferwards.

Definition at line 55 of file header.cc.

References crc(), eccfname, eprotmagic1, eprotmagic2, eprotversion, headerlen, progname, and theheader.

Referenced by correctfile().

Here is the call graph for this function:

void writeheader FILE *  outfile  ) 
 

writes the header to a file

Definition at line 46 of file header.cc.

References addheaderitem(), crc(), headerlen, and theheader.

Referenced by protectfile().

Here is the call graph for this function:


Variable Documentation

char eprotmagic1[] = "HPS."
 

header.cc -*- c++ -*- Hans-Peter Stoerr Mon Nov 10 2003

Id
header.cc,v 1.4 2003/12/29 18:06:31 stoerr Exp

Definition at line 11 of file header.cc.

Referenced by initheader(), and readheader().

char eprotmagic2[] = "ErrorProtect"
 

Definition at line 12 of file header.cc.

Referenced by initheader(), and readheader().

char eprotversion[] = "(1.0,ecc-1.3.5)"
 

Definition at line 13 of file header.cc.

Referenced by initheader(), and readheader().

char* theheader = NULL
 

Definition at line 15 of file header.cc.

Referenced by addheaderitem(), initheader(), readheader(), and writeheader().


Generated on Tue Dec 30 12:07:37 2003 for ErrorProtect by doxygen 1.3.2