RInside Version 0.2.16
bar.h
Go to the documentation of this file.
1
#pragma once
2
/*
3
* These are just two example classes that will be communicated between program and rserver.
4
*
5
* See binarystream.h/.cpp for information about serialization,
6
* see bar_rcpp_wrapper_*.h for code that converts these objects into R objects and back.
7
*/
8
9
#include "
common/binarystream.h
"
10
#include <string>
11
#include <cstdint>
12
13
#include "
foo.h
"
14
15
16
/*
17
* Bar contains a name and a Foo object, because recursive data structures are fun!
18
*/
19
class
Bar
{
20
public
:
21
Bar
(
const
std::string &
name
,
const
Foo
&
foo
);
22
~Bar
();
23
24
std::string
name
;
25
Foo
foo
;
26
27
// These three are for IPC
28
static
const
int32_t
TYPEID
= 2;
29
void
serialize
(
BinaryStream
&stream)
const
;
30
static
Bar
deserialize
(
BinaryStream
&stream);
31
};
Foo
Definition:
foo.h:17
Bar::TYPEID
static const int32_t TYPEID
Definition:
bar.h:28
Bar::serialize
void serialize(BinaryStream &stream) const
Definition:
bar.cpp:10
Bar::Bar
Bar(const std::string &name, const Foo &foo)
Definition:
bar.cpp:3
Bar
Definition:
bar.h:19
Bar::deserialize
static Bar deserialize(BinaryStream &stream)
Definition:
bar.cpp:15
binarystream.h
Bar::~Bar
~Bar()
Definition:
bar.cpp:6
foo.h
BinaryStream
Definition:
binarystream.h:45
Bar::name
std::string name
Definition:
bar.h:24
Bar::foo
Foo foo
Definition:
bar.h:25
inst
examples
sandboxed_server
datatypes
bar.h
Generated on Wed Mar 11 2020 22:27:24 for RInside Version 0.2.16 by
1.8.13