File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
` cytolib ` provides the c++ headers for users to use and interact with the ` GatingSet ` (the gated cytometry data structure) at c++ level.
4
4
5
-
5
+ ###Installation
6
6
The ** cytolib** package is installed via ` R CMD INSTALL ... ` .
7
7
8
8
R packages wishing to use the libraries in ` cytolib ` only need to:
13
13
```
14
14
LinkingTo: cytolib
15
15
```
16
+ ###Usage
17
+ Make sure to call ` CYTOLIB_INIT() ` in user c code
16
18
17
19
See ** flowWorkspace** package for the example of using ` cytolib ` .
Original file line number Diff line number Diff line change 13
13
#define POPULATION_LEVEL 3
14
14
#define GATE_LEVEL 4
15
15
16
- extern unsigned short g_loglevel;
17
- extern bool my_throw_on_error;
18
16
19
17
#ifdef ROUT
20
18
#include < R_ext/Print.h>
@@ -29,6 +27,9 @@ using namespace std;
29
27
30
28
extern unsigned short g_loglevel;// debug print is turned off by default
31
29
extern bool my_throw_on_error;// can be toggle off to get a partially parsed gating tree for debugging purpose
30
+ #define CYTOLIB_INIT () \
31
+ bool my_throw_on_error = true ;\
32
+ unsigned short g_loglevel = 0 ;\
32
33
33
34
inline void PRINT (string a){
34
35
#ifdef ROUT
You can’t perform that action at this time.
0 commit comments