ForestHub SDK 0.1.0
C++14 LLM SDK for PC and embedded platforms
Loading...
Searching...
No Matches
foresthub::core::Input Class Referenceabstract

Abstract base for all input types. More...

#include <input.hpp>

Inheritance diagram for foresthub::core::Input:
foresthub::core::InputItems foresthub::core::InputString

Public Member Functions

virtual InputType GetInputType () const =0
 Returns the type discriminator for this input.
virtual void ToJson (json &j) const =0
 Serialize this input to JSON.

Detailed Description

Abstract base for all input types.

Member Function Documentation

◆ ToJson()

virtual void foresthub::core::Input::ToJson ( json & j) const
pure virtual

Serialize this input to JSON.

Parameters
jOutput JSON object, populated by the method.

Implemented in foresthub::core::InputItems, and foresthub::core::InputString.


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