expack.cc File Reference

#include <unistd.h>
#include <fstream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include "U7file.h"
#include "Flex.h"
#include "utils.h"
#include "databuf.h"
#include "crc.h"
#include "exceptions.h"

Include dependency graph for expack.cc:

Go to the source code of this file.

Enumerations

enum  Arch_mode {
  NONE, LIST, EXTRACT, CREATE,
  ADD, RESPONSE
}

Functions

bool is_text_file (const char *fname)
bool is_null_entry (const char *fname)
void set_mode (Arch_mode &mode, Arch_mode new_mode)
void make_header_name (char *filename)
void make_uppercase (char *name)
void strip_path (char *filename)
long get_file_size (const char *fname)
void getline (ifstream &file, char *buf, int size)
int main (int argc, char **argv)


Enumeration Type Documentation

enum Arch_mode

Enumerator:
NONE 
LIST 
EXTRACT 
CREATE 
ADD 
RESPONSE 

Definition at line 57 of file expack.cc.


Function Documentation

long get_file_size ( const char *  fname  ) 

Definition at line 136 of file expack.cc.

References is_null_entry(), is_text_file(), len, U7open(), and exult_exception::what().

Referenced by main().

Here is the call graph for this function:

void getline ( ifstream &  file,
char *  buf,
int  size 
)

Definition at line 170 of file expack.cc.

Referenced by getVersionInfo(), main(), ucxtInit::opcodes(), and readbin_U7UCFunc().

bool is_null_entry ( const char *  fname  ) 

Definition at line 75 of file expack.cc.

References len.

Referenced by get_file_size().

bool is_text_file ( const char *  fname  ) 

Definition at line 59 of file expack.cc.

References len.

Referenced by get_file_size(), and main().

int main ( int  argc,
char **  argv 
)

Definition at line 225 of file expack.cc.

References ADD, crc32_syspath(), CREATE, EXTRACT, U7file::get_archive_type(), U7FileManager::get_file_object(), get_file_size(), getline(), is_text_file(), len, LIST, make_header_name(), make_uppercase(), NONE, U7object::number_of_objects(), U7file::number_of_objects(), StreamDataSource::read(), RESPONSE, U7object::retrieve(), U7file::retrieve(), set_mode(), snprintf, strip_path(), U7open(), and exult_exception::what().

Here is the call graph for this function:

void make_header_name ( char *  filename  ) 

Definition at line 97 of file expack.cc.

Referenced by main().

void make_uppercase ( char *  name  ) 

Definition at line 106 of file expack.cc.

Referenced by main().

void set_mode ( Arch_mode mode,
Arch_mode  new_mode 
)

Definition at line 87 of file expack.cc.

References NONE.

Referenced by main().

void strip_path ( char *  filename  ) 

Definition at line 114 of file expack.cc.

Referenced by main().


Generated on Mon Jul 9 14:45:45 2007 for ExultEngine by  doxygen 1.5.1