Rosetta
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

◆ JSON_RPC() [1/2]

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

References msg_, and unpack().

◆ ~JSON_RPC()

protocols::rpc::JSON_RPC::~JSON_RPC ( )
overridedefault

◆ JSON_RPC() [2/2]

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

Member Function Documentation

◆ get_fa_score()

core::Real protocols::rpc::JSON_RPC::get_fa_score ( )

◆ get_irms()

core::Real protocols::rpc::JSON_RPC::get_irms ( ) const

◆ load_new_set_of_user_flags()

void protocols::rpc::JSON_RPC::load_new_set_of_user_flags ( const utility::json_spirit::mObject &  json_user_flags)
private

Referenced by unpack().

◆ load_new_set_of_virtual_files()

void protocols::rpc::JSON_RPC::load_new_set_of_virtual_files ( const utility::json_spirit::mArray &  json_user_files,
bool  clear_previous = true 
)
private

◆ load_user_flag_file()

void protocols::rpc::JSON_RPC::load_user_flag_file ( const std::string &  flags_file)
private

◆ operator=()

JSON_RPC const & protocols::rpc::JSON_RPC::operator= ( JSON_RPC const &  json_rpc)

◆ output_capture_clear()

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

References tracer_output_stream_.

◆ output_capture_start()

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

References tracer_output_stream_.

Referenced by run(), and unpack().

◆ output_capture_stop()

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

Referenced by run(), and unpack().

◆ outputpose()

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

References outputpose_.

◆ run()

void protocols::rpc::JSON_RPC::run ( )
virtual

◆ runtime()

long protocols::rpc::JSON_RPC::runtime ( ) const
inline

References endtime_, and starttime_.

◆ tracer()

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

References tracer_output_stream_.

Referenced by run(), and unpack().

◆ unpack()

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

Member Data Documentation

◆ basic_init_

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

Referenced by unpack().

◆ capture_tracer_

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

Referenced by operator=().

◆ command_

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

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

◆ endtime_

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

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

◆ inputpose_

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

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

◆ msg_

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

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

◆ outputpose_

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

◆ parsed_json_

utility::json_spirit::mObject protocols::rpc::JSON_RPC::parsed_json_
private

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

◆ pdbdata_string_

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

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

◆ starttime_

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

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

◆ tracer_output_stream_

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

◆ xmlscript_

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: