|
lintel 0.2.0
|
#include <PropertyRegistration.h>
Protected Member Functions | |
| template<class type > | |
| std::shared_ptr< Property< type > > | registerProperty (std::string name, type defaultValue, std::string description, bool runtime, const std::string &fileName, int32_t position) |
Additional Inherited Members | |
Public Member Functions inherited from lintel::AbstractService< T > | |
| AbstractService ()=delete | |
| AbstractService (std::string processName, std::string instanceName) | |
| AbstractService (std::string processName) | |
| void | onInitialize () override |
| void | onShutdown () override |
| ShutdownPriority | shutdownPriorityOf () const override |
| const std::string & | getProcessName () const override |
| const std::string & | getInstanceName () const override |
| std::string_view | getClassName () const override |
Public Member Functions inherited from lintel::AbstractServiceInterface | |
| virtual | ~AbstractServiceInterface ()=default |
Protected Attributes inherited from lintel::AbstractService< T > | |
| std::vector< std::shared_ptr< PropertyBase > > | m_properties |
CRTP base class that adds property registration capabilities to services.
|
inlineprotected |
Register a property with the given configuration.
| type | the property value type |
| name | the property name |
| defaultValue | the default value |
| description | a human-readable description |
| runtime | whether the property can be changed at runtime |
| fileName | the source file name for data storage |
| position | the position within the file for data storage |