class Hp49FileWrite


Full nameHp49Calc::Hp49FileWrite
Definition#include <hp49calc.H>
InheritsHp49Calc::Hp49File [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

 Hp49FileWrite (string name, LogLevel lvl = NONE)

Constructor must be supplied with a file name

Parameters:
nameFile name
lvlLog level

 ~Hp49FileWrite ()

Error  open ()

The only supported file type to write to is a Hp49 String file, therefore, open() defaults to openString(). The way this is handled might change in the future.

Reimplemented from Hp49File.

Error  openString ()

Error  close ()

Very important that this is called or data bytes might be missing.

Reimplemented from Hp49File.

bool  writeNibble (unsigned char&)

bool  writeByte (unsigned char&)

Error  writeNibbles (unsigned long n, const int c_sz)

Writes specified number of nibbles from long integer to a Hp49 file. Therefore the first written nibble is the least significant and the last is the most significant.

Parameters:
nreturned result of nibbles read
c_sznumber of nibbles to read

Error  writeBytes (string)

Error  writeData (string data)

Writes specified string of bytes of data to Hp49 file. This method lacks the function to handle multiple writes! In an attempt to append data will corrupt the Hp49 binary file. This will be fixed if I become bored or find a real reason for it.

Parameters:
dataString to store data into.


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