Skip to content

InscoperAPI/API/Base/Recipe/RecipeElement.h

Namespaces

Name
Inscoper
Inscoper namespace.

Classes

Name
class Inscoper::RecipeElement
RecipeElement class is the abstract base class for all recipe elements.

Source code

#ifndef RECIPEELEMENT_H
#define RECIPEELEMENT_H

#include <Base/Recipe/ERecipeElementType.h>
#include <Shared/XML/XMLNode.h>

#include <memory>

namespace Inscoper {
class INSCOPER_EXPORT RecipeElement {
public:
  virtual void fromXML(Inscoper::XMLNode &xml) INSCOPER_EXCEPTION = 0;

  virtual void toXML(Inscoper::XMLNode &xmlParent) INSCOPER_EXCEPTION = 0;

  virtual Inscoper::ERecipeElementType getType() = 0;
};

typedef std::shared_ptr<RecipeElement> RecipeElementPtr;

} // namespace Inscoper

#endif // RECIPEELEMENT_H

Updated on 2026-09-03 at 12:14:17 +0200