SimulationCraft
SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm).
sc_xml_t Struct Reference

Public Member Functions

 sc_xml_t (rapidxml::xml_node< char > *n)
 
 sc_xml_t (std::unique_ptr< rapidxml::xml_node< char >> n, std::vector< char > b)
 
 sc_xml_t (const sc_xml_t &other)
 
sc_xml_toperator= (const sc_xml_t &other)
 
bool valid () const
 
std::string name () const
 
sc_xml_t get_child (const std::string &name) const
 
sc_xml_t get_node (const std::string &path) const
 
sc_xml_t get_node (const std::string &path, const std::string &parm_name, const std::string &parm_value) const
 
std::vector< sc_xml_tget_children (const std::string &name=std::string())
 
std::vector< sc_xml_tget_nodes (const std::string &path)
 
std::vector< sc_xml_tget_nodes (const std::string &path, const std::string &parm_name, const std::string &parm_value)
 
bool get_value (std::string &value, const std::string &path=std::string())
 
bool get_value (int &value, const std::string &path=std::string())
 
bool get_value (double &value, const std::string &path=std::string())
 
void print (FILE *f=stdout, int spacing=0)
 
void print_xml (FILE *f=stdout, int spacing=0)
 

Static Public Member Functions

static sc_xml_t get (const std::string &url, cache::behavior_e cache_behavior, const std::string &confirmation=std::string())
 
static sc_xml_t create (const std::string &input, const std::string &cache_key)
 

Public Attributes

std::vector< char > buf
 
std::unique_ptr< rapidxml::xml_node< char > > root_owner
 
rapidxml::xml_node< char > * root