Rosetta
Functions
diffbinder.cpp File Reference
#include <algorithm>
#include <fstream>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <vector>

Functions

int skip (std::string const &s1)
 
std::string strip_comment_and_whitespace (std::string const &s1)
 This function strips the one-line C++ comments from the input and return the result. More...
 
int compare_text_files (std::string const &f1, const std::string &f2)
 This function compares the content of two files f1 and f2 using the. More...
 
int main (int argc, char **argv)
 

Function Documentation

◆ compare_text_files()

int compare_text_files ( std::string const &  f1,
const std::string &  f2 
)

This function compares the content of two files f1 and f2 using the.

References utility::io::oc::cout, vancomycin::f2, getline(), skip(), and strip_comment_and_whitespace().

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

◆ skip()

int skip ( std::string const &  s1)

This is a simple and portable implementation of diff utility for the binder CI that should ignore certain patters. Function that checks if the line should be skipped in the comparison. It is indicated with a non-zero return code. The function checks the presence of variable or semantically unimportant strings in the line. These can be comments, the absolute paths of the sources and some codes that rely on the implementation of the STL.

References basic::options::OptionKeys::stepwise::s1.

Referenced by AnchorFinderMover::apply(), compare_text_files(), binder::Context::generate(), input_torsion_M_v_lists(), binder::is_skipping_requested(), OPT_KEY(), pep_scan_analysis(), read_rigid_body_settings(), ConstraintToolMover::show_cstset(), and PoseWrap::switch_to_cen().

◆ strip_comment_and_whitespace()

std::string strip_comment_and_whitespace ( std::string const &  s1)

This function strips the one-line C++ comments from the input and return the result.

References kmeans_adaptive_kernel_density_bb_dependent_rotlib::c, basic::options::OptionKeys::stepwise::s1, and erraser_analysis::temp.

Referenced by compare_text_files().