The manager interface for interacting with a stored budget.
More...
#include <BudgetStorage.hpp>
|
| struct | Data |
| | Represents a data-bag for serialising the budget information. More...
|
The manager interface for interacting with a stored budget.
◆ BudgetStorage() [1/3]
| drn::storage::BudgetStorage::BudgetStorage |
( |
| ) |
|
|
default |
◆ BudgetStorage() [2/3]
| drn::storage::BudgetStorage::BudgetStorage |
( |
const BudgetStorage & | | ) |
|
|
delete |
◆ BudgetStorage() [3/3]
| drn::storage::BudgetStorage::BudgetStorage |
( |
BudgetStorage && | | ) |
|
|
default |
◆ ~BudgetStorage()
| virtual drn::storage::BudgetStorage::~BudgetStorage |
( |
| ) |
|
|
virtualdefault |
◆ changeLocation()
| virtual void drn::storage::BudgetStorage::changeLocation |
( |
const ::QString & | location | ) |
|
|
pure virtual |
When implemented, changes the storage location for storing or loading a budget.
- Exceptions
-
- Parameters
-
| location | The path to the location of the budget. |
Implemented in drn::file_storage::BudgetFile.
◆ load()
| virtual Data drn::storage::BudgetStorage::load |
( |
| ) |
const |
|
nodiscardpure virtual |
When implemented, loads a budget file from a storage location.
- Exceptions
-
- Returns
- The values loaded for the budget file.
Implemented in drn::file_storage::BudgetFile.
◆ name()
| virtual const ::QString & drn::storage::BudgetStorage::name |
( |
| ) |
const |
|
nodiscardpure virtualnoexcept |
When implemented, provides an accessor to the name of the budget stored, e.g. when stored on a file-system this would be the file-name.
Implemented in drn::file_storage::BudgetFile.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ store()
| virtual void drn::storage::BudgetStorage::store |
( |
const Data & | data | ) |
const |
|
pure virtual |
When implemented, stores all budget information to a location.
- Exceptions
-
- Parameters
-
| [in] | data | The budget data to store. |
Implemented in drn::file_storage::BudgetFile.