JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes
joda::network::client::JodaClient Class Reference

#include <JodaClient.h>

Collaboration diagram for joda::network::client::JodaClient:
[legend]

Public Member Functions

 JodaClient (const std::string &addr, int port)
 
void cli ()
 
void nonInteractiveQuery (const std::string &query, unsigned long offset, unsigned long count)
 

Static Public Member Functions

static rapidjson::Document parseResponse (httplib::Response &res)
 
static void checkError (const rapidjson::Document &doc)
 

Static Public Attributes

static constexpr size_t VERSION = 2
 

Protected Member Functions

std::string & ltrim (std::string &str)
 
std::string & rtrim (std::string &str)
 
std::string parseCommand ()
 
void browseReturn (unsigned long id, unsigned long max)
 

Static Protected Member Functions

static void handleError (JodaClientException &e)
 
static void handleError (JodaServerException &e)
 
static void getStringWindowSize (const std::string &str, int &y, int &x)
 

Protected Attributes

std::string query
 
httplib::Client client
 

Static Protected Attributes

static constexpr auto prefix = "/api/v2"
 

Constructor & Destructor Documentation

◆ JodaClient()

joda::network::client::JodaClient::JodaClient ( const std::string &  addr,
int  port 
)

Member Function Documentation

◆ browseReturn()

void joda::network::client::JodaClient::browseReturn ( unsigned long  id,
unsigned long  max 
)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkError()

void joda::network::client::JodaClient::checkError ( const rapidjson::Document &  doc)
static
Here is the caller graph for this function:

◆ cli()

void joda::network::client::JodaClient::cli ( )
Here is the call graph for this function:

◆ getStringWindowSize()

void joda::network::client::JodaClient::getStringWindowSize ( const std::string &  str,
int &  y,
int &  x 
)
staticprotected

◆ handleError() [1/2]

void joda::network::client::JodaClient::handleError ( JodaClientException e)
staticprotected
Here is the caller graph for this function:

◆ handleError() [2/2]

void joda::network::client::JodaClient::handleError ( JodaServerException e)
staticprotected

◆ ltrim()

std::string & joda::network::client::JodaClient::ltrim ( std::string &  str)
protected

◆ nonInteractiveQuery()

void joda::network::client::JodaClient::nonInteractiveQuery ( const std::string &  query,
unsigned long  offset,
unsigned long  count 
)
Here is the call graph for this function:

◆ parseCommand()

std::string joda::network::client::JodaClient::parseCommand ( )
protected
Here is the caller graph for this function:

◆ parseResponse()

rapidjson::Document joda::network::client::JodaClient::parseResponse ( httplib::Response &  res)
static
Here is the caller graph for this function:

◆ rtrim()

std::string & joda::network::client::JodaClient::rtrim ( std::string &  str)
protected

Field Documentation

◆ client

httplib::Client joda::network::client::JodaClient::client
protected

◆ prefix

constexpr auto joda::network::client::JodaClient::prefix = "/api/v2"
staticconstexprprotected

◆ query

std::string joda::network::client::JodaClient::query
protected

◆ VERSION

constexpr size_t joda::network::client::JodaClient::VERSION = 2
staticconstexpr

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