Aller au contenu
Bienvenue sur la nouvelle documentation de CppUtils !

Namespace: CppUtils::Language::Xml

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

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

ParamètreDescription
textRaw input text.

Retourne : XML-escaped string.

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