Rosetta  3.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
init_util.hh File Reference

initialization subroutines for Benchmark More...

#include <devel/init.hh>
#include <cstring>
#include <iostream>
#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

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 devel::init().

Referenced by 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, and core_init_from_string().

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

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

References test.T200_Scoring::ii.

Referenced by core_init_from_string().