天佐.乾坤袋  tianzuo.Qiankun
NoSql数据库 NoSql database
Loading...
Searching...
No Matches
tianzuo_QiankunInt Class Referenceabstract

乾坤袋模块类 for c++ More...

#include <tianzuo.QiankunInterface.h>

Public Member Functions

 tianzuo_QiankunInt ()
 
virtual ~tianzuo_QiankunInt ()
 
initialize

组件初始化

Parameters
[in]
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int initialize ()=0
 
terminate

组件销毁

Parameters
[in]
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int terminate ()=0
 
db_create_database

创建数据库

Parameters
[in]db_verify验证信息
[in]db_name数据库名称
[in]over_write是否重写
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int db_create_database (Qiankun_db_verify_pointer db_verify, const char *db_name, bool const over_write)=0
 
db_open_database

打开数据库

Parameters
[in]db_verify验证信息
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int db_open_database (Qiankun_db_verify_pointer db_verify)=0
 
db_close_database

关闭数据库

Parameters
[in]db_verify验证信息
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int db_close_database (Qiankun_db_verify_pointer db_verify)=0
 
db_change_password

修改密码

Parameters
[in]db_verify验证信息
[in]new_password新的数据库密码
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int db_change_password (Qiankun_db_verify_pointer db_verify, const char *new_password)=0
 
db_get_name

获取数据库名称

Parameters
[in]db_verify验证信息
[out]db_name数据库名称
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int db_get_name (Qiankun_db_verify_pointer db_verify, char *&db_name)=0
 
db_get_total_number

获取数据库数据总数

Parameters
[in]db_verify验证信息
[out]file_number数据库数据总数
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int db_get_total_number (Qiankun_db_verify_pointer db_verify, int *file_number)=0
 
db_rebuild

重建数据库

Parameters
[in]db_verify验证信息
[in]new_db_file_name新的数据库文件路径
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int db_rebuild (Qiankun_db_verify_pointer db_verify, const char *new_db_file_name)=0
 
db_set_name

设置数据库名称

Parameters
[in]db_verify验证信息
[in]db_name数据库名称
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int db_set_name (Qiankun_db_verify_pointer db_verify, const char *db_name)=0
 
db_set_total_number

设置数据库总数

Parameters
[in]db_verify验证信息
[in]add_file_number数据库总数
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int db_set_total_number (Qiankun_db_verify_pointer db_verify, int const add_file_number)=0
 
data_check

检测数据有效性

Parameters
[in]db_verify验证信息
[in]data_type数据类型
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int data_check (Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type)=0
 
data_combine

加入数据

Parameters
[in]db_verify验证信息
[in]data_type数据类型
[in]remark数据备注
[in]user_data数据内容
[in]compress是否压缩
[in]data_index数据序号
Returns
int
Author
郑天佐
Date
2013-4-3
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
 
data_combine_list

加入数据

Parameters
[in]db_verify验证信息
[in]data_type数据类型
[in]name_list数据名称列表
[in]data_list数据内容列表
[in]compress是否压缩
Returns
int
Author
郑天佐
Date
2013-4-3
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
 
data_modify

修改数据

Parameters
[in]db_verify验证信息
[in]data_type数据类型
[in]user_data数据内容
[in]compress是否压缩
[in]update_index是否更新序号
Returns
int
Author
郑天佐
Date
2013-4-3
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
 
data_modify_list

修改数据列表

Parameters
[in]db_verify验证信息
[in]data_type数据类型
[in]name_list数据名称列表
[in]data_list数据内容列表
[in]compress是否压缩
Returns
int
Author
郑天佐
Date
2013-4-3
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
 
data_modify_file

修改文件

Parameters
[in]db_verify验证信息
[in]data_type数据类型
[in]remark数据备注
[in]file_name文件路径
[in]compress是否压缩
[in]update_index是否更新序号
Returns
int
Author
郑天佐
Date
2013-4-3
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
 
data_extract

获取数据

Parameters
[in]db_verify验证信息
[in]data_type数据类型
[in]function获取数据函数指针
[out]get_user_data返回数据内容
Returns
int
Author
郑天佐
Date
2013-4-3
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
 
data_extract_list

获取数据

Parameters
[in]db_verify验证信息
[in]data_type数据类型
[in]name_list数据名称列表
[out]data_list数据内容列表
Returns
int
Author
郑天佐
Date
2013-4-3
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
 
data_extract_bytes

获取数据流

Parameters
[in]db_verify验证信息
[in]data_type数据类型
[in]function获取数据函数指针
[out]get_user_data返回数据内容
Returns
int
Author
郑天佐
Date
2013-4-3
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
 
data_extract_file

获取文件

Parameters
[in]db_verify验证信息
[in]data_type数据类型
[in]name_list数据名称列表
[in]data_list数据内容列表
[in]over_write是否重写
Returns
int
Author
郑天佐
Date
2013-4-3
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_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
 
data_delete

删除数据

Parameters
[in]db_verify验证信息
[in]data_type数据类型
[in]name_list数据名称列表
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int data_delete (Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, bool update_index=true)=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
 
