elsamuko / xz_test

Simple c++ wrapper for xz utils

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xz_test

brief

xz_test is a simple C++-wrapper for xz utils, based on the sample programs from xz.

usage

Add all files from src/xz and log.hpp to your source files. Then you can use xz::compress( std::istream& istream, std::ostream& ostream ), which is based on 01_compress_easy.c and xz::decompress( std::istream& istream, std::ostream& ostream ) which is based on 02_decompress.c

building

To build 64 Bit static libs for Linux, Mac and Windows, just run the corresponding build script from the scripts folder. Note: The Windows build script builds MT and MD libs.

examples

In build/qmake are two sample projects, which use xz::compress and xz::decompress with std::cin and std::cout. Note: These are linked with static CRT (MT) under Windows.

In testing/roundtrip_test is a Qt based unit test, which tests xz::compress and xz::decompress with std::strings and files. Note: These are linked with dynamic CRT (MD) under Windows.

About

Simple c++ wrapper for xz utils

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C++ 63.4%Language:Shell 27.7%Language:QMake 8.9%