Skip to content

Commit b39392b

Browse files
committed
changes
1 parent 7947e46 commit b39392b

File tree

5 files changed

+24
-7
lines changed

5 files changed

+24
-7
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Title: ZRtrading - R - Zinnion SDK
44
Version: 0.1.0
55
Author: Mauro Delazeri
66
Maintainer: Mauro Delazeri <maurodelazeri@gmail.com>
7-
Description: Zinnion Trading and Streaming API to leverage ztrading C/C++
7+
Description: Zinnion Trading and Streaming API to leverage ztrading C/C++.
88
License: GPL-3
99
Encoding: UTF-8
1010
LazyData: true

R/RcppExports.R

+8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
22
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
33

4+
#' Multiply a number by two
5+
#'
6+
#' @param x A single integer.
7+
#' @export
48
test <- function() {
59
invisible(.Call('_zrtrading_test', PACKAGE = 'zrtrading'))
610
}
711

12+
#' Multiply a number by two
13+
#'
14+
#' @param x A single integer.
15+
#' @export
816
simulate_student <- function() {
917
.Call('_zrtrading_simulate_student', PACKAGE = 'zrtrading')
1018
}

src/zinnionAPI.cpp

+7-6
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ std::vector<int> simulate_student() {
66
}
77

88
void test() {
9-
cout << "mauro" << endl;
10-
cout << add_int(1,3) << endl;
11-
char *a = "abc"; // valid and safe in either C or C++.
12-
char *b = "abc"; // valid and safe in either C or C++.
13-
char *c = "trade:COINBASEPRO:BTC-USD"; // valid and safe in either C or C++.
14-
init(a,b,c);
9+
add_int(1,3);
10+
//cout << "mauro" << endl;
11+
// cout << add_int(1,3) << endl;
12+
// char *a = "abc"; // valid and safe in either C or C++.
13+
// char *b = "abc"; // valid and safe in either C or C++.
14+
// char *c = "trade:COINBASEPRO:BTC-USD"; // valid and safe in either C or C++.
15+
// init(a,b,c);
1516
}

src/zinnionAPI.h

+8
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,16 @@
66
using namespace Rcpp;
77
using namespace std;
88

9+
//' Multiply a number by two
10+
//'
11+
//' @param x A single integer.
12+
//' @export
913
// [[Rcpp::export]]
1014
void test();
1115

16+
//' Multiply a number by two
17+
//'
18+
//' @param x A single integer.
19+
//' @export
1220
// [[Rcpp::export]]
1321
std::vector<int> simulate_student();

src/zrtrading.so

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)