Rosetta
Functions
init_util.hh File Reference

initialization subroutines for Benchmark More...

#include <devel/init.hh>
#include <cstring>
#include <iosfwd>
#include <string>
#include <vector>

Functions

char ** create_pseudo_commandline (std::string const &cmdin, int &pseudo_argc)
 
void destroy_pseudo_commandline (int pseudo_argc, char **pseudo_argv)
 
void core_init_from_string (std::string const &commandline)
 For unit tests only. Creates an argc/argv pair, calls init() and deletes argv. can be used to init option system more that once, providing user ability to change options on the fly. More...
 
void core_init_with_additional_options (std::string const &commandline_in)
 For unit tests only. Re-init option system. Command line will be = old command line + function argument. More...
 

Detailed Description

initialization subroutines for Benchmark

Author

Function Documentation

◆ core_init_from_string()

void core_init_from_string ( std::string const &  commandline)
inline

For unit tests only. Creates an argc/argv pair, calls init() and deletes argv. can be used to init option system more that once, providing user ability to change options on the fly.

References command_line_argv, create_pseudo_commandline(), destroy_pseudo_commandline(), and basic::init().

Referenced by core_init_with_additional_options().

◆ core_init_with_additional_options()

void core_init_with_additional_options ( std::string const &  commandline_in)
inline

For unit tests only. Re-init option system. Command line will be = old command line + function argument.

References command_line_argc, command_line_argv, core_init_from_string(), and create_a3b_hbs::i.

Referenced by DockingBenchmark< dock, TScale >::setUp().

◆ create_pseudo_commandline()

char** create_pseudo_commandline ( std::string const &  cmdin,
int &  pseudo_argc 
)
inline

◆ destroy_pseudo_commandline()

void destroy_pseudo_commandline ( int  pseudo_argc,
char **  pseudo_argv 
)
inline

References create_a3b_hbs::ii.

Referenced by core_init_from_string().