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

#include <LoopsFileIO.hh>

Public Member Functions

void set_linecount_offset (core::Size)
 if the input stream has had some number of lines already removed from it, indicate how many. More...
 
LoopsFileDataOP read_loop_file (std::istream &is, std::string const &filename, bool prohibit_single_residue_loops)
 

Private Member Functions

LoopsFileDataOP parse_json_formatted_data (utility::json_spirit::mValue &json_data, bool prohibit_single_residue_loops, std::string const &filename)
 
void ensure_all_fields_are_valid (utility::json_spirit::mValue &json_data, std::string const &filename)
 
core::pose::ResidueIndexDescriptionCOP parse_json_residue_info (utility::json_spirit::mValue &json_loop_data, ResidueIdentifier residue_identifier, std::string const &filename, core::Size &approximate_linenumber)
 
void parse_configuration_options (utility::json_spirit::mValue &json_loop_data, LoopFromFileData &loop)
 
void setup_residue_type_map ()
 
std::string name_from_residue_identifier (ResidueIdentifier residue_identifier)
 
std::string name_from_loop_configuration (LoopConfiguration loop_configuration)
 

Private Attributes

core::Size linecount_offset_
 

Static Private Attributes

static bool initialized_
 
static utility::vector1
< std::string > 
valid_loop_file_keys_
 

Member Function Documentation

void protocols::loops::JSONFormattedLoopsFileReader::ensure_all_fields_are_valid ( utility::json_spirit::mValue &  json_data,
std::string const &  filename 
)
private
std::string protocols::loops::JSONFormattedLoopsFileReader::name_from_loop_configuration ( LoopConfiguration  loop_configuration)
private
std::string protocols::loops::JSONFormattedLoopsFileReader::name_from_residue_identifier ( ResidueIdentifier  residue_identifier)
private
void protocols::loops::JSONFormattedLoopsFileReader::parse_configuration_options ( utility::json_spirit::mValue &  json_loop_data,
LoopFromFileData loop 
)
private
LoopsFileDataOP protocols::loops::JSONFormattedLoopsFileReader::parse_json_formatted_data ( utility::json_spirit::mValue &  json_data,
bool  prohibit_single_residue_loops,
std::string const &  filename 
)
private
ResidueIndexDescriptionCOP protocols::loops::JSONFormattedLoopsFileReader::parse_json_residue_info ( utility::json_spirit::mValue &  json_loop_data,
ResidueIdentifier  residue_identifier,
std::string const &  filename,
core::Size approximate_linenumber 
)
private
LoopsFileDataOP protocols::loops::JSONFormattedLoopsFileReader::read_loop_file ( std::istream &  is,
std::string const &  filename,
bool  prohibit_single_residue_loops 
)
void protocols::loops::JSONFormattedLoopsFileReader::set_linecount_offset ( core::Size  setting)

if the input stream has had some number of lines already removed from it, indicate how many.

References linecount_offset_.

Referenced by protocols::loops::LoopsFileIO::read_loop_file_stream().

void protocols::loops::JSONFormattedLoopsFileReader::setup_residue_type_map ( )
private

Member Data Documentation

bool protocols::loops::JSONFormattedLoopsFileReader::initialized_
staticprivate

Referenced by setup_residue_type_map().

core::Size protocols::loops::JSONFormattedLoopsFileReader::linecount_offset_
private
utility::vector1< std::string > protocols::loops::JSONFormattedLoopsFileReader::valid_loop_file_keys_
staticprivate

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