Inscoper::RecipeElement¶
RecipeElement class is the abstract base class for all recipe elements. More...
#include <RecipeElement.h>
Inherited by Inscoper::RecipeElementEvent, Inscoper::RecipeElementGroup, Inscoper::RecipeElementSimple
Public Functions¶
| Name | |
|---|---|
| virtual void | fromXML(Inscoper::XMLNode & xml) =0 Load from XML. |
| virtual void | toXML(Inscoper::XMLNode & xmlParent) =0 Save to XML. |
| virtual Inscoper::ERecipeElementType | getType() =0 Get the recipe element type. |
Detailed Description¶
RecipeElement class is the abstract base class for all recipe elements.
Defines the common interface for elements that can be part of a recipe.
Public Functions Documentation¶
function fromXML¶
Load from XML.
Parameters:
- xml : The XML node containing recipe element information
Exceptions:
- InscoperException If an error occurs
Reimplemented by: Inscoper::RecipeElementEvent::fromXML, Inscoper::RecipeElementGroup::fromXML, Inscoper::RecipeElementSimple::fromXML
Populates the recipe element information from an XML node.
function toXML¶
Save to XML.
Parameters:
- xmlParent : The parent XML node
Exceptions:
- InscoperException If an error occurs
Reimplemented by: Inscoper::RecipeElementEvent::toXML, Inscoper::RecipeElementGroup::toXML, Inscoper::RecipeElementSimple::toXML
Exports the recipe element information to an XML node attached to the parent XML node.
function getType¶
Get the recipe element type.
Return: The type of the recipe element
Reimplemented by: Inscoper::RecipeElementEvent::getType, Inscoper::RecipeElementGroup::getType, Inscoper::RecipeElementSimple::getType
Retrieves the type of the recipe element.
Updated on 2026-04-02 at 10:55:36 +0200