#include <base/Module.h>
Inherits ReferenceCountedObject.
|
enum | Impact { PRIVACY = 1 << 0,
SECURITY = 1 << 1,
CRITICAL = 1 << 2,
COSMETIC = 1 << 31
} |
|
◆ Module()
◆ compareVersions()
static int Module::compareVersions |
( |
const String & |
a, |
|
|
const String & |
b |
|
) |
| |
|
staticnoexcept |
Compares the given versions.
◆ getConsumer()
const String& Module::getConsumer |
( |
| ) |
const |
|
inlinenoexcept |
Returns the consumer module of the module.
◆ getDescription()
const String& Module::getDescription |
( |
| ) |
const |
|
inlinenoexcept |
Returns the description of the module.
◆ getId()
const String& Module::getId |
( |
| ) |
const |
|
inlinenoexcept |
Returns the fully qualified id (PREFIX:NAME:VERSION) of the module.
◆ getLicense()
const String& Module::getLicense |
( |
| ) |
const |
|
inlinenoexcept |
Returns the license of the module.
◆ getUrl()
const String& Module::getUrl |
( |
| ) |
const |
|
inlinenoexcept |
Returns the url of the module.
◆ isFullyQualifiedId()
static bool Module::isFullyQualifiedId |
( |
const String & |
id | ) |
|
|
staticnoexcept |
Returns true if the name is valid ID => (PREFIX:NAME:VERSION).
◆ isValidConsumer()
static bool Module::isValidConsumer |
( |
const String & |
consumer | ) |
|
|
staticnoexcept |
Returns true if the consumer is valid CONSUMER => (PREFIX:NAME).
◆ isValidName()
static bool Module::isValidName |
( |
const String & |
name | ) |
|
|
staticnoexcept |
Returns true if the name is valid NAME => ([a-zA-Z0-9_]+).
◆ isValidPrefix()
static bool Module::isValidPrefix |
( |
const String & |
prefix | ) |
|
|
staticnoexcept |
Returns true if the prefix is valid PREFIX => (Guid || ([a-zA-Z0-9_]+(.[a-zA-Z0-9_]+)*)).
◆ isValidVersion()
static bool Module::isValidVersion |
( |
const String & |
version | ) |
|
|
staticnoexcept |
Returns true if the version is valid. VERSION => ((0 || [1-9][0-9]*)(.(0 || [1-9][0-9]*))*).
◆ setConsumer()
void Module::setConsumer |
( |
const String & |
consumer | ) |
|
Sets the consumer file of the module.
◆ setDescription()
void Module::setDescription |
( |
const String & |
description | ) |
|
Sets the description of the module.
◆ setId()
void Module::setId |
( |
const String & |
id | ) |
|
Sets the id of the module.
◆ setLicense()
void Module::setLicense |
( |
const String & |
license | ) |
|
Sets the license of the module.
◆ setUrl()
void Module::setUrl |
( |
const String & |
url | ) |
|
Sets the url for the module.