TekUserUnixRW Class Reference

Inheritance diagram for TekUserUnixRW:

Inheritance graph
[legend]
Collaboration diagram for TekUserUnixRW:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TekUserUnixRW ()
 ~TekUserUnixRW ()
virtual TEKERR get_Description (uchar_t **RetVal)
virtual TEKERR get_GroupID (gid_t *RetVal)
virtual TEKERR get_HomeDir (uchar_t **RetVal)
virtual TEKERR get_UserID (uid_t *RetVal)
virtual TEKERR get_Username (uchar_t **RetVal)
virtual TEKERR put_Description (const uchar_t *NewDescription)
virtual TEKERR put_GroupID (gid_t NewGroupID)
virtual TEKERR put_HomeDir (const uchar_t *NewHomeDir)
virtual TEKERR put_Password (uchar_t *NewPassword)
virtual TEKERR put_TekUserInfo (struct TekUserInfo *SUInfo)
virtual TEKERR put_UserID (uid_t NewID)
virtual TEKERR put_Username (const uchar_t *NewUsername)
virtual TEKERR Save ()

Detailed Description

Defines the TekUser format for unix and linux platforms, and provides read-write access.

This interface is FINAL.

Author:
Kevin McBride

Definition at line 38 of file tekuserunixrw.h.


Constructor & Destructor Documentation

TekUserUnixRW TekUserUnixRW  ) 
 

Instantizer. SUInfo is the input.

WARNING!!!!! All uchar_t's will be taken over by the TekUserUnixRW instance, so make sure you create the uchar_t's with char2uchar()! Failure to do so results in unpredictable results, especially since ucharempty() is called! This warning applies only to this instantizer.

Definition at line 40 of file TekUserUnixRW.cpp.

~TekUserUnixRW  ) 
 

Destructor.

Definition at line 53 of file TekUserUnixRW.cpp.


Member Function Documentation

TEKERR get_Description uchar_t **  RetVal  )  [virtual]
 

Retrieves a description or a real name, of the user in question.

Implements TekUser.

Definition at line 84 of file TekUserUnixRW.cpp.

TEKERR get_GroupID gid_t *  RetVal  )  [virtual]
 

Retrieves the primary Group ID of the user in question.

Implements TekUser.

Definition at line 103 of file TekUserUnixRW.cpp.

References TekUserInfo::TekUserInfo_GroupID.

TEKERR get_HomeDir uchar_t **  RetVal  )  [virtual]
 

Retrieves the home directory of the user in question.

Implements TekUser.

Definition at line 122 of file TekUserUnixRW.cpp.

TEKERR get_UserID uid_t *  RetVal  )  [virtual]
 

Retrieves the User ID of the user in question.

Implements TekUser.

Definition at line 141 of file TekUserUnixRW.cpp.

References TekUserInfo::TekUserInfo_UserID.

TEKERR get_Username uchar_t **  RetVal  )  [virtual]
 

Retrieves the username of the user in question.

Implements TekUser.

Definition at line 160 of file TekUserUnixRW.cpp.

TEKERR put_Description const uchar_t NewDescription  )  [virtual]
 

Sets a new description of the user in question. This should be set to the real name of the person to make identification easier.

Implements TekUser.

Definition at line 181 of file TekUserUnixRW.cpp.

References TekUserInfo::TekUserInfo_Description.

TEKERR put_GroupID gid_t  NewGroupID  )  [virtual]
 

Sets a new Group ID of the user in question.

Implements TekUser.

Definition at line 208 of file TekUserUnixRW.cpp.

TEKERR put_HomeDir const uchar_t NewHomeDir  )  [virtual]
 

Sets a new home directory of the user in question.

Implements TekUser.

Definition at line 219 of file TekUserUnixRW.cpp.

References TekUserInfo::TekUserInfo_HomeDir.

TEKERR put_Password uchar_t NewPassword  )  [virtual]
 

Sets a new password of the user in question.

WARNING! This parameter will fry the entire uchar_t! This is for privacy reasons!!!!!

Implements TekUser.

Definition at line 250 of file TekUserUnixRW.cpp.

TEKERR put_TekUserInfo struct TekUserInfo SUInfo  )  [virtual]
 

Sets a new set of user information into the instance.

Implements TekUser.

Definition at line 69 of file TekUserUnixRW.cpp.

TEKERR put_UserID uid_t  NewID  )  [virtual]
 

Sets a new User ID of the user in question.

Implements TekUser.

Definition at line 261 of file TekUserUnixRW.cpp.

TEKERR put_Username const uchar_t NewUsername  )  [virtual]
 

Sets a new username of the user in question.

Implements TekUser.

Definition at line 272 of file TekUserUnixRW.cpp.

References TekUserInfo::TekUserInfo_Username.

TEKERR Save  )  [virtual]
 

Saves the user information into the provided instance of TekUserDB.

Implements TekUser.

Definition at line 299 of file TekUserUnixRW.cpp.

References TekUserDB::WriteUser().

Here is the call graph for this function:


The documentation for this class was generated from the following files: SourceForge.net Logo  Technical Library Template Interface Project Page