KiCad PCB EDA Suite
Loading...
Searching...
No Matches
JOB_PARAM_LIST< ListElementType > Class Template Reference

#include <job.h>

Inheritance diagram for JOB_PARAM_LIST< ListElementType >:
JOB_PARAM_BASE

Public Member Functions

 JOB_PARAM_LIST (const std::string &aJsonPath, std::vector< ListElementType > *aPtr, std::vector< ListElementType > aDefault)
 
virtual void FromJson (const nlohmann::json &j) const override
 
void ToJson (nlohmann::json &j) override
 

Protected Attributes

std::vector< ListElementType > * m_ptr
 
std::vector< ListElementType > m_default
 
std::string m_jsonPath
 

Detailed Description

template<typename ListElementType>
class JOB_PARAM_LIST< ListElementType >

Definition at line 74 of file job.h.

Constructor & Destructor Documentation

◆ JOB_PARAM_LIST()

template<typename ListElementType>
JOB_PARAM_LIST< ListElementType >::JOB_PARAM_LIST ( const std::string & aJsonPath,
std::vector< ListElementType > * aPtr,
std::vector< ListElementType > aDefault )
inline

Definition at line 77 of file job.h.

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

Member Function Documentation

◆ FromJson()

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

Implements JOB_PARAM_BASE.

Definition at line 84 of file job.h.

References m_default, JOB_PARAM_BASE::m_jsonPath, and m_ptr.

◆ ToJson()

template<typename ListElementType>
void JOB_PARAM_LIST< ListElementType >::ToJson ( nlohmann::json & j)
inlineoverridevirtual

Implements JOB_PARAM_BASE.

Definition at line 103 of file job.h.

References JOB_PARAM_BASE::m_jsonPath, and m_ptr.

Member Data Documentation

◆ m_default

template<typename ListElementType>
std::vector<ListElementType> JOB_PARAM_LIST< ListElementType >::m_default
protected

Definition at line 115 of file job.h.

Referenced by FromJson(), and JOB_PARAM_LIST().

◆ m_jsonPath

◆ m_ptr

template<typename ListElementType>
std::vector<ListElementType>* JOB_PARAM_LIST< ListElementType >::m_ptr
protected

Definition at line 114 of file job.h.

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


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