#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include <list>
#include <stdio.h>
#include <stdlib.h>
#include <sstream>
#include <string.h>
#include <tuple>
#include <filesystem>
#include <algorithm>
#include <md5.h>
Go to the source code of this file.
◆ _FCALL
◆ BUFFERSIZE
◆ write_out_file
| #define write_out_file write_out_file_ |
◆ compute_binary_checksum()
| void compute_binary_checksum |
( |
checksum * | cs_output_files, |
|
|
char * | file, |
|
|
int | len, |
|
|
int | izip ) |
Definition at line 78 of file checksum.cpp.
78 {
79 char *file_c;
80 file_c=(char*)malloc(sizeof(char)* len+1);
81 for (int i=0; i<len; i++){
82 file_c[i]=file[i];
83 }
84 file_c[len]='\0';
85
86 std::string file_str(file_c);
87 if (izip > 0) {
88 file_str = file_str + ".gz";
89 }
90
92
93 }
std::string compute_checksum(std::string file)
◆ new_file_checksum_list()
Definition at line 73 of file checksum.cpp.
73 {
75 return cs_output_files;
76 }
◆ print_checksum_list()
| void print_checksum_list |
( |
checksum * | cs_output_files, |
|
|
int | fd ) |
Definition at line 95 of file checksum.cpp.
95 {
96 std::list<std::tuple<std::string, std::string>> checksum_list = cs_output_files->
dump_list();
97 for (const auto& entry : checksum_list) {
98 std::string str_line=" " + std::get<0>(entry) + " " + std::get<1>(entry);
99 int len_line=str_line.length();
100 const char * c_line = str_line.c_str();
102 }
103 }
std::list< std::tuple< std::string, std::string > > dump_list()
◆ write_out_file()
| void write_out_file |
( |
int * | fd, |
|
|
const char * | line, |
|
|
int * | len_line ) |