#include <vdbl_database.h>
Public Member Functions | |
bool | create_table (const std::string &_C_i, const _VDBL_userid &_C_u, const _VDBL_tableflags &__f=_VDBL_tableflags()) |
_VDBL_tableid | get_tableid (const std::string &_C_i, const _VDBL_userid &_C_u) const |
bool | drop_table (const _D_tables::iterator &__t, const _D_table_names::iterator &__tn, const _VDBL_userid &_C_u) |
bool | drop_table (const _VDBL_tableid &_C_i, const _VDBL_userid &_C_u) |
bool | drop_table (const std::string &_C_i, const _VDBL_userid &_C_u) |
bool | has_table (const _VDBL_tableid &_C_i, const _VDBL_userid &_C_u) const |
bool | has_table (const std::string &_C_i, const _VDBL_userid &_C_u) const |
_VDBL_table * | get_table (const _VDBL_tableid &_C_i, const _VDBL_userid &_C_u) const |
_VDBL_table * | get_table (const std::string &_C_i, const _VDBL_userid &_C_u) const |
_VDBL_viewid | get_viewid (const std::string &_C_i, const _VDBL_userid &_C_u) const |
bool | create_view (const std::string &_C_i, const _VDBL_userid &_C_u, const _VDBL_context &__c, const std::string &_C_t, const _V_enum &__e) |
bool | drop_view (const _D_views::iterator &__v, const _D_view_names::iterator &__vn, const _VDBL_userid &_C_u) |
bool | drop_view (const _VDBL_viewid &_C_i, const _VDBL_userid &_C_u) |
bool | drop_view (const std::string &_C_i, const _VDBL_userid &_C_u) |
bool | has_view (const _VDBL_viewid &_C_i, const _VDBL_userid &_C_u) const |
bool | has_view (const std::string &_C_i, const _VDBL_userid &_C_u) const |
_VDBL_view * | get_view (const _VDBL_viewid &_C_i, const _VDBL_userid &_C_u) const |
_VDBL_view * | get_view (const std::string &_C_i, const _VDBL_userid &_C_u) const |
_VDBL_database () | |
_VDBL_database (const _VDBL_database &__t) | |
virtual | ~_VDBL_database () |
Protected Member Functions | |
_VDBL_tableid | get_tableid () |
_VDBL_userid | get_userid () |
_VDBL_viewid | get_viewid () |
Friends | |
class | _VDBL_viewdbase |
Definition at line 337 of file vdbl_database.h.
_VDBL_database::_VDBL_database | ( | ) | [inline] |
standard constructor
Definition at line 794 of file vdbl_database.h.
_VDBL_database::_VDBL_database | ( | const _VDBL_database & | __t | ) | [inline] |
copy constructor
Definition at line 800 of file vdbl_database.h.
virtual _VDBL_database::~_VDBL_database | ( | ) | [inline, virtual] |
standard destructor
Definition at line 814 of file vdbl_database.h.
bool _VDBL_database::create_table | ( | const std::string & | _C_i, | |
const _VDBL_userid & | _C_u, | |||
const _VDBL_tableflags & | __f = _VDBL_tableflags() | |||
) | [inline] |
bool _VDBL_database::create_view | ( | const std::string & | _C_i, | |
const _VDBL_userid & | _C_u, | |||
const _VDBL_context & | __c, | |||
const std::string & | _C_t, | |||
const _V_enum & | __e | |||
) | [inline] |
create a new standard view with name _C_i
, evaluation context __c
, for table _C_t
, of type __e
. return true
if creating worked, and false
otherwise.
Reimplemented in database.
Definition at line 675 of file vdbl_database.h.
bool _VDBL_database::drop_table | ( | const std::string & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | [inline] |
delete a table, whose name is provided. return true
, if deleting the table has worked.
Reimplemented in database.
Definition at line 509 of file vdbl_database.h.
bool _VDBL_database::drop_table | ( | const _VDBL_tableid & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | [inline] |
delete a table, whose table id is provided. return true
, if deleting the table has worked.
Definition at line 496 of file vdbl_database.h.
bool _VDBL_database::drop_table | ( | const _D_tables::iterator & | __t, | |
const _D_table_names::iterator & | __tn, | |||
const _VDBL_userid & | _C_u | |||
) | [inline] |
bool _VDBL_database::drop_view | ( | const std::string & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | [inline] |
delete a view, whose name is provided. return true
, if deleting the table has worked.
Reimplemented in database.
Definition at line 742 of file vdbl_database.h.
bool _VDBL_database::drop_view | ( | const _VDBL_viewid & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | [inline] |
delete a view, whose id is provided. return true
, if deleting the table has worked.
Definition at line 729 of file vdbl_database.h.
bool _VDBL_database::drop_view | ( | const _D_views::iterator & | __v, | |
const _D_view_names::iterator & | __vn, | |||
const _VDBL_userid & | _C_u | |||
) | [inline] |
_VDBL_table* _VDBL_database::get_table | ( | const std::string & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline] |
return a pointer to the table with name _C_i
.
Reimplemented in database.
Definition at line 550 of file vdbl_database.h.
_VDBL_table* _VDBL_database::get_table | ( | const _VDBL_tableid & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline] |
return a pointer to the table with id _C_i
.
Definition at line 537 of file vdbl_database.h.
_VDBL_tableid _VDBL_database::get_tableid | ( | const std::string & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline] |
return the table id for a given name
Definition at line 448 of file vdbl_database.h.
_VDBL_tableid _VDBL_database::get_tableid | ( | ) | [inline, protected] |
generate a new unique id for tables, views, and users
Definition at line 392 of file vdbl_database.h.
_VDBL_userid _VDBL_database::get_userid | ( | ) | [inline, protected] |
generate a new unique id for tables, views, and users
Definition at line 393 of file vdbl_database.h.
_VDBL_view* _VDBL_database::get_view | ( | const std::string & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline] |
return a pointer to the view with name _C_i
.
Reimplemented in database.
Definition at line 781 of file vdbl_database.h.
_VDBL_view* _VDBL_database::get_view | ( | const _VDBL_viewid & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline] |
return a pointer to the view with id _C_i
.
Definition at line 769 of file vdbl_database.h.
_VDBL_viewid _VDBL_database::get_viewid | ( | const std::string & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline] |
return the view id of view _C_i
.
Definition at line 661 of file vdbl_database.h.
_VDBL_viewid _VDBL_database::get_viewid | ( | ) | [inline, protected] |
generate a new unique id for tables, views, and users
Definition at line 394 of file vdbl_database.h.
bool _VDBL_database::has_table | ( | const std::string & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline] |
check whether the table _C_i
exists
Reimplemented in database.
Definition at line 530 of file vdbl_database.h.
bool _VDBL_database::has_table | ( | const _VDBL_tableid & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline] |
check whether the table _C_i
exists
Definition at line 518 of file vdbl_database.h.
bool _VDBL_database::has_view | ( | const std::string & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline] |
check whether the view _C_i
exists
Reimplemented in database.
Definition at line 763 of file vdbl_database.h.
bool _VDBL_database::has_view | ( | const _VDBL_viewid & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline] |
check whether the view with id _C_i
exists
Definition at line 751 of file vdbl_database.h.