#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <iostream>
#include <string>
#include <io.h>
#include <filemgr.h>
#include <lzsscomprs.h>
Go to the source code of this file.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 87 of file stepdump.cpp.
95 cerr <<
"usage: "<< *argv <<
" <database to step module>\n";
99 string bookpath = argv[1];
102 if ((argv[1][strlen(argv[1])-1] !=
'/') &&
103 (argv[1][strlen(argv[1])-1] !=
'\\'))
106 fileName = bookpath +
"Book.dat";
110 cerr <<
"error, couldn't open file: " << fileName <<
"\n";
119 fileName = bookpath +
"Viewable.idx";
123 cerr <<
"error, couldn't open file: " << fileName <<
"\n";
132 cout <<
"\n\nReading special preface viewable BLOCK 0";
141 cout <<
"\n\nReading " << nonGlossBlocksCount <<
" non-glossary viewable blocks";
143 for (
int i = 1; i < nonGlossBlocksCount; i++) {
144 cout <<
"\nNon-Glossary viewable block: " << i;
150 cout <<
"\n\nReading " << viewableHeaderRecord.
glossBlocksCount <<
" glossary viewable blocks";
152 cout <<
"\nGlossary viewable block: " << i;
void readViewableBlockText(int fd, ViewableBlock *vb, char **buf)
static int openFileReadOnly(const char *fName)
void readViewableBlock(int fd, ViewableBlock *vb)
void readVersion(int fd, Version *versionRecord)
void readViewableHeader(int fd, ViewableHeader *viewableHeaderRecord)
void readHeaderControlWordAreaText(int fd, char **buf)
void readHeaderControlWordAreaText |
( |
int |
fd, |
|
|
char ** |
buf |
|
) |
| |
void readVersion |
( |
int |
fd, |
|
|
Version * |
versionRecord |
|
) |
| |
void readViewableBlockText |
( |
int |
fd, |
|
|
ViewableBlock * |
vb, |
|
|
char ** |
buf |
|
) |
| |
void readViewableHeader |
( |
int |
fd, |
|
|
ViewableHeader * |
viewableHeaderRecord |
|
) |
| |