User Documentation
RAVL, Recognition And Vision Library
DEVELOP HOME PAGE CLASS LIST CONTENTS
Ravl - OS - UserInfoC
 

  PUBLIC
UserInfoC::UserInfoC(void)
UserInfoC::UserInfoC(StringC)
UserInfoC::UserInfoC(UIntT)
UserInfoC::Exists(void) const
UserInfoC::IsValid(void) const
UserInfoC::NullUser(void)
UserInfoC::Login(void) const
UserInfoC::FullName(void) const
UserInfoC::HomeDir(void) const
UserInfoC::Shell(void) const
UserInfoC::Hash(void) const
UserInfoC::Mail(StringC)
UserInfoC::Mail(StringC,StringC)
UserInfoC::Mail(StringC,TextFileC &)
UserInfoC::MailFile(StringC,StringC)
UserInfoC::operator ==(const UserInfoC &) const
UserInfoC::operator !=(const UserInfoC &) const
UserInfoC::IsRoot(void) const
UserInfoC::WhoAmI(void)

   UserInfoC   
 
User information.
 
include "Ravl/OS/UserInfo.hh"
Created:29.8.1997 
User Level:Normal
Library:RavlOS
In Scope:RavlN

Comments:
This is a small object.

Variables:
Methods:
UserInfoC()
Default constructor.
Creates a null structure.

UserInfoC(StringC login)
Constructor from login.

UserInfoC(UIntT uid)
Constructor from user id.

bool Exists() const
Does user exist ?

bool IsValid() const
Could be a valid login ?
Mainly to check if UserInfoC was constructed with the default constructor.

void NullUser()
Make this entry invalid.

const StringC Login() const
Get login.

const StringC FullName() const
Get login.

const StringC HomeDir() const
Get home directory.

const StringC Shell() const
Get default shell.

UIntT Hash() const
Get a hash value.

bool Mail(StringC Content)
Attempt to mail the user
This takes a raw message and formats in appropriately. It expects the message to be in the following format.

To:xxx

Subject:xxx

(empty line)

Message contents.


bool Mail(StringC Subject,StringC Content)
Attempt to mail the user

bool Mail(StringC Subject,TextFileC & Content)
Attempt to mail the user

bool MailFile(StringC Subject,StringC Filename)
Attempt to mail the user

bool operator ==(const UserInfoC & oth) const
Are two users equal ?

bool operator !=(const UserInfoC & oth) const
Are two users unequal ?

bool IsRoot() const
Test is user is root.

static UserInfoC WhoAmI()
Get current user.


Maintainer:Charles Galambos, Created: 29.8.1997, Documentation by CxxDoc: Tue Aug 13 09:59:02 2002