Rosetta
 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>

Go to the source code of this file.

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

Definition in file init_util.hh.

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.

Definition at line 82 of file init_util.hh.

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.

Definition at line 95 of file init_util.hh.

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

Definition at line 27 of file init_util.hh.

References test.T200_Scoring::ii, and amino_acids::size.

Referenced by core_init_from_string().

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

Definition at line 70 of file init_util.hh.

References test.T200_Scoring::ii.

Referenced by core_init_from_string().