Provides direct communication to the RMS API to via cURL. More...
#include <rms.h>
Provides direct communication to the RMS API to via cURL.
The rms_client handles communication to the RMS HTTP or HTTPS server using cURL.
rms_client::rms_client | ( | std::string | host, |
int | port = 80 , |
||
rms::PROTOCOL | protocol = HTTP_PROTOCOL |
||
) |
rms_client::~rms_client | ( | ) | [virtual] |
bool rms_client::extract_json_bool | ( | json_object * | json, |
std::string | key | ||
) | [private] |
int rms_client::extract_json_int | ( | json_object * | json, |
std::string | key | ||
) | [private] |
string rms_client::extract_json_string | ( | json_object * | json, |
std::string | key | ||
) | [private] |
void rms_client::free_rms_response | ( | rms::rms_response * | buf | ) | [private] |
Frees all memory used by the given rms_response.
buf | the buffer to free |
article rms_client::get_article_by_id | ( | int | artid | ) |
vector< article > rms_client::get_articles | ( | ) |
vector< article > rms_client::get_articles_by_pageid | ( | int | pageid | ) |
condition rms_client::get_condition_by_id | ( | int | condid | ) |
vector< condition > rms_client::get_conditions | ( | ) |
content_page rms_client::get_content_page_by_id | ( | int | pageid | ) |
vector< content_page > rms_client::get_content_pages | ( | ) |
experiment rms_client::get_experiment_by_id | ( | int | expid | ) |
vector< experiment > rms_client::get_experiments | ( | ) |
javascript_file rms_client::get_javascript_file_by_id | ( | int | fileid | ) |
vector< javascript_file > rms_client::get_javascript_files | ( | ) |
vector< slide > rms_client::get_slides | ( | ) |
vector< study > rms_client::get_studies | ( | ) |
study rms_client::get_study_by_id | ( | int | studyid | ) |
study_log rms_client::get_study_log_by_id | ( | int | logid | ) |
vector< study_log > rms_client::get_study_logs | ( | ) |
vector< study_log > rms_client::get_study_logs_by_expid | ( | int | expid | ) |
user_account rms_client::get_user_account_by_id | ( | int | userid | ) |
vector< user_account > rms_client::get_user_accounts | ( | ) |
json_object * rms_client::make_request | ( | std::string | url | ) | [private] |
article rms_client::parse_article | ( | json_object * | json | ) | [private] |
vector< article > rms_client::parse_articles_array | ( | json_object * | json_array | ) | [private] |
condition rms_client::parse_condition | ( | json_object * | json | ) | [private] |
vector< condition > rms_client::parse_conditions_array | ( | json_object * | json_array | ) | [private] |
content_page rms_client::parse_content_page | ( | json_object * | json | ) | [private] |
vector< content_page > rms_client::parse_content_pages_array | ( | json_object * | json_array | ) | [private] |
experiment rms_client::parse_experiment | ( | json_object * | json | ) | [private] |
vector< experiment > rms_client::parse_experiments_array | ( | json_object * | json_array | ) | [private] |
javascript_file rms_client::parse_javascript_file | ( | json_object * | json | ) | [private] |
vector< javascript_file > rms_client::parse_javascript_files_array | ( | json_object * | json_array | ) | [private] |
slide rms_client::parse_slide | ( | json_object * | json | ) | [private] |
vector< slide > rms_client::parse_slides_array | ( | json_object * | json_array | ) | [private] |
vector< study > rms_client::parse_studies_array | ( | json_object * | json_array | ) | [private] |
study rms_client::parse_study | ( | json_object * | json | ) | [private] |
study_log rms_client::parse_study_log | ( | json_object * | json | ) | [private] |
vector< study_log > rms_client::parse_study_logs_array | ( | json_object * | json_array | ) | [private] |
user_account rms_client::parse_user_account | ( | json_object * | json | ) | [private] |
vector< user_account > rms_client::parse_user_accounts_array | ( | json_object * | json_array | ) | [private] |
void rms_client::set_authorization | ( | std::string | username, |
std::string | password | ||
) |
CURL* rms::rms_client::curl [private] |
std::string rms::rms_client::url_start [private] |