database_header.hpp File Reference
defines the database structure in file More...
#include "../my_config.h"
#include "infinint.hpp"
#include "generic_file.hpp"
#include "user_interaction.hpp"
Go to the source code of this file.
|
Namespaces |
| namespace | libdar |
Functions |
| generic_file * | database_header_create (user_interaction &dialog, const std::string &filename, bool overwrite) |
| | create the header for a dar_manager database
|
| generic_file * | database_header_open (user_interaction &dialog, const std::string &filename) |
| | read the header of a dar_manager database
|
Detailed Description
defines the database structure in file
Definition in file database_header.hpp.
Function Documentation
| generic_file* libdar::database_header_create |
( |
user_interaction & |
dialog, |
|
|
const std::string & |
filename, |
|
|
bool |
overwrite |
|
) |
|
|
|
|
create the header for a dar_manager database
- Parameters:
-
| [in] | dialog | is used for user interaction |
| [in] | filename | is the file's name to create/overwrite |
| [in] | overwrite | set to true to allow file overwriting (else generates an error if file exists) |
- Returns:
- the database header has been read and checked the database can now be read from the returned generic_file pointed by the returned value then it must be destroyed with the delete operator.
|
| generic_file* libdar::database_header_open |
( |
user_interaction & |
dialog, |
|
|
const std::string & |
filename |
|
) |
|
|
|
|
read the header of a dar_manager database
- Parameters:
-
| [in] | dialog | for user interaction |
| [in] | filename | is the filename to read from |
- Returns:
- the generic_file where the database header has been put
|
Generated on Sun Oct 8 11:08:24 2006 for Disk ARchive by
1.4.2