20#ifndef _TXT_OUT_FILE_H_
21#define _TXT_OUT_FILE_H_
52 virtual void Clean(
void );
56 virtual void InitTabs(
int n,
int m );
58 virtual void SetName(
const char* FileName );
62 virtual int Read(
const char* FileName );
64 virtual int Read(
void );
66 virtual int Write(
const char* FileName );
68 virtual int Write(
void );
Simple I/O functions class.
General output text file.
virtual int Read(void)
reads the [.czy] file defined by SetName function
virtual int Write(void)
writes the [.czy] file defined by SetName function
char cName[NCOL_MAX][32]
array of variable names - up to NCOL_MAX names, 32 characters each
int nCol
number of columns/variables (up to NCOL_MAX)
int * iObj
pointer to array [nRow] first column value (int)
virtual char * GetName(void)
returns pathname of the output text file
TXT_OUT_FILE(int iTypeIn=0)
constructor
double ** dResult
pointer to array (size depends on iType) containing the results for all variables
virtual void InitTabs(int n, int m)
initialises arrays (n - number of columns, m - number of rows )
virtual void CleanTabs(void)
cleans (deletes) arrays
virtual void SetName(const char *FileName)
set pathname for of the output text file
virtual void Clean(void)
cleans local variables
int iType
type of txt file - possible types: 0 - nCol x nRow - only double type values 1 - (nCol-1) x nRow ...
This file contains some smart I/O functions.