Program Listing for File sigmoid_parser.hpp
↰ Return to documentation for file (rcppsw/math/config/xml/sigmoid_parser.hpp
)
#pragma once
/*******************************************************************************
* Includes
******************************************************************************/
#include <string>
#include <memory>
#include "rcppsw/rcppsw.hpp"
#include "rcppsw/math/config/sigmoid_config.hpp"
#include "rcppsw/config/xml/xml_config_parser.hpp"
/*******************************************************************************
* Namespaces/Decls
******************************************************************************/
namespace rcppsw::math::config::xml {
/*******************************************************************************
* Class Definitions
******************************************************************************/
class sigmoid_parser : public rer::client<sigmoid_parser>,
public rconfig::xml::xml_config_parser {
public:
using config_type = sigmoid_config;
sigmoid_parser(void)
: ER_CLIENT_INIT() {}
static inline const std::string kXMLRoot = "sigmoid";
void parse(const ticpp::Element& node) override RCPPSW_COLD;
bool validate(void) const override RCPPSW_ATTR(pure, cold);
RCPPSW_COLD std::string xml_root(void) const override { return kXMLRoot; }
private:
RCPPSW_COLD rcppsw::config::base_config* config_get_impl(void) const override {
return m_config.get();
}
/* clang-format off */
std::unique_ptr<sigmoid_config> m_config{nullptr};
/* clang-format on */
};
} /* namespace rcppsw::math::xml, config */