Aller au contenu
Bienvenue sur la nouvelle documentation de CppUtils !

Namespace: CppUtils::Language::Xml

template <class Object, class Mapping, String::Hasher loggerName = "CppUtils">
auto buildFlow(const Container::Tree::VariantNode<Type::Token, std::string>& node, Thread::ThreadPool& threadPool) -> TypedFlow<Object, Mapping>;
template <class Object, class Mapping, String::Hasher loggerName = "CppUtils">
auto buildFlow(std::string_view xmlSource, Thread::ThreadPool& threadPool) -> TypedFlow<Object, Mapping>;
template <class Object, class Mapping, String::Hasher loggerName = "CppUtils">
auto executeFlow(const Container::Tree::VariantNode<Type::Token, std::string>& node, Thread::ThreadPool& threadPool) -> void;
template <class Object, class Mapping, String::Hasher loggerName = "CppUtils">
auto executeFlow(std::string_view xmlSource, Thread::ThreadPool& threadPool) -> void;
template <class Object, class Mapping, String::Hasher loggerName = "CppUtils">
auto registerStandardPipelineTags(Pipeline<Object>& pipeline) -> void;
template <class Object, class Mapping, String::Hasher loggerName = "CppUtils">
auto buildPipeline(const Container::Tree::VariantNode<Type::Token, std::string>& node) -> Pipeline<Object>;
template <class Object, class Mapping, String::Hasher loggerName = "CppUtils">
auto buildPipeline(std::string_view xmlSource) -> Pipeline<Object>;
auto escapeXml(std::string_view text) -> std::string;

Escapes reserved XML characters (&, <, >, ", `).

ParamètreDescription
textRaw input text.

Retourne : XML-escaped string.

auto parse(std::string_view src) -> Container::Tree::VariantNode<Type::Token, std::string>;
auto extractAttribute(const Container::Tree::VariantNode<Type::Token, std::string>& node, Type::Token token) -> std::optional<std::string>;