Lhaz
|
#include <iostream>
#include <iterator>
#include <utility>
#include <vector>
#include <boost/assert.hpp>
#include <boost/filesystem/convenience.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/range/algorithm/sort.hpp>
#include <crtdbg.h>
#include "except.hpp"
クラス | |
struct | compare_result |
struct | diff_state |
型定義 | |
typedef boost::filesystem::path | path_type |
関数 | |
std::vector< path_type > | enumerate_all_files (const path_type &dir) |
compare_result::value_type | compare (std::wostream &os, const path_type &target_dir, const std::vector< path_type > &target_files, const path_type &expect_dir, const std::vector< path_type > &expect_files) |
bool | compare_2_files (const path_type &target_file, const path_type &expect_file) |
void | read_file (const path_type &path, std::vector< char > &contents) |
void | print_diff (std::wostream &os, diff_state::value_type state, const path_type &path) |
path_type | make_relative (const path_type &from, const path_type &target) |
int | wmain (int argc, wchar_t *argv[]) |
変数 | |
const int | exit_internal_error = -1 |
const int | exit_argument_error = 2 |
const int | exit_operation_error = 3 |
const int | exit_other_error = 4 |
const int | exit_standard_error = 5 |
const int | exit_unknown_error = 6 |
typedef boost::filesystem::path path_type |
compare_result::value_type compare | ( | std::wostream & | os, |
const path_type & | target_dir, | ||
const std::vector< path_type > & | target_files, | ||
const path_type & | expect_dir, | ||
const std::vector< path_type > & | expect_files | ||
) |
void print_diff | ( | std::wostream & | os, |
diff_state::value_type | state, | ||
const path_type & | path | ||
) |
void read_file | ( | const path_type & | path, |
std::vector< char > & | contents | ||
) |
int wmain | ( | int | argc, |
wchar_t * | argv[] | ||
) |
const int exit_argument_error = 2 |
const int exit_internal_error = -1 |
const int exit_operation_error = 3 |
const int exit_other_error = 4 |
const int exit_standard_error = 5 |
const int exit_unknown_error = 6 |