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