SGS Component : DBOneFile ver. 1.0
====================================

A Native Delphi Component for Borland Delphi 2-3-4

It's also available the 16-bit version (e-mail us if you want it).


IMPORTANT: Read the license and warranty in the file LICENCE.TXT.


TABLE OF CONTENTS
-----------------
Overview
Property
License Agreement
Installation
Source Files
Copyright Notes


Overview
--------

DBOneFile is an usefull component that gives you the possibility of generate,
from many files, only a compressed file.

When you work with MDI applications present yourself the problem of work with 
many Tables that do reference to the same Job and you don't known if the 
modifications will be accept or not (Rollback & Commit).
At Run-Time DBOneFile allows you to work with an individual compressed file
and with a temporary directory that the same component will cancel when
you have decided if the change in the job must have effect (Commit) or 
the change in the job must not have effect (RollBack).
The component do this operation in a very good way because it works on temporary Files.

Thanks to the algorithm of used compression (very effective for Tables) 
a notable saving of space on disk is also gotten. 

The authors disclaim all warranties as to this software, whether express
or implied, including without limitation any implied warranties of
merchantability or fitness for a particular purpose. 

We also give you a simple demo applications of this Component.


Property
--------

AutoDelete = True|False 
             if you want that DBOneFile will cancel 
             all the temporary files that it create, when it's destroyed

DBCompress = True|False 
             if you want apply the compression on the DBFile 

DBDefaultDir = The name of default directory

DBEmptyFile = The name of the empty File that permit to create a new job

DBFileExtension = The extension of data File 

DBNewFilePref = the name of the file created by the component (ex. noname1.dbo , noname2.dbo, etc.)
    
TempWorkDir = the name of temporany directory

TempDirPref = the name of temporany directory where 
              works the component (ex. ~td1, ~td2)
        
Methods
--------

Function NewDB:String;                         - Create a new temp directory 
                                                 that contain empty database files

Function Open(DataBaseName:String):String;     - Open an existing file and create a new temp                                                      directory that contain database files

Function Close(DataBaseName:String):String;    - Close an opened file and delete the 
                                                 associated temp-dir

Procedure Used(DataBaseName:String;flag:boolean);    - Set the flag as modified
Procedure Save(DataBaseName:String);                 - Save an opened file

Procedure SaveAs(DataBaseName:String; SecondName:String);  - Save with an other name an 
                                                             opened file

Function Directory(DataBaseName:string):String;            - returns the temp-dir associated 
                                                             with the opened file

Procedure CloseAll;                                        - close all opened files and delete                                                                all temp-dir 


License Agreement
-----------------

You can find full text of SGS Component License agreement in the
file LICENCE.TXT.


Installation
------------
To Install this component in Delphi select:
Component|Install component... in the main menu. 
Select Browse.. and select DBOneF.dcu in the directory of DBOneFile.

After the rebuild of library a new tab named SGS Soft will 
be on the palette.

For info or problems please e-mail at:

SGS Software & Graphics Solutions
sgs@elios.net


Source Files
------------

All sources (100%) of SGS Component are not available here.
If you want to have the sources you have to licence the software.
Please read the file LICENCE.TXT


Copyright Notes
---------------

This component is (C) 1998 S.G.S. srl.

Email:sgs@elios.net
Via Veneto 25
92016 Ribera (AG) - Italy
TEL   ++39-925-545119  
FAX   ++39-925-545464

