Rosetta  2021.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
protocols::rpc::JSON_RPC Class Reference

#include <rpc.hh>

Inheritance diagram for protocols::rpc::JSON_RPC:
Inheritance graph
[legend]

Public Member Functions

 JSON_RPC (std::string const &msg, bool capture_tracer=true, BasicInit *basic_init=nullptr)
 
 ~JSON_RPC () override=default
 
 JSON_RPC (JSON_RPC const &json_rpc)
 
JSON_RPC const & operator= (JSON_RPC const &json_rpc)
 
virtual void run ()
 
long runtime () const
 
std::string tracer () const
 
const core::pose::Poseoutputpose () const
 
core::Real get_fa_score ()
 
core::Real get_irms () const
 

Private Member Functions

void unpack (const std::string &msg)
 
void output_capture_start ()
 
void output_capture_stop ()
 
void output_capture_clear ()
 
void load_user_flag_file (const std::string &flags_file)
 
void load_new_set_of_user_flags (const utility::json_spirit::mObject &json_user_flags)
 
void load_new_set_of_virtual_files (const utility::json_spirit::mArray &json_user_files, bool clear_previous=true)
 

Private Attributes

std::string msg_
 
std::string pdbdata_string_
 
core::pose::Pose inputpose_
 
core::pose::Pose outputpose_
 
std::string xmlscript_
 
std::string command_
 
bool capture_tracer_
 
std::stringstream tracer_output_stream_
 
long starttime_
 
long endtime_
 
utility::json_spirit::mObject parsed_json_
 
BasicInitbasic_init_
 

Constructor & Destructor Documentation

protocols::rpc::JSON_RPC::JSON_RPC ( std::string const &  msg,
bool  capture_tracer = true,
BasicInit basic_init = nullptr 
)

References msg_, and unpack().

protocols::rpc::JSON_RPC::~JSON_RPC ( )
overridedefault
protocols::rpc::JSON_RPC::JSON_RPC ( JSON_RPC const &  json_rpc)

Member Function Documentation

core::Real protocols::rpc::JSON_RPC::get_fa_score ( )
core::Real protocols::rpc::JSON_RPC::get_irms ( ) const
void protocols::rpc::JSON_RPC::load_new_set_of_user_flags ( const utility::json_spirit::mObject &  json_user_flags)
private

Referenced by unpack().

void protocols::rpc::JSON_RPC::load_new_set_of_virtual_files ( const utility::json_spirit::mArray &  json_user_files,
bool  clear_previous = true 
)
private
void protocols::rpc::JSON_RPC::load_user_flag_file ( const std::string &  flags_file)
private
JSON_RPC const & protocols::rpc::JSON_RPC::operator= ( JSON_RPC const &  json_rpc)
void protocols::rpc::JSON_RPC::output_capture_clear ( )
private

References tracer_output_stream_.

void protocols::rpc::JSON_RPC::output_capture_start ( )
private

References tracer_output_stream_.

Referenced by run(), and unpack().

void protocols::rpc::JSON_RPC::output_capture_stop ( )
private

Referenced by run(), and unpack().

const core::pose::Pose& protocols::rpc::JSON_RPC::outputpose ( ) const
inline

References outputpose_.

void protocols::rpc::JSON_RPC::run ( )
virtual
long protocols::rpc::JSON_RPC::runtime ( ) const
inline

References endtime_, and starttime_.

std::string protocols::rpc::JSON_RPC::tracer ( ) const
inline

References tracer_output_stream_.

Referenced by run(), and unpack().

void protocols::rpc::JSON_RPC::unpack ( const std::string &  msg)
private

Member Data Documentation

BasicInit* protocols::rpc::JSON_RPC::basic_init_
private

Referenced by unpack().

bool protocols::rpc::JSON_RPC::capture_tracer_
private

Referenced by operator=().

std::string protocols::rpc::JSON_RPC::command_
private

Referenced by operator=(), run(), and unpack().

long protocols::rpc::JSON_RPC::endtime_
private

Referenced by operator=(), run(), and runtime().

core::pose::Pose protocols::rpc::JSON_RPC::inputpose_
private

Referenced by get_irms(), operator=(), and run().

std::string protocols::rpc::JSON_RPC::msg_
private

Referenced by JSON_RPC(), and operator=().

core::pose::Pose protocols::rpc::JSON_RPC::outputpose_
private
utility::json_spirit::mObject protocols::rpc::JSON_RPC::parsed_json_
private

Referenced by operator=(), run(), and unpack().

std::string protocols::rpc::JSON_RPC::pdbdata_string_
private

Referenced by operator=(), run(), and unpack().

long protocols::rpc::JSON_RPC::starttime_
private

Referenced by operator=(), run(), and runtime().

std::stringstream protocols::rpc::JSON_RPC::tracer_output_stream_
private
std::string protocols::rpc::JSON_RPC::xmlscript_
private

Referenced by operator=(), run(), and unpack().


The documentation for this class was generated from the following files: