User. More...
#include <guser.h>
Inheritance diagram for GUser:
Public Member Functions | |
GUser (GSession *session, size_t id, const R::RString &name, const R::RString &fullname, size_t nb=5) | |
virtual R::RCString | GetClassName (void) const |
int | Compare (const GUser &user) const |
void | SetId (size_t id) |
GProfile * | GetProfile (const R::RString &name) const |
R::RCursor< GProfile > | GetProfiles (void) |
size_t | GetNbProfiles (void) const |
R::RString | GetFullName (void) const |
virtual | ~GUser (void) |
Public Member Functions inherited from GObject | |
GObject (GSession *session, size_t id, const R::RString &name, tObjType type) | |
GObject (const GObject &obj) | |
void | VerifyStatements (tStatementElement what, size_t size) |
int | Compare (const GObject &obj) const |
int | Compare (size_t id) const |
int | Search (const GObject &obj) const |
int | Search (const R::RString &name) const |
GSession * | GetSession (void) const |
size_t | GetId (void) const |
void | SetId (size_t id) |
tObjType | GetObjType (void) const |
R::RCursor< GStatement > | GetObjs (const GStatement *obj, tStatementElement what) |
virtual void | HandlerNotFound (const R::RNotification ¬ification) |
virtual | ~GObject (void) |
Public Member Functions inherited from RObject | |
RObject (const RString &name=RString::Null) | |
int | Compare (const RObject &obj) const |
RString | GetName (void) const |
void | PostNotification (const hNotification handle) |
void | PostNotification (const RCString &name) |
void | PostNotification (const hNotification handle, T data) |
void | PostNotification (const RCString &name, T data) |
void | InsertObserver (tNotificationHandler handler, const hNotification handle, RObject *object) |
void | InsertObserver (tNotificationHandler handler, const RCString &name, RObject *object) |
void | InsertObserver (tNotificationHandler handler, const hNotification handle) |
void | InsertObserver (tNotificationHandler handler, const RCString &name) |
void | InsertObserver (tNotificationHandler handler, RObject *object) |
void | InsertObserver (tNotificationHandler handler) |
void | DeleteObserver (void) |
void | DeleteObserver (const hNotification handle, RObject *object) |
void | DeleteObserver (const RCString &name, RObject *object) |
hNotification | GetNotificationHandle (const RCString &name) const |
RCString | GetNotificationName (const hNotification handle) const |
virtual | ~RObject (void) |
Public Member Functions inherited from RContainer< GProfile, false, true > | |
RContainer (size_t m, size_t i=0) | |
RContainer (const RContainer< GProfile, true, true > &src) | |
RContainer (const RContainer< GProfile, false, true > &src) | |
int | Compare (const RContainer< GProfile, false, true > &) const |
size_t | GetNb (void) const |
size_t | GetMaxPos (void) const |
size_t | GetMaxNb (void) const |
size_t | GetIncNb (void) const |
bool | VerifyIndex (size_t idx) const |
void | VerifyTab (size_t max=0) |
void | Clear (size_t m=0, size_t i=0, bool force=false) |
void | ReOrder (int sortOrder(const void *, const void *), size_t min, size_t max) |
void | ReOrder (int sortOrder(const void *, const void *)) |
void | ReOrder (void) |
void | Exchange (size_t pos1, size_t pos2) |
void | Shift (size_t idx, bool reverse) |
void | Transfer (RContainer< GProfile, a, o > &src) |
RContainer & | operator= (const RContainer< GProfile, true, true > &src) |
RContainer & | operator= (const RContainer< GProfile, false, true > &src) |
void | Copy (const RContainer< GProfile, a, true > &src) |
RContainer & | operator+= (const RContainer< GProfile, a, o > &src) |
size_t | GetIndex (const TUse &tag, bool &find, size_t min=0, size_t max=0) const |
bool | IsIn (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) const |
bool | IsIn (const TUse &tag, size_t min=0, size_t max=0) const |
const GProfile * | operator[] (size_t idx) const |
GProfile * | operator[] (size_t idx) |
const GProfile * | GetPtrAt (size_t idx) const |
GProfile * | GetPtrAt (size_t idx) |
GProfile * | GetPtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) const |
GProfile * | GetPtr (const TUse &tag, size_t min=0, size_t max=0) const |
GProfile * | GetInsertPtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) |
GProfile * | GetInsertPtr (const TUse &tag, size_t min=0, size_t max=0) |
GProfile * | GetInsertPtrAt (const TUse &tag, size_t pos) |
RContainer< GProfile, false, true > * | GetPtrs (const TUse &tag, size_t min=0, size_t max=0) const |
size_t | GetTab (const void **tab, size_t min=0, size_t max=0) const |
size_t | GetTab (void **tab, size_t min=0, size_t max=0) |
size_t | GetTab (const GProfile **tab, size_t min=0, size_t max=0) const |
size_t | GetTab (GProfile **tab, size_t min=0, size_t max=0) |
void | InsertPtrAt (GProfile *ins, size_t pos, bool del) |
void | InsertPtrAt (GProfile *ins, size_t pos) |
void | InsertPtr (GProfile *ins, bool del=false, size_t min=0, size_t max=0) |
void | DeletePtrAt (size_t pos, bool shift, bool del) |
void | DeletePtrAt (size_t pos, bool shift) |
void | DeletePtrAt (size_t pos) |
void | DeletePtr (const TUse &tag, bool sortkey, bool del, size_t min=0, size_t max=0) |
void | DeletePtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) |
void | DeletePtr (const TUse &tag, size_t min=0, size_t max=0) |
void | Inter (const iRContainer< GProfile > &src1, const iRContainer< GProfile > &src2) |
void | Union (const iRContainer< GProfile > &src1, const iRContainer< GProfile > &src2) |
virtual | ~RContainer (void) |
Public Member Functions inherited from iRContainer< C > | |
size_t | GetNb (void) const |
size_t | GetMaxPos (void) const |
size_t | GetMaxNb (void) const |
size_t | GetIncNb (void) const |
bool | VerifyIndex (size_t idx) const |
void | VerifyTab (size_t max=0) |
void | Clear (size_t m=0, size_t i=0, bool force=false) |
void | ReOrder (int sortOrder(const void *, const void *), size_t min, size_t max) |
void | ReOrder (int sortOrder(const void *, const void *)) |
void | ReOrder (void) |
void | Exchange (size_t pos1, size_t pos2) |
void | Shift (size_t idx, bool reverse) |
void | Transfer (iRContainer< C > &src) |
iRContainer & | operator= (const iRContainer< C > &src) |
void | Copy (const iRContainer< C > &src) |
iRContainer & | operator+= (const iRContainer< C > &src) |
size_t | GetIndex (bool order, const TUse &tag, bool &find, size_t min=0, size_t max=0) const |
size_t | GetIndex (const TUse &tag, bool &find, size_t min=0, size_t max=0) const |
bool | IsIn (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) const |
bool | IsIn (const TUse &tag, size_t min=0, size_t max=0) const |
const C * | operator[] (size_t idx) const |
C * | operator[] (size_t idx) |
const C * | GetPtrAt (size_t idx) const |
C * | GetPtrAt (size_t idx) |
C * | GetPtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) const |
C * | GetPtr (const TUse &tag, size_t min=0, size_t max=0) const |
C * | GetInsertPtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) |
C * | GetInsertPtr (const TUse &tag, size_t min=0, size_t max=0) |
C * | GetInsertPtrAt (const TUse &tag, size_t pos) |
size_t | GetTab (const void **tab, size_t min=0, size_t max=0) const |
size_t | GetTab (void **tab, size_t min=0, size_t max=0) |
size_t | GetTab (const C **tab, size_t min=0, size_t max=0) const |
size_t | GetTab (C **tab, size_t min=0, size_t max=0) |
void | InsertPtrAt (C *ins, size_t pos, bool del) |
void | InsertPtrAt (C *ins, size_t pos) |
void | InsertPtr (C *ins, bool del=false, size_t min=0, size_t max=0) |
void | DeletePtrAt (size_t pos, bool shift, bool del) |
void | DeletePtrAt (size_t pos, bool shift) |
void | DeletePtrAt (size_t pos) |
void | DeletePtr (const TUse &tag, bool sortkey, bool del, size_t min=0, size_t max=0) |
void | DeletePtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) |
void | DeletePtr (const TUse &tag, size_t min=0, size_t max=0) |
void | Inter (const iRContainer< C > &src1, const iRContainer< C > &src2) |
void | Union (const iRContainer< C > &src1, const iRContainer< C > &src2) |
virtual | ~iRContainer (void) |
Static Public Member Functions | |
static tObjType | GetType (void) |
Static Public Member Functions inherited from GObject | |
static bool | HasDesc (void) |
static bool | HasTree (void) |
Static Public Member Functions inherited from RContainer< GProfile, false, true > | |
static int | SortOrder (const void *a, const void *b) |
Static Public Member Functions inherited from iRContainer< C > | |
static int | SortOrder (const void *a, const void *b) |
Private Attributes | |
R::RString | FullName |
Additional Inherited Members | |
Protected Member Functions inherited from iRContainer< C > | |
void | Create (const iRContainer< C > &src) |
iRContainer & | NormalCopy (const iRContainer< C > &src) |
void | DeepCopy (const iRContainer< C > &src) |
iRContainer & | Add (const iRContainer< C > &src) |
Protected Attributes inherited from GObject | |
GSession * | Session |
size_t | Id |
tObjType | ObjType |
R::RContainer< GStatement, false, true > * | Subjects |
R::RContainer< GStatement, false, false > * | Predicates |
R::RContainer< GStatement, false, false > * | Values |
Protected Attributes inherited from RObject | |
RString | Name |
Protected Attributes inherited from iRContainer< C > | |
C ** | Tab |
size_t | NbPtr |
size_t | MaxPtr |
size_t | LastPtr |
size_t | IncPtr |
Detailed Description
User.
The GUser class provides a representation for a user.
Constructor & Destructor Documentation
GUser | ( | GSession * | session, |
size_t | id, | ||
const R::RString & | name, | ||
const R::RString & | fullname, | ||
size_t | nb = 5 |
||
) |
Construct a user.
- Parameters
-
session Session. id Identifier. name Name of the user. fullname FullName of the user. nb Number of profiles.
|
virtual |
Destruct a user. Its profiles are also deleted.
Member Function Documentation
|
virtual |
- Returns
- the class name.
Reimplemented from GObject.
|
static |
Give the type of the object.
- Returns
- otUser
int Compare | ( | const GUser & | user | ) | const |
Compare two users by comparing their identifier.
- See also
- R::RContainer
- Parameters
-
user User.
- Returns
- int
void SetId | ( | size_t | id | ) |
Set the identifier.
- Parameters
-
id Identifier.
GProfile* GetProfile | ( | const R::RString & | name | ) | const |
Get a profile with a given name.
- Parameters
-
name Name of the profile.
- Returns
- Pointer to the profile or null if not found.
R::RCursor<GProfile> GetProfiles | ( | void | ) |
Get a cursor over the profiles of user.
size_t GetNbProfiles | ( | void | ) | const |
Get the number of profiles.
R::RString GetFullName | ( | void | ) | const |
Get the full name of the user.
- Returns
- Pointer to a C String.
Member Data Documentation
|
private |
FullName of the user.