Fairport  v1.0.38
Database
+ Collaboration diagram for Database:

Classes

class  fairport::database_impl< T >
 PST implementation. More...
class  fairport::db_context
 Database external interface. More...

Functions

shared_db_ptr fairport::open_database (const std::wstring &filename)
 Open a db_context for the given file.
std::tr1::shared_ptr< small_pst > fairport::open_small_pst (const std::wstring &filename)
 Try to open the given file as an ANSI store.
std::tr1::shared_ptr< large_pst > fairport::open_large_pst (const std::wstring &filename)
 Try to open the given file as a Unicode store.

Function Documentation

fairport::shared_db_ptr fairport::open_database ( const std::wstring &  filename) [inline]

Open a db_context for the given file.

Exceptions:
invalid_formatif the file format is not understood
runtime_errorif an error occurs opening the file
crc_fail(FAIRPORT_VALIDATION_LEVEL_WEAK) if the CRC of this header doesn't match
Parameters:
[in]filenameThe filename to open
Returns:
A shared_ptr to the opened context

Definition at line 209 of file database.h.

std::tr1::shared_ptr< fairport::large_pst > fairport::open_large_pst ( const std::wstring &  filename) [inline]

Try to open the given file as a Unicode store.

Exceptions:
invalid_formatif the file format is not Unicode
runtime_errorif an error occurs opening the file
crc_fail(FAIRPORT_VALIDATION_LEVEL_WEAK) if the CRC of this header doesn't match
Parameters:
[in]filenameThe filename to open
Returns:
A shared_ptr to the opened context

Definition at line 231 of file database.h.

std::tr1::shared_ptr< fairport::small_pst > fairport::open_small_pst ( const std::wstring &  filename) [inline]

Try to open the given file as an ANSI store.

Exceptions:
invalid_formatif the file format is not ANSI
runtime_errorif an error occurs opening the file
crc_fail(FAIRPORT_VALIDATION_LEVEL_WEAK) if the CRC of this header doesn't match
Parameters:
[in]filenameThe filename to open
Returns:
A shared_ptr to the opened context

Definition at line 225 of file database.h.