#include <unistd.h>
#include <sys/types.h>
#include <string>
Go to the source code of this file.
◆ operator!=()
Inequality operator
- Parameters
-
a | first user to compare |
b | second user to compare |
- Returns
- true if they are not equal
Definition at line 271 of file User.cpp.
271 {
273}
uid_t identity() const
user-id
◆ operator<<()
std::ostream & operator<< |
( |
std::ostream & | stream, |
|
|
const OksSystem::User & | user ) |
throw | ( | ) | | | |
Output operator, writes username followed by uid between parenthesis
- Parameters
-
stream | the stream to write into |
user | the user object to write |
- Returns
- parameter stream
Definition at line 248 of file User.cpp.
248 {
250 const std::string name = user.
name_safe();
251 stream << name << '(' << i << ')';
252 return stream;
253}
const std::string & name_safe() const
username - no exception
◆ operator==()
Equality operator
- Parameters
-
a | first user to compare |
b | second user to compare |
- Returns
- true if they are equal
Definition at line 261 of file User.cpp.