lintel 0.2.0
Loading...
Searching...
No Matches
Protected Member Functions | List of all members
lintel::PropertyRegistration< T > Class Template Reference

#include <PropertyRegistration.h>

Inheritance diagram for lintel::PropertyRegistration< T >:
lintel::AbstractService< T > lintel::AbstractServiceInterface

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
 

Detailed Description

template<class T>
class lintel::PropertyRegistration< T >

CRTP base class that adds property registration capabilities to services.

Member Function Documentation

◆ registerProperty()

template<class T >
template<class type >
std::shared_ptr< Property< type > > lintel::PropertyRegistration< T >::registerProperty ( std::string  name,
type  defaultValue,
std::string  description,
bool  runtime,
const std::string &  fileName,
int32_t  position 
)
inlineprotected

Register a property with the given configuration.

Template Parameters
typethe property value type
Parameters
namethe property name
defaultValuethe default value
descriptiona human-readable description
runtimewhether the property can be changed at runtime
fileNamethe source file name for data storage
positionthe position within the file for data storage
Returns
a shared pointer to the registered property

The documentation for this class was generated from the following file: