天佐.乾坤袋  tianzuo.Qiankun
NoSql数据库 NoSql database
Loading...
Searching...
No Matches
tianzuo.QiankunInterface.h
Go to the documentation of this file.
1
2// *@file tianzuo_QiankunInterface.h
3// *@brief 天佐.乾坤袋 (tianzuo.Qiankun)
4// *@version 1.0
5// *@section LICENSE Copyright © 2003-2103 郑天佐 Corporation
6// *@author 郑天佐 (zhengtianzuo)
7// *@date 2013-4-3
8#pragma once
9
11#undef tianzuo_Qiankun_lib
12#if defined (WIN32)
13#define tianzuo_Qiankun_atr
14#if defined (tianzuo_Qiankun_dllexport)
15#define tianzuo_Qiankun_lib _declspec(dllexport)
16#else
17#define tianzuo_Qiankun_lib _declspec(dllimport)
18#endif
19#else
20#define tianzuo_Qiankun_atr __attribute__((visibility("default")))
21#define tianzuo_Qiankun_lib
22#endif
23#include "tianzuo.Qiankun.h"
24
27typedef struct Qiankun_db_verify {
28 const char *m_db_file_name;
29 const char *m_db_password;
30 Qiankun_db_verify(const char *db_file_name, const char *db_password) {
31 m_db_file_name = db_file_name;
32 m_db_password = db_password;
33 }
35
38typedef struct Qiankun_data_type_tag {
39 Qiankun_data_type_tag(int data_type, int data_index, const char *data_name) {
40 m_data_type = data_type;
41 m_data_index = data_index;
42 m_data_name = data_name;
43 }
44
46 return (m_data_type);
47 }
48
50 return (m_data_index);
51 }
52
53 const char *get_data_name() {
54 return (m_data_name);
55 }
56
57 private:
58 int m_data_type;
59 int m_data_index;
60 const char *m_data_name;
62
65typedef struct Qiankun_user_data_tag {
68 Qiankun_user_data_tag(void *user_data, int user_size) {
69 m_user_data = user_data;
70 m_user_size = user_size;
71 }
73
79 Qiankun_get_user_data_tag(void *&userData, int *nUserSize) {
80 m_user_data = &userData;
81 m_user_size = nUserSize;
82 }
84
87typedef struct Qiankun_function_tag {
89 void *m_context;
90 Qiankun_function_tag(void *function, void *context) {
91 m_function = function;
92 m_context = context;
93 }
95
99 public:
102
111 virtual int initialize() = 0;
112
121 virtual int terminate() = 0;
122
133 virtual int db_create_database(Qiankun_db_verify_pointer db_verify, const char *db_name, bool const over_write) = 0;
134
143 virtual int db_open_database(Qiankun_db_verify_pointer db_verify) = 0;
144
154
164 virtual int db_change_password(Qiankun_db_verify_pointer db_verify, const char *new_password) = 0;
165
175 virtual int db_get_name(Qiankun_db_verify_pointer db_verify, char*& db_name) = 0;
176
186 virtual int db_get_total_number(Qiankun_db_verify_pointer db_verify, int *file_number) = 0;
187
197 virtual int db_rebuild(Qiankun_db_verify_pointer db_verify, const char *new_db_file_name) = 0;
198
208 virtual int db_set_name(Qiankun_db_verify_pointer db_verify, const char *db_name) = 0;
209
219 virtual int db_set_total_number(Qiankun_db_verify_pointer db_verify, int const add_file_number) = 0;
220
231
245 virtual int data_combine(
247 const char *remark, Qiankun_user_data_pointer user_data,
248 bool const compress, int const data_index) = 0;
249
262 virtual int data_combine_list(
264 Qiankun_user_data_pointer name_list, Qiankun_user_data_pointer data_list, bool const compress) = 0;
265
278 virtual int data_modify(
280 Qiankun_user_data_pointer user_data, bool const compress, bool const update_index = true) = 0;
281
294 virtual int data_modify_list(
296 Qiankun_user_data_pointer name_list, Qiankun_user_data_pointer data_list, bool const compress) = 0;
297
311 virtual int data_modify_file(
313 const char *remark, char *file_name, bool const compress, bool const update_index = true) = 0;
314
326 virtual int data_extract(
328 Qiankun_function_pointer function, Qiankun_get_user_data_pointer get_user_data) = 0;
329
341 virtual int data_extract_list(
344
358 Qiankun_function_pointer function, Qiankun_get_user_data_pointer get_user_data) = 0;
359
371 virtual int data_extract_file(Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, char *file_name, bool const over_write) = 0;
372
387 Qiankun_user_data_pointer name_list, Qiankun_user_data_pointer data_list, bool const over_write) = 0;
388
399 virtual int data_delete(Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, bool update_index = true) = 0;
400
412
423 virtual int data_get_index(Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, int *data_index_code) = 0;
424
436
447 virtual int data_set_index(Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, int const new_data_index) = 0;
448
460 virtual int data_get_name(
462 int const name_type, char*& data_name) = 0;
463
475 virtual int data_rename(
477 const char *new_data_name, const char *new_remark) = 0;
478
491 Qiankun_db_verify_pointer db_verify, int const name_type,
493
504 virtual int data_get_type(
506 int *data_type_code) = 0;
507
520 Qiankun_user_data_pointer user_data) = 0;
521
533 Qiankun_db_verify_pointer db_verify, int const data_type_code,
534 int *data_type_total_number) = 0;
535
548 Qiankun_user_data_pointer user_data) = 0;
549
561 virtual int data_get_size(
562 Qiankun_db_verify_pointer db_verify, int const size_type,
563 Qiankun_data_type_pointer data_type, int *data_size) = 0;
564
577 Qiankun_db_verify_pointer db_verify, int const size_type,
579};
580
608
612 public:
615
624 virtual int initialize() = 0;
625
634 virtual int terminate() = 0;
635};
636
664
667#ifdef __cplusplus
668extern "C"
669{
670#endif
680
690
700
713 tianzuo_Qiankun_lib int tianzuo_QiankunInt_db_create_database(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* db_name, bool const over_write);
714
724 tianzuo_Qiankun_lib int tianzuo_QiankunInt_db_open_database(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password);
725
735 tianzuo_Qiankun_lib int tianzuo_QiankunInt_db_close_database(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password);
736
747 tianzuo_Qiankun_lib int tianzuo_QiankunInt_db_change_password(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* new_password);
748
759 tianzuo_Qiankun_lib int tianzuo_QiankunInt_db_get_name(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, char*& db_name);
760
771 tianzuo_Qiankun_lib int tianzuo_QiankunInt_db_get_total_number(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, int* file_number);
772
783 tianzuo_Qiankun_lib int tianzuo_QiankunInt_db_rebuild(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* new_db_file_name);
784
795 tianzuo_Qiankun_lib int tianzuo_QiankunInt_db_set_name(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* db_name);
796
807 tianzuo_Qiankun_lib int tianzuo_QiankunInt_db_set_total_number(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, int const add_file_number);
808
820 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_check(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, int data_type);
821
832 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_delete(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name);
833
844 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_deletes(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name);
845
859 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_get_size(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, int size_type, const char* data_name, int data_type, int* data);
860
874 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_get_size_list(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, int size_type, char** data);
875
887 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_get_name_list(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, int name_type, char** data);
888
899 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_get_type_list(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, char** data);
900
911 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_get_type_total_number_list(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, char** data);
912
923 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_get_index_list(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, char** data);
924
937 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_short_combine(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, const char* remark, short data);
938
950 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_short_modify(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, short data);
951
963 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_short_extract(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, short* data);
964
977 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_int_combine(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, const char* remark, int data);
978
990 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_int_modify(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, int data);
991
1003 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_int_extract(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, int* data);
1004
1017 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_float_combine(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, const char* remark, float data);
1018
1030 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_float_modify(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, float data);
1031
1043 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_float_extract(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, float* data);
1044
1057 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_double_combine(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, const char* remark, double data);
1058
1070 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_double_modify(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, double data);
1071
1083 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_double_extract(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, double* data);
1084
1097 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_currency_combine(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, const char* remark, double data);
1098
1110 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_currency_modify(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, double data);
1111
1123 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_currency_extract(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, double* data);
1124
1137 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_date_combine(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, const char* remark, double data);
1138
1150 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_date_modify(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, double data);
1151
1163 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_date_extract(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, double* data);
1164
1177 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_string_combine(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, const char* remark, char* data);
1178
1190 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_string_modify(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, char* data);
1191
1203 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_string_extract(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, char** data);
1204
1218 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_file_combine(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, const char* remark, char* file_name, bool const compress);
1219
1233 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_file_modify(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, const char* remark, char* file_name, bool const compress);
1234
1247 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_file_extract(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, char* file_name, bool over_write);
1248
1261 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_shorts_combine(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, const char* remark, char* data);
1262
1274 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_shorts_modify(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, char* data);
1275
1287 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_shorts_extract(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, char** data);
1288
1301 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_ints_combine(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, const char* remark, char* data);
1302
1314 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_ints_modify(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, char* data);
1315
1327 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_ints_extract(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, char** data);
1328
1341 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_floats_combine(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, const char* remark, char* data);
1342
1354 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_floats_modify(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, char* data);
1355
1367 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_floats_extract(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, char** data);
1368
1381 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_doubles_combine(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, const char* remark, char* data);
1382
1394 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_doubles_modify(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, char* data);
1395
1407 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_doubles_extract(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, char** data);
1408
1421 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_currencys_combine(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, const char* remark, char* data);
1422
1434 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_currencys_modify(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, char* data);
1435
1447 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_currencys_extract(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, char** data);
1448
1461 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_dates_combine(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, const char* remark, char* data);
1462
1474 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_dates_modify(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, char* data);
1475
1487 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_dates_extract(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, char** data);
1488
1501 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_strings_combine(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, const char* remark, char* data);
1502
1514 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_strings_modify(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, char* data);
1515
1527 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_strings_extract(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, char** data);
1528
1541 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_files_combine(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, char* data, bool const compress);
1542
1555 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_files_modify(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, char* data, bool const compress);
1556
1569 tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_files_extract(tianzuo_QiankunInt * QiankunInt_pointer, const char* db_file_name, const char* db_password, const char* data_name, char* data, bool over_write);
1570
1571#ifdef __cplusplus
1572}
1573#endif
乾坤袋数据模块类 for c++
Definition tianzuo.QiankunInterface.h:611
tianzuo_QiankunDataInt()
Definition tianzuo.QiankunInterface.h:613
virtual int initialize()=0
virtual ~tianzuo_QiankunDataInt()
Definition tianzuo.QiankunInterface.h:614
virtual int terminate()=0
乾坤袋数据接口 for c++
Definition tianzuo.QiankunInterface.h:639
static tianzuo_QiankunDataInt * initialize()
static void terminate(tianzuo_QiankunDataInt **QiankunDataInt_pointer)
乾坤袋模块类 for c++
Definition tianzuo.QiankunInterface.h:98
virtual int db_set_name(Qiankun_db_verify_pointer db_verify, const char *db_name)=0
virtual int data_set_index(Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, int const new_data_index)=0
virtual int terminate()=0
virtual int initialize()=0
virtual int db_close_database(Qiankun_db_verify_pointer db_verify)=0
virtual int data_extract(Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, Qiankun_function_pointer function, Qiankun_get_user_data_pointer get_user_data)=0
virtual int data_get_size_list(Qiankun_db_verify_pointer db_verify, int const size_type, Qiankun_function_pointer function, Qiankun_user_data_pointer user_data)=0
virtual int data_rename(Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, const char *new_data_name, const char *new_remark)=0
virtual int data_get_name_list(Qiankun_db_verify_pointer db_verify, int const name_type, Qiankun_function_pointer function, Qiankun_user_data_pointer user_data)=0
virtual ~tianzuo_QiankunInt()
Definition tianzuo.QiankunInterface.h:101
virtual int data_extract_list(Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, Qiankun_user_data_pointer name_list, Qiankun_user_data_pointer data_list)=0
virtual int data_combine_list(Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, Qiankun_user_data_pointer name_list, Qiankun_user_data_pointer data_list, bool const compress)=0
virtual int data_extract_file(Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, char *file_name, bool const over_write)=0
virtual int data_extract_bytes(Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, Qiankun_function_pointer function, Qiankun_get_user_data_pointer get_user_data)=0
virtual int db_get_name(Qiankun_db_verify_pointer db_verify, char *&db_name)=0
virtual int data_modify(Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, Qiankun_user_data_pointer user_data, bool const compress, bool const update_index=true)=0
virtual int db_open_database(Qiankun_db_verify_pointer db_verify)=0
virtual int data_delete_list(Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, Qiankun_user_data_pointer name_list)=0
virtual int data_get_size(Qiankun_db_verify_pointer db_verify, int const size_type, Qiankun_data_type_pointer data_type, int *data_size)=0
tianzuo_QiankunInt()
Definition tianzuo.QiankunInterface.h:100
virtual int data_get_type_total_number_list(Qiankun_db_verify_pointer db_verify, Qiankun_function_pointer function, Qiankun_user_data_pointer user_data)=0
virtual int data_get_index(Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, int *data_index_code)=0
virtual int data_delete(Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, bool update_index=true)=0
virtual int db_rebuild(Qiankun_db_verify_pointer db_verify, const char *new_db_file_name)=0
virtual int data_get_name(Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, int const name_type, char *&data_name)=0
virtual int data_extract_file_list(Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, Qiankun_user_data_pointer name_list, Qiankun_user_data_pointer data_list, bool const over_write)=0
virtual int db_get_total_number(Qiankun_db_verify_pointer db_verify, int *file_number)=0
virtual int db_change_password(Qiankun_db_verify_pointer db_verify, const char *new_password)=0
virtual int data_modify_list(Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, Qiankun_user_data_pointer name_list, Qiankun_user_data_pointer data_list, bool const compress)=0
virtual int data_get_type_total_number(Qiankun_db_verify_pointer db_verify, int const data_type_code, int *data_type_total_number)=0
virtual int data_modify_file(Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, const char *remark, char *file_name, bool const compress, bool const update_index=true)=0
virtual int data_get_index_list(Qiankun_db_verify_pointer db_verify, Qiankun_function_pointer function, Qiankun_user_data_pointer user_data)=0
virtual int data_get_type(Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, int *data_type_code)=0
virtual int db_create_database(Qiankun_db_verify_pointer db_verify, const char *db_name, bool const over_write)=0
virtual int data_get_type_list(Qiankun_db_verify_pointer db_verify, Qiankun_function_pointer function, Qiankun_user_data_pointer user_data)=0
virtual int data_combine(Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, const char *remark, Qiankun_user_data_pointer user_data, bool const compress, int const data_index)=0
virtual int db_set_total_number(Qiankun_db_verify_pointer db_verify, int const add_file_number)=0
virtual int data_check(Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type)=0
乾坤袋接口 for c++
Definition tianzuo.QiankunInterface.h:583
static void terminate(tianzuo_QiankunInt **QiankunInt_pointer)
virtual ~tianzuo_QiankunInterface()
static tianzuo_QiankunInt * initialize()
数据类型
Definition tianzuo.QiankunInterface.h:38
const char * get_data_name()
Definition tianzuo.QiankunInterface.h:53
Qiankun_data_type_tag(int data_type, int data_index, const char *data_name)
Definition tianzuo.QiankunInterface.h:39
int get_data_index()
Definition tianzuo.QiankunInterface.h:49
int get_data_type()
Definition tianzuo.QiankunInterface.h:45
数据库验证
Definition tianzuo.QiankunInterface.h:27
const char * m_db_password
Definition tianzuo.QiankunInterface.h:29
const char * m_db_file_name
Definition tianzuo.QiankunInterface.h:28
Qiankun_db_verify(const char *db_file_name, const char *db_password)
Definition tianzuo.QiankunInterface.h:30
回调函数
Definition tianzuo.QiankunInterface.h:87
Qiankun_function_tag(void *function, void *context)
Definition tianzuo.QiankunInterface.h:90
void * m_function
Definition tianzuo.QiankunInterface.h:88
void * m_context
Definition tianzuo.QiankunInterface.h:89
返回用户数据
Definition tianzuo.QiankunInterface.h:76
Qiankun_get_user_data_tag(void *&userData, int *nUserSize)
Definition tianzuo.QiankunInterface.h:79
void ** m_user_data
Definition tianzuo.QiankunInterface.h:77
int * m_user_size
Definition tianzuo.QiankunInterface.h:78
用户数据
Definition tianzuo.QiankunInterface.h:65
int m_user_size
Definition tianzuo.QiankunInterface.h:67
Qiankun_user_data_tag(void *user_data, int user_size)
Definition tianzuo.QiankunInterface.h:68
void * m_user_data
Definition tianzuo.QiankunInterface.h:66
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_double_modify(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, double data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_int_extract(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, int *data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_dates_modify(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, char *data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_file_combine(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, const char *remark, char *file_name, bool const compress)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_file_extract(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, char *file_name, bool over_write)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_currencys_modify(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, char *data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_db_create_database(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *db_name, bool const over_write)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_string_modify(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, char *data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_floats_extract(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, char **data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_get_type_list(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, char **data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_double_extract(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, double *data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_shorts_modify(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, char *data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_file_modify(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, const char *remark, char *file_name, bool const compress)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_initialize(tianzuo_QiankunInt *QiankunInt_pointer)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_get_size_list(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, int size_type, char **data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_int_modify(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, int data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_get_type_total_number_list(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, char **data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_files_extract(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, char *data, bool over_write)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_int_combine(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, const char *remark, int data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_strings_combine(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, const char *remark, char *data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_double_combine(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, const char *remark, double data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_ints_extract(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, char **data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_files_combine(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, char *data, bool const compress)
struct Qiankun_function_tag Qiankun_function_struct
tianzuo_Qiankun_lib int tianzuo_QiankunInt_db_get_name(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, char *&db_name)
struct Qiankun_db_verify * Qiankun_db_verify_pointer
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_doubles_combine(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, const char *remark, char *data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_db_set_name(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *db_name)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_currency_combine(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, const char *remark, double data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_ints_modify(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, char *data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_db_get_total_number(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, int *file_number)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_float_combine(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, const char *remark, float data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_dates_extract(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, char **data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_ints_combine(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, const char *remark, char *data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_date_combine(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, const char *remark, double data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_files_modify(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, char *data, bool const compress)
struct Qiankun_function_tag * Qiankun_function_pointer
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_date_extract(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, double *data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_short_modify(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, short data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_check(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, int data_type)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_float_modify(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, float data)
struct Qiankun_user_data_tag Qiankun_user_data_struct
tianzuo_Qiankun_lib void tianzuo_QiankunInterface_terminate(tianzuo_QiankunInt **QiankunInt_pointer)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_strings_modify(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, char *data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_floats_combine(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, const char *remark, char *data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_doubles_modify(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, char *data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_get_size(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, int size_type, const char *data_name, int data_type, int *data)
struct Qiankun_get_user_data_tag Qiankun_get_user_data_struct
tianzuo_Qiankun_lib int tianzuo_QiankunInt_db_set_total_number(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, int const add_file_number)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_db_rebuild(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *new_db_file_name)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_currency_modify(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, double data)
struct Qiankun_user_data_tag * Qiankun_user_data_pointer
struct Qiankun_db_verify Qiankun_db_verify_struct
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_dates_combine(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, const char *remark, char *data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_shorts_extract(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, char **data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_db_open_database(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_currencys_extract(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, char **data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_shorts_combine(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, const char *remark, char *data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_string_extract(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, char **data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_short_combine(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, const char *remark, short data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_get_name_list(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, int name_type, char **data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_doubles_extract(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, char **data)
struct Qiankun_data_type_tag Qiankun_data_type_struct
#define tianzuo_Qiankun_lib
Definition tianzuo.QiankunInterface.h:21
struct Qiankun_get_user_data_tag * Qiankun_get_user_data_pointer
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_delete(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name)
struct Qiankun_data_type_tag * Qiankun_data_type_pointer
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_strings_extract(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, char **data)
tianzuo_Qiankun_lib tianzuo_QiankunInt * tianzuo_QiankunInterface_initialize()
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_get_index_list(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, char **data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_string_combine(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, const char *remark, char *data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_currencys_combine(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, const char *remark, char *data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_currency_extract(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, double *data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_float_extract(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, float *data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_date_modify(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, double data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_floats_modify(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, char *data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_short_extract(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name, short *data)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_data_deletes(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *data_name)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_db_change_password(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password, const char *new_password)
tianzuo_Qiankun_lib int tianzuo_QiankunInt_db_close_database(tianzuo_QiankunInt *QiankunInt_pointer, const char *db_file_name, const char *db_password)