Represents a property.
More...
#include <property.h>
|
| static std::shared_ptr< Property > | make (PropertySpec spec) |
| | Factory function that validates the spec and creates a property. Throws std::exception if the spec is not valid.
|
| static std::string | makeGetterMethodName (const PropertySpec &spec) |
| | Utility function that creates the name of a getter method. Throws std::exception if the spec has an empty name.
|
| static std::string | makeSetterMethodName (const PropertySpec &spec) |
| | Utility function that creates the name of a setter method. Throws std::exception if the spec has an empty name.
|
| static std::string | makeChangeNotificationEventName (const PropertySpec &spec) |
| | Utility function that creates the name of a change notification event. Throws std::exception if the spec has an empty name.
|
◆ Property()
| sen::Property::Property |
( |
PropertySpec | spec, |
|
|
Private | notUsable ) |
◆ ~Property()
| sen::Property::~Property |
( |
| ) |
|
|
default |
◆ make()
Factory function that validates the spec and creates a property. Throws std::exception if the spec is not valid.
◆ getName()
| std::string_view sen::Property::getName |
( |
| ) |
const |
|
nodiscardnoexcept |
The name of the property.
◆ getDescription()
| std::string_view sen::Property::getDescription |
( |
| ) |
const |
|
nodiscardnoexcept |
The documentation of the property.
◆ getId()
◆ getCategory()
Gets the property category.
◆ getType()
Gets the return type of the method (nullptr means void).
◆ getTransportMode()
Gets the transport mode for this property.
◆ getGetterMethod()
| const Method & sen::Property::getGetterMethod |
( |
| ) |
const |
|
nodiscardnoexcept |
◆ getSetterMethod()
| const Method & sen::Property::getSetterMethod |
( |
| ) |
const |
|
nodiscardnoexcept |
◆ getChangeEvent()
| const Event & sen::Property::getChangeEvent |
( |
| ) |
const |
|
nodiscardnoexcept |
The change notification event.
◆ getTags()
| const std::vector< std::string > & sen::Property::getTags |
( |
| ) |
const |
|
nodiscardnoexcept |
◆ getCheckedSet()
| bool sen::Property::getCheckedSet |
( |
| ) |
const |
|
nodiscardnoexcept |
If true, the user will validate sets to the property value.
◆ makeGetterMethodName()
| std::string sen::Property::makeGetterMethodName |
( |
const PropertySpec & | spec | ) |
|
|
staticnodiscard |
Utility function that creates the name of a getter method. Throws std::exception if the spec has an empty name.
◆ makeSetterMethodName()
| std::string sen::Property::makeSetterMethodName |
( |
const PropertySpec & | spec | ) |
|
|
staticnodiscard |
Utility function that creates the name of a setter method. Throws std::exception if the spec has an empty name.
◆ makeChangeNotificationEventName()
| std::string sen::Property::makeChangeNotificationEventName |
( |
const PropertySpec & | spec | ) |
|
|
staticnodiscard |
Utility function that creates the name of a change notification event. Throws std::exception if the spec has an empty name.
◆ operator==()
| bool sen::Property::operator== |
( |
const Property & | other | ) |
const |
|
nodiscardnoexcept |
Compares if it is equivalent to another property.
◆ operator!=()
| bool sen::Property::operator!= |
( |
const Property & | other | ) |
const |
|
nodiscardnoexcept |
Compares if it is not equivalent to another property.
◆ getHash()
Returns a unique hash for the Property computed at compile time.
The documentation for this class was generated from the following file: