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 68 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 71 of file job.h.

Member Function Documentation

◆ FromJson()

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

◆ ToJson()

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

Implements JOB_PARAM_BASE.

Definition at line 97 of file job.h.

References JOB_PARAM_BASE::m_jsonPath, and JOB_PARAM_LIST< ListElementType >::m_ptr.

Member Data Documentation

◆ m_default

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

Definition at line 109 of file job.h.

Referenced by JOB_PARAM_LIST< ListElementType >::FromJson().

◆ m_jsonPath

std::string JOB_PARAM_BASE::m_jsonPath
protectedinherited

◆ m_ptr

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

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