nfile.h File Reference

Deals with reading and writing packet trees to and from old-style binary files. More...

#include "shareableobject.h"
#include "file/nresources.h"
#include "maths/nlargeinteger.h"
#include "utilities/nbooleans.h"


Classes

class  regina::NFile
 Represents an old-style binary file containing a packet tree. More...

Namespaces

namespace  regina
 Contains the entire Regina calculation engine.

Defines

#define NFILE_PROGRAM_NAME   "Regina"
 String name of the program, to be placed at the beginning of data files.
#define NFILE_SIZE_INT   4
 The number of bytes written to files to represent an integer; any higher order bytes will be ignored.
#define NFILE_SIZE_LONG   8
 The number of bytes written to files to represent a long integer; any higher order bytes will be ignored.
#define NFILE_SIZE_FILEPOS   8
 The number of bytes written to files to represent a file position; any higher order bytes will be ignored.

Functions

NPacket * regina::readFromFile (const char *fileName)
 Reads a packet tree from the given old-style binary file doing everything in a single step.
bool regina::writeToFile (const char *fileName, NPacket *packet)
 Writes the given packet tree to the given old-style binary file doing everything in a single step.


Detailed Description

Deals with reading and writing packet trees to and from old-style binary files.

Deprecated:
The preferred way of representing data is using XML which is accessed using text I/O streams. See file nxmlfile.h for XML routines corresponding to the old-style binary file routines declared in this header.

Copyright © 1999-2009, Ben Burton
This software is released under the GNU General Public License.
For further information, or to submit a bug or other problem, please contact Ben Burton (bab@debian.org).