Skip to main content

ERUCES::TEMessagePrincipal

#include <temsgprincipal.h>

The TEMessagePrincipal class provides methods for maintaining message principals.

The TEMessagePrincipal class is derived from the TEPrincipalInfo class.

© Pi Soft, 2018-2026 · Tricryption Engine 8.1

Inheritance​

Static Public Attributes​

TypeNameDescription
_TESTD stringCLASSNAME

Public Member Functions​

MemberDescription
TEMessagePrincipal()The TEMessagePrincipal constructor is the default class constructor.
TEMessagePrincipal(const TEMessagePrincipal &)The TEMessagePrincipal constructor copies a TEMessagePrincipal object.
TEMessagePrincipal & operator=(const TEMessagePrincipal &)The = operator assigns a deep copy of the source's implementation object to this object (self-assignment safe; the previous implementation object is freed).
~TEMessagePrincipal()The TEMessagePrincipal destructor is the class destructor.
const _TESTD string getPrincipalName() constThe getPrincipalName method gets the name of a principal. It's the same as message.
void setCode(const uint32_t code)The setCode method sets message principal code.
uint32_t getCode() constThe getCode method gets message principal code.
void setMessage(const _TESTD string &msg)The setMessage method sets a message principal's message.
const _TESTD string getMessage() constThe getMessage method gets a message principal's message.
TEObject * clone() constThe clone method clones an object.
const _TESTD string getClassName() constThe getClassName method gets the name of the TEMessagePrincipal class.

Member Function Documentation​

TEMessagePrincipal()​

The TEMessagePrincipal constructor is the default class constructor.

TEMessagePrincipal(const TEMessagePrincipal &)​

The TEMessagePrincipal constructor copies a TEMessagePrincipal object.

TEMessagePrincipal & operator=(const TEMessagePrincipal &)​

The = operator assigns a deep copy of the source's implementation object to this object (self-assignment safe; the previous implementation object is freed).

TE81-448 (W36 round 1): until this round the implicit member copied the pointer, so the assignee and the source freed one object twice.

~TEMessagePrincipal()​

The TEMessagePrincipal destructor is the class destructor.

const _TESTD string getPrincipalName() const​

The getPrincipalName method gets the name of a principal. It's the same as message.

Returns: Returns a string representing the name of a principal.

void setCode(const uint32_t code)​

The setCode method sets message principal code.

Parameters

ParameterDescription
codeA message principal's code.

uint32_t getCode() const​

The getCode method gets message principal code.

Returns: Returns message principal code.

void setMessage(const _TESTD string &msg)​

The setMessage method sets a message principal's message.

Parameters

ParameterDescription
msgA string representing a message principal's message.

const _TESTD string getMessage() const​

The getMessage method gets a message principal's message.

Returns: Returns a string representing the message principal's message.

TEObject * clone() const​

The clone method clones an object.

Returns: Returns a newly cloned TEMessagePrincipal object.

const _TESTD string getClassName() const​

The getClassName method gets the name of the TEMessagePrincipal class.

Returns: Returns a string representing the name of the TEMessagePrincipal class.