#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) |
enum Arch_mode |
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 | ) |
bool is_text_file | ( | const char * | fname | ) |
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 | ) |