diff options
author | Huynh Tran <nthuynh75@gmail.com> | 2005-06-30 20:46:57 +0000 |
---|---|---|
committer | Huynh Tran <nthuynh75@gmail.com> | 2005-06-30 20:46:57 +0000 |
commit | 38cfcdd2b7681fc32b1464a4905c721246cf6d75 (patch) | |
tree | a4c6aca110f71fe221e66cdf57d4c5b66a8501a4 /src/dalstorage.h | |
parent | a5aee1322f498537f8de83123099bbfcb2e3a969 (diff) | |
download | manaserv-38cfcdd2b7681fc32b1464a4905c721246cf6d75.tar.gz manaserv-38cfcdd2b7681fc32b1464a4905c721246cf6d75.tar.bz2 manaserv-38cfcdd2b7681fc32b1464a4905c721246cf6d75.tar.xz manaserv-38cfcdd2b7681fc32b1464a4905c721246cf6d75.zip |
Fixed memory leak, implemented delAccount() + unit tests and now using reference-counted smart pointers to facilitate the memory management.
Diffstat (limited to 'src/dalstorage.h')
-rw-r--r-- | src/dalstorage.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/dalstorage.h b/src/dalstorage.h index 80408f6c..637dfa39 100644 --- a/src/dalstorage.h +++ b/src/dalstorage.h @@ -81,7 +81,7 @@ class DALStorage: public Storage * @param account the new account. */ void - addAccount(const Account* account); + addAccount(const AccountPtr& account); /** @@ -150,7 +150,7 @@ class DALStorage: public Storage * @exeception tmwserv::dal::DbSqlQueryExecFailure. */ void - _addAccount(const Account* account); + _addAccount(const AccountPtr& account); /** @@ -161,7 +161,18 @@ class DALStorage: public Storage * @exception tmwserv::dal::DbSqlQueryExecFailure. */ void - _updAccount(const Account* account); + _updAccount(const AccountPtr& account); + + + /** + * Delete an account and its associated data from the database. + * + * @param account the account to update. + * + * @exception tmwserv::dal::DbSqlQueryExecFailure. + */ + void + _delAccount(const AccountPtr& account); /** |