#include <User.h>
Public Member Functions | |
| User (Cache *cache, const string &login, unsigned quota) | |
| Constructor. | |
| ~User () | |
| Destructor. | |
| Space * | createSpace (const string &name, unsigned softQuota, unsigned hardQuota) |
| Creates the new Space object. | |
| Space * | loadSpace (const string &name) |
| Loads the Space from the file and fills with cache data. | |
| Space * | selectSpace (const string &name) |
| Returnes Space reference that has the given name or NULL if it does not exist. | |
Definition at line 27 of file User.h.
| User::User | ( | Cache * | cache, | |
| const string & | login, | |||
| unsigned | quota | |||
| ) |
| Space * User::createSpace | ( | const string & | name, | |
| unsigned | softQuota, | |||
| unsigned | hardQuota | |||
| ) |
Creates the new Space object.
If space exists, returns pointer to it - quota parameters are ignored. At this point space is added to GarbageCollector's observed list to remove outdated entries in the future.
| name | Namespace's name. | |
| softQuota | Soft quota amount. | |
| hardQuota | Hard quota amount. |
| Space * User::loadSpace | ( | const string & | name | ) |
| Space * User::selectSpace | ( | const string & | name | ) |
1.5.5