RInside Version 0.2.16
|
#include <RInside.h>
#include "rinsideserver.h"
#include "internalfunction_clone.h"
#include <stdexcept>
#include <fstream>
Go to the source code of this file.
Macros | |
#define | LOG(...) {fprintf(stderr, "%d: ", getpid());fprintf(stderr, __VA_ARGS__);fprintf(stderr, "\n");} |
#define | CMD_TRY try { |
#define | CMD_CATCH } catch (const BinaryStream::stream_exception) { throw; } catch (const std::exception &e) { std::string s = e.what(); LOG("Command failed: %s", s.c_str()); sendReply(RIS_REPLY_ERROR); stream.write(s); } |
Functions | |
static void | replace_all (std::string &str, const std::string &search, const std::string &replace) |
static std::string | read_file_as_string (const std::string &filename) |
#define CMD_CATCH } catch (const BinaryStream::stream_exception) { throw; } catch (const std::exception &e) { std::string s = e.what(); LOG("Command failed: %s", s.c_str()); sendReply(RIS_REPLY_ERROR); stream.write(s); } |
Definition at line 59 of file rinsideserver.cpp.
Referenced by RInsideServer::run().
#define CMD_TRY try { |
Definition at line 58 of file rinsideserver.cpp.
Referenced by RInsideServer::run().
#define LOG | ( | ... | ) | {fprintf(stderr, "%d: ", getpid());fprintf(stderr, __VA_ARGS__);fprintf(stderr, "\n");} |
Definition at line 5 of file rinsideserver.cpp.
Referenced by RInsideServer::run(), RInsideServer::sexp_from_stream(), and RInsideServer::sexp_to_stream().
|
static |
Definition at line 25 of file rinsideserver.cpp.
References RInsideServer::registry_sexp_from_stream, and RInsideServer::registry_sexp_to_stream.
Referenced by RInsideServer::run().
|
static |
Definition at line 17 of file rinsideserver.cpp.
Referenced by RInsideServer::run().