data_get_index

获取序号

Parameters
[in]db_verify验证信息
[in]data_type数据类型
[out]data_index_code数据序号代码
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int data_get_index (Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, int *data_index_code)=0
 
data_get_index_list

获取序号列表

Parameters
[in]db_verify验证信息
[in]function获取数据函数指针
[out]user_data数据内容指针
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int data_get_index_list (Qiankun_db_verify_pointer db_verify, Qiankun_function_pointer function, Qiankun_user_data_pointer user_data)=0
 
data_set_index

设置序号

Parameters
[in]db_verify验证信息
[in]data_type数据类型
[in]new_data_index新的数据序号
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int data_set_index (Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, int const new_data_index)=0
 
data_get_name

获取数据名称

Parameters
[in]db_verify验证信息
[in]data_type数据类型
[in]name_type名称类型
[out]data_name数据名称
Returns
int
Author
郑天佐
Date
2013-4-3
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
 
data_rename

修改数据名称

Parameters
[in]db_verify验证信息
[in]data_type数据类型
[in]new_data_name新的数据名称
[in]new_remark新的数据备注
Returns
int
Author
郑天佐
Date
2013-4-3
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
 
data_get_name_list

获取数据名称列表

Parameters
[in]db_verify验证信息
[in]name_type名称类型
[in]function获取数据函数指针
[out]user_data数据内容
Returns
int
Author
郑天佐
Date
2013-4-3
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
 
data_get_type

获取数据类型

Parameters
[in]db_verify验证信息
[in]data_type数据类型
[out]data_type_code数据类型
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int data_get_type (Qiankun_db_verify_pointer db_verify, Qiankun_data_type_pointer data_type, int *data_type_code)=0
 
data_get_type_list

获取数据类型列表

Parameters
[in]db_verify验证信息
[in]function获取数据函数指针
[out]user_data数据内容
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int data_get_type_list (Qiankun_db_verify_pointer db_verify, Qiankun_function_pointer function, Qiankun_user_data_pointer user_data)=0
 
data_get_type_total_number

获取数据类型总数

Parameters
[in]db_verify验证信息
[in]data_type_code数据类型
[out]data_type_total_number数据类型总数
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int data_get_type_total_number (Qiankun_db_verify_pointer db_verify, int const data_type_code, int *data_type_total_number)=0
 
data_get_type_total_number_list

获取数据类型总数列表

Parameters
[in]db_verify验证信息
[in]function获取数据函数指针
[out]user_data数据内容
Returns
int
Author
郑天佐
Date
2013-4-3
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
 
data_get_size

获取数据大小

Parameters
[in]db_verify验证信息
[in]size_type数据大小类型
[in]data_type数据类型
[out]data_size数据大小
Returns
int
Author
郑天佐
Date
2013-4-3
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
 
data_get_size_list

获取数据大小列表

Parameters
[in]db_verify验证信息
[in]size_type数据大小类型
[in]function获取数据函数指针
[out]user_data数据内容
Returns
int
Author
郑天佐
Date
2013-4-3
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
 

Detailed Description

乾坤袋模块类 for c++

Constructor & Destructor Documentation

◆ tianzuo_QiankunInt()

tianzuo_QiankunInt::tianzuo_QiankunInt ( )
inline

◆ ~tianzuo_QiankunInt()

virtual tianzuo_QiankunInt::~tianzuo_QiankunInt ( )
inlinevirtual

Member Function Documentation

◆ data_check()

virtual int tianzuo_QiankunInt::data_check ( Qiankun_db_verify_pointer  db_verify,
Qiankun_data_type_pointer  data_type 
)
pure virtual

◆ data_combine()

virtual int tianzuo_QiankunInt::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 
)
pure virtual

◆ data_combine_list()

virtual int tianzuo_QiankunInt::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 
)
pure virtual

◆ data_delete()

virtual int tianzuo_QiankunInt::data_delete ( Qiankun_db_verify_pointer  db_verify,
Qiankun_data_type_pointer  data_type,
bool  update_index = true 
)
pure virtual

◆ data_delete_list()

virtual int tianzuo_QiankunInt::data_delete_list ( Qiankun_db_verify_pointer  db_verify,
Qiankun_data_type_pointer  data_type,
Qiankun_user_data_pointer  name_list 
)
pure virtual

◆ data_extract()

virtual int tianzuo_QiankunInt::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 
)
pure virtual

◆ data_extract_bytes()

virtual int tianzuo_QiankunInt::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 
)
pure virtual

◆ data_extract_file()

virtual int tianzuo_QiankunInt::data_extract_file ( Qiankun_db_verify_pointer  db_verify,
Qiankun_data_type_pointer  data_type,
char *  file_name,
bool const  over_write 
)
pure virtual

◆ data_extract_file_list()

virtual int tianzuo_QiankunInt::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 
)
pure virtual

◆ data_extract_list()

virtual int tianzuo_QiankunInt::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 
)
pure virtual

◆ data_get_index()

