Skip to content

Commit ed5bec4

Browse files
committed
reflect source codes of Node.JS client(0.8.0)
1 parent ce4ec25 commit ed5bec4

2 files changed

Lines changed: 21 additions & 6 deletions

File tree

src/StoreFactory.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818
#define _STORE_FACTORY_H_
1919
#define CLIENT_VERSION "GridDB Python Client 0.8.0"
2020

21-
#include "gridstore.h"
22-
#include "Store.h"
23-
2421
#include <map>
2522
#include <string>
2623

24+
#include "gridstore.h"
25+
#include "Store.h"
26+
#include "GSException.h"
27+
2728
using namespace std;
2829

2930
namespace griddb {
@@ -33,12 +34,12 @@ namespace griddb {
3334
* This class is implemented as singleton.
3435
*/
3536
class StoreFactory {
36-
37-
GSGridStoreFactory* mFactory;
37+
private:
38+
GSGridStoreFactory* mFactory;
3839

3940
public:
4041
~StoreFactory();
41-
void close(GSBool allRelated);
42+
void close(GSBool allRelated = GS_FALSE);
4243
static StoreFactory* get_instance();
4344
Store* get_store(const char* host=NULL, int32_t port=0, const char* cluster_name=NULL,
4445
const char* database=NULL, const char* username=NULL, const char* password=NULL,

src/griddb.i

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,17 @@
8282
#include "RowKeyPredicate.h"
8383
#include "Store.h"
8484
#include "StoreFactory.h"
85+
%}
86+
#if !defined(SWIGJAVASCRIPT)
87+
%{
8588
#include "TimestampUtils.h"
8689
%}
90+
#endif
91+
#if defined(SWIGJAVASCRIPT) || defined(SWIGPHP)
92+
%{
93+
#include "EnumValue.h"
94+
%}
95+
#endif
8796

8897
#if defined(SWIGPYTHON)
8998
%shared_ptr(griddb::Resource)
@@ -115,4 +124,9 @@
115124
%include "RowKeyPredicate.h"
116125
%include "Store.h"
117126
%include "StoreFactory.h"
127+
#if !defined(SWIGJAVASCRIPT)
118128
%include "TimestampUtils.h"
129+
#endif
130+
#if defined(SWIGJAVASCRIPT) || defined(SWIGPHP)
131+
%include "EnumValue.h"
132+
#endif

0 commit comments

Comments
 (0)