class Hp49File

This is an abstract base class for all Hp49 files. More...

Contains pure virtuals
Full nameHp49Calc::Hp49File
Definition#include <hp49calc.H>
Inherited byHp49FileRead, Hp49FileWrite
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


Detailed Description

This is an abstract base class for all Hp49 files. All classes which inherit this one must have an open() method.

 Hp49File (string name, LogLevel lvl = NONE)

Constructor must be supplied with a file name

Parameters:
nameFile name
lvlLog level

 ~Hp49File ()

[virtual]

Error  open ()

[pure virtual]

Error  close ()

[virtual]

Error  createStream (int mode)

For any reading or writing file activity, a stream must be created.

Parameters:
modesame modes which would be passed to a fstream.open(...)

fstream&  getStream ()

string  getName ()

[const]

HpFileType  getType ()

[const]

unsigned long  getDataSize ()

[const]

This is the size of the data portion of the Hp49 file. I know this works properly for Hp49 string files but I have not tested it out with any other other types of files, so I do not know if this is consistant through out. Also the data part is the portion of bytes at the end of the file, but this might change in the future.

void  setType (HpFileType t)

[protected]

void  setDataSize (unsigned long s)

[protected]


Generated on Fri Mar 9 02:04:42 2001, using kdoc 2.0a43.