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 50 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 54 of file job.h.

References JOB_PARAM_BASE::JOB_PARAM_BASE(), m_default, and m_ptr.

Member Function Documentation

◆ FromJson()

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

Implements JOB_PARAM_BASE.

Reimplemented in JOB_PARAM_LSEQ.

Definition at line 60 of file job.h.

References m_default, JOB_PARAM_BASE::m_jsonPath, and m_ptr.

◆ ToJson()

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

Implements JOB_PARAM_BASE.

Reimplemented in JOB_PARAM_LSEQ.

Definition at line 65 of file job.h.

References JOB_PARAM_BASE::m_jsonPath, and m_ptr.

Member Data Documentation

◆ m_default

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

Definition at line 69 of file job.h.

Referenced by FromJson(), and JOB_PARAM().

◆ m_jsonPath

◆ m_ptr

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

Definition at line 68 of file job.h.

Referenced by FromJson(), JOB_PARAM(), and ToJson().


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