forked from Research/WhisperCom
Added Priorities in include/Whisper/Messages/Priority.hpp
This commit is contained in:
parent
7f1d06d549
commit
6224f5b75e
@ -17,42 +17,33 @@ namespace Whisper
|
|||||||
/**
|
/**
|
||||||
* @brief namespace for all data related DataTypes, classes, etc.
|
* @brief namespace for all data related DataTypes, classes, etc.
|
||||||
*/
|
*/
|
||||||
namespace Data
|
namespace Messages
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \defgroup data_classifications Classification of Data within Messages
|
* \defgroup data_priority Priority of Messages
|
||||||
* Data in Message can be classified occording to the non-disclosure of its information.
|
* Messages can be priortisied according to their importants.
|
||||||
* In whisper-com certain rules are enforced occording to data classification
|
* In whisper-com certain rules are enforced according to message priority
|
||||||
* e.g. messages may be dropped or not routed through gateways.
|
* e.g. important messages may be transorted and processed faster
|
||||||
* Furthermore, encryption of data may or may not be enforced.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Enumeration of different data classifications.
|
* @brief Enumeration of different message priorities.
|
||||||
* \ingroup data_classifications
|
* \ingroup message_priorities
|
||||||
* Data classifications classify the data within the payload of a message
|
* Message priorities divides messages into three levels. We think three
|
||||||
* according to six levels. We think six levels should be enough and
|
* levels should be enough and fewer limits the flexibility of the user
|
||||||
* fewer limits the flexibility of the user and more adds to the overall
|
* and more adds to the overall complexity.
|
||||||
* complexity.
|
|
||||||
*/
|
*/
|
||||||
enum class classification : std::uint8_t
|
enum class priority : std::uint8_t
|
||||||
{
|
{
|
||||||
/// The data is public and may even be transmitted public to the Internet.
|
/// Messages of Priority low are additional information
|
||||||
PUBLIC,
|
LOW,
|
||||||
/// The data is classified open. Everyone with access to the network may read it
|
/// Messages of Priority medium are information for basic operation
|
||||||
/// but the data is not allowed to be published to the internet or other non local networks.
|
MEDIUM,
|
||||||
OPEN,
|
/// Messages of Priority high are essential for survival
|
||||||
/// The data is classified RESTRICTED
|
HIGH,
|
||||||
RESTRICTED,
|
}; // enum class priority
|
||||||
/// the data is classified CONFIDENTIAL
|
|
||||||
CONFIDENTIAL,
|
|
||||||
/// The data is classified as SECRET
|
|
||||||
SECRET,
|
|
||||||
/// The data is classified as TOP SECRET.
|
|
||||||
TOP_SECRET
|
|
||||||
}; // enum class classification
|
|
||||||
|
|
||||||
}; // namespace Data
|
}; // namespace Data
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user