virtual int tianzuo_QiankunInt::data_get_index ( Qiankun_db_verify_pointer  db_verify,
Qiankun_data_type_pointer  data_type,
int *  data_index_code 
)
pure virtual

◆ data_get_index_list()

virtual int tianzuo_QiankunInt::data_get_index_list ( Qiankun_db_verify_pointer  db_verify,
Qiankun_function_pointer  function,
Qiankun_user_data_pointer  user_data 
)
pure virtual

◆ data_get_name()

virtual int tianzuo_QiankunInt::data_get_name ( Qiankun_db_verify_pointer  db_verify,
Qiankun_data_type_pointer  data_type,
int const  name_type,
char *&  data_name 
)
pure virtual

◆ data_get_name_list()

virtual int tianzuo_QiankunInt::data_get_name_list ( Qiankun_db_verify_pointer  db_verify,
int const  name_type,
Qiankun_function_pointer  function,
Qiankun_user_data_pointer  user_data 
)
pure virtual

◆ data_get_size()

virtual int tianzuo_QiankunInt::data_get_size ( Qiankun_db_verify_pointer  db_verify,
int const  size_type,
Qiankun_data_type_pointer  data_type,
int *  data_size 
)
pure virtual

◆ data_get_size_list()

virtual int tianzuo_QiankunInt::data_get_size_list ( Qiankun_db_verify_pointer  db_verify,
int const  size_type,
Qiankun_function_pointer  function,
Qiankun_user_data_pointer  user_data 
)
pure virtual

◆ data_get_type()

virtual int tianzuo_QiankunInt::data_get_type ( Qiankun_db_verify_pointer  db_verify,
Qiankun_data_type_pointer  data_type,
int *  data_type_code 
)
pure virtual

◆ data_get_type_list()

virtual int tianzuo_QiankunInt::data_get_type_list ( Qiankun_db_verify_pointer  db_verify,
Qiankun_function_pointer  function,
Qiankun_user_data_pointer  user_data 
)
pure virtual

◆ data_get_type_total_number()

virtual int tianzuo_QiankunInt::data_get_type_total_number ( Qiankun_db_verify_pointer  db_verify,
int const  data_type_code,
int *  data_type_total_number 
)
pure virtual

◆ data_get_type_total_number_list()

virtual int tianzuo_QiankunInt::data_get_type_total_number_list ( Qiankun_db_verify_pointer  db_verify,
Qiankun_function_pointer  function,
Qiankun_user_data_pointer  user_data 
)
pure virtual

◆ data_modify()

virtual int tianzuo_QiankunInt::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 
)
pure virtual

◆ data_modify_file()

virtual int tianzuo_QiankunInt::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 
)
pure virtual

◆ data_modify_list()

virtual int tianzuo_QiankunInt::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 
)
pure virtual

◆ data_rename()

virtual int tianzuo_QiankunInt::data_rename ( Qiankun_db_verify_pointer  db_verify,
Qiankun_data_type_pointer  data_type,
const char *  new_data_name,
const char *  new_remark 
)
pure virtual

◆ data_set_index()

virtual int tianzuo_QiankunInt::data_set_index ( Qiankun_db_verify_pointer  db_verify,
Qiankun_data_type_pointer  data_type,
int const  new_data_index 
)
pure virtual

◆ db_change_password()

virtual int tianzuo_QiankunInt::db_change_password ( Qiankun_db_verify_pointer  db_verify,
const char *  new_password 
)
pure virtual

◆ db_close_database()

virtual int tianzuo_QiankunInt::db_close_database ( Qiankun_db_verify_pointer  db_verify)
pure virtual

◆ db_create_database()

virtual int tianzuo_QiankunInt::db_create_database ( Qiankun_db_verify_pointer  db_verify,
const char *  db_name,
bool const  over_write 
)
pure virtual

◆ db_get_name()

virtual int tianzuo_QiankunInt::db_get_name ( Qiankun_db_verify_pointer  db_verify,
char *&  db_name 
)
pure virtual

◆ db_get_total_number()

virtual int tianzuo_QiankunInt::db_get_total_number ( Qiankun_db_verify_pointer  db_verify,
int *  file_number 
)
pure virtual

◆ db_open_database()

virtual int tianzuo_QiankunInt::db_open_database ( Qiankun_db_verify_pointer  db_verify)
pure virtual

◆ db_rebuild()

virtual int tianzuo_QiankunInt::db_rebuild ( Qiankun_db_verify_pointer  db_verify,
const char *  new_db_file_name 
)
pure virtual

◆ db_set_name()

virtual int tianzuo_QiankunInt::db_set_name ( Qiankun_db_verify_pointer  db_verify,
const char *  db_name 
)
pure virtual

◆ db_set_total_number()

virtual int tianzuo_QiankunInt::db_set_total_number ( Qiankun_db_verify_pointer  db_verify,
int const  add_file_number 
)
pure virtual

◆ initialize()

virtual int tianzuo_QiankunInt::initialize ( )
pure virtual

◆ terminate()

virtual int tianzuo_QiankunInt::terminate ( )
pure virtual

The documentation for this class was generated from the following file: