KiCad PCB EDA Suite
Loading...
Searching...
No Matches
JOB_PARAM< ValueType > Class Template Reference

#include <job.h>

Inheritance diagram for JOB_PARAM< ValueType >:
JOB_PARAM_BASE

Public Member Functions

 JOB_PARAM (const std::string &aJsonPath, ValueType *aPtr, ValueType aDefault)
 
virtual void FromJson (const nlohmann::json &j) const override
 
virtual void ToJson (nlohmann::json &j) override
 

Protected Attributes

ValueType * m_ptr
 
ValueType m_default
 
std::string m_jsonPath
 

Detailed Description

template<typename ValueType>
class JOB_PARAM< ValueType >

Definition at line 44 of file job.h.

Constructor & Destructor Documentation

◆ JOB_PARAM()

template<typename ValueType >
JOB_PARAM< ValueType >::JOB_PARAM ( const std::string &  aJsonPath,
ValueType *  aPtr,
ValueType  aDefault 
)
inline

Definition at line 48 of file job.h.

Member Function Documentation

◆ FromJson()

template<typename ValueType >
virtual void JOB_PARAM< ValueType >::FromJson ( const nlohmann::json &  j) const
inlineoverridevirtual

◆ ToJson()

template<typename ValueType >
virtual void JOB_PARAM< ValueType >::ToJson ( nlohmann::json &  j)
inlineoverridevirtual

Implements JOB_PARAM_BASE.

Definition at line 59 of file job.h.

References JOB_PARAM_BASE::m_jsonPath, and JOB_PARAM< ValueType >::m_ptr.

Member Data Documentation

◆ m_default

template<typename ValueType >
ValueType JOB_PARAM< ValueType >::m_default
protected

Definition at line 63 of file job.h.

Referenced by JOB_PARAM< ValueType >::FromJson().

◆ m_jsonPath

std::string JOB_PARAM_BASE::m_jsonPath
protectedinherited

Definition at line 40 of file job.h.

Referenced by JOB_PARAM< ValueType >::FromJson(), and JOB_PARAM< ValueType >::ToJson().

◆ m_ptr

template<typename ValueType >
ValueType* JOB_PARAM< ValueType >::m_ptr
protected

Definition at line 62 of file job.h.

Referenced by JOB_PARAM< ValueType >::FromJson(), and JOB_PARAM< ValueType >::ToJson().


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