Guidance
指路人
g.yi.org
software / rapidq / Examples / Database / ZecBank / ZecBank.html

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Zecreator Datas Bank Engine
Zecreator Datas Bank Engine pour RapidQ
Copyright (c) 2003

I'm propose you an engine to manage a datas bank file under RapidQ. This engine allows you to stock informations (under datas bloc form) into a bank and manipulate this datas.
Sorry to my bad english !
Engine's Functions:

LoadBank
Filename
Open a valid datas bank. "Filename" is the name of file of the bank. This bank must be a compressed bank or not.

DatasCount
Return a value (LONG) of number of blocs in the opened bank.

GetDataName
index of bloc
Returne a value (STRING) of bloc's name N° Index. Index is a position of bloc in the bank.

GetDataIndex
name of bloc
Return a value (LONG) of index to the bloc "name of bloc".

GetDataSize
name of bloc
Return a value (LONG) of the size (in bytes) to the bloc "name of bloc".

GetDataValue
name of bloc
Return a value (STRING) to the all datas of bloc "name of bloc".

AddData
name of bloc, string
Add bloc "name of bloc" in the bank. "String" is a string value for the all datas to add with the bloc. "String" can't to be most great than 65535 bytes (64kb).

AddDataFromFile
name of bloc, filename
Add bloc "name of bloc" in the bank. "Filename" is the file used to add the all datas with the bloc. "Filename" can't to be most great than 65535 bytes (64kb).

ReplaceData
name of bloc, String
Replace datas of bloc "name of bloc" in the bank with "String". "String" is a string value for the all datas to add with the bloc. "String" can't to be most great than 65535 bytes (64kb).


ReplaceDataFromFile
name of bloc,filename
Replace datas of bloc "name of bloc" in the bank with "filename". "Filename" is the file used to replace the old datas structure."Filename" can't to be most great than 65535 bytes (64kb).


RenameData
Old name of bloc, new name of bloc
Rename a bloc with a new name. Note, the new name not must to be used by an other bloc.

DeleteData
name of bloc.
Delete un bloc of datas.

ExtractDataToFile
name of bloc, target filename
Extract a bloc in the file "target filename".

SaveBank
filename
Save the current bank in the "Filename"

CompressBank
Filename
save the current bank in the "Filename" and compress it. This final size of "filename" is reduced (50% at 80%). Note: The loading of a compressed bank is more slow.

CreateBank
Create and init a empty bank.
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2024-4-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2003-06-11 14:18:54