Microsoft Information Protection SDK - C++ 1.17
API Reference Documentation for C++
Loading...
Searching...
No Matches
Identity Class Reference

Abstraction for identity. More...

#include <common_types.h>

Public Member Functions

 Identity ()
 Default Identity constructor used when a user email address is not known.
 
 Identity (const Identity &other)
 Identity copy constructor.
 
 Identity (const std::string &email)
 Identity constructor used when a user email address is known.
 
 Identity (const std::string &email, const std::string &name)
 Identity constructor used when a user email address and user name is known.
 
const std::string & GetEmail () const
 Get the email.
 
const std::string & GetName () const
 Get the user's friendly name. used for text marking.
 

Private Attributes

std::string mEmail
 
std::string mName
 

Detailed Description

Abstraction for identity.

Constructor & Destructor Documentation

◆ Identity() [1/4]

Identity::Identity ( )
inline

Default Identity constructor used when a user email address is not known.

◆ Identity() [2/4]

Identity::Identity ( const Identity & other)
inline

Identity copy constructor.

Parameters
Identityused to create the copy.

◆ Identity() [3/4]

Identity::Identity ( const std::string & email)
inlineexplicit

Identity constructor used when a user email address is known.

Parameters
emailmust be valid email address.

◆ Identity() [4/4]

Identity::Identity ( const std::string & email,
const std::string & name )
inlineexplicit

Identity constructor used when a user email address and user name is known.

Parameters
emailmust be valid email address.
nameuser name.

Member Function Documentation

◆ GetEmail()

const std::string & Identity::GetEmail ( ) const
inline

Get the email.

Returns
the email.

◆ GetName()

const std::string & Identity::GetName ( ) const
inline

Get the user's friendly name. used for text marking.

Returns
the friendly name.

Member Data Documentation

◆ mEmail

std::string Identity::mEmail
private

◆ mName

std::string Identity::mName
private

The documentation for this class was generated from the following file: