Lhaz
読み取り中…
検索中…
一致する文字列を見つけられません
クラス | 型定義 | 関数 | 変数
main.cpp ファイル
#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_typeenumerate_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
 

型定義詳解

◆ path_type

typedef boost::filesystem::path path_type

関数詳解

◆ compare()

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 
)

◆ compare_2_files()

bool compare_2_files ( const path_type target_file,
const path_type expect_file 
)

◆ enumerate_all_files()

std::vector< path_type > enumerate_all_files ( const path_type dir)

◆ make_relative()

path_type make_relative ( const path_type from,
const path_type target 
)

◆ print_diff()

void print_diff ( std::wostream &  os,
diff_state::value_type  state,
const path_type path 
)

◆ read_file()

void read_file ( const path_type path,
std::vector< char > &  contents 
)

◆ wmain()

int wmain ( int  argc,
wchar_t *  argv[] 
)

変数詳解

◆ exit_argument_error

const int exit_argument_error = 2

◆ exit_internal_error

const int exit_internal_error = -1

◆ exit_operation_error

const int exit_operation_error = 3

◆ exit_other_error

const int exit_other_error = 4

◆ exit_standard_error

const int exit_standard_error = 5

◆ exit_unknown_error

const int exit_unknown_error = 6