Skip to content

Commit

Permalink
renamed from list to access
Browse files Browse the repository at this point in the history
  • Loading branch information
hvraven committed Apr 1, 2012
1 parent 335d97a commit 49a034d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
6 changes: 3 additions & 3 deletions include/xmlspell.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
#define LIBRPG_PATHFINDER_XMLSPELL_H

#include "spell.h"
#include "xmlelementlist.h"
#include "xmlaccess.h"

namespace RPG
{

namespace Pathfinder
{

class Xml_Spell_List
: public RPG::Xml_Element_List<RPG::Pathfinder::Spell>
class Xml_Spell_Access
: public RPG::Xml_Access<RPG::Pathfinder::Spell>
{
protected:
Spell decode(const TiXmlElement *const) const;
Expand Down
42 changes: 21 additions & 21 deletions librpg/xmlspelldecode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ using namespace RPG::Pathfinder;
* add functions to add them to the given spell.
*/
Spell
Xml_Spell_List::decode(const TiXmlElement *const pxml) const
Xml_Spell_Access::decode(const TiXmlElement *const pxml) const
{
/* map for easy translation of the names to tokens */
static std::map < std::string, Spell_Token > elements;
Expand Down Expand Up @@ -96,7 +96,7 @@ Xml_Spell_List::decode(const TiXmlElement *const pxml) const
* @see decode_name( Name& name, const TiXmlElement *const pelement )
*/
std::string
Xml_Spell_List::decode_name(const TiXmlElement *const pelement) const
Xml_Spell_Access::decode_name(const TiXmlElement *const pelement) const
{
std::string work;
decode_name(work, pelement);
Expand All @@ -115,7 +115,7 @@ Xml_Spell_List::decode_name(const TiXmlElement *const pelement) const
* discarded
*/
void
Xml_Spell_List::decode_name(std::string& name,
Xml_Spell_Access::decode_name(std::string& name,
const TiXmlElement *const pelement) const
{
std::string language;
Expand All @@ -130,7 +130,7 @@ Xml_Spell_List::decode_name(std::string& name,
* @see decode_school( School& school, const TiXmlElement *const pelement )
*/
Spell_School
Xml_Spell_List::decode_school(const TiXmlElement *const pelement) const
Xml_Spell_Access::decode_school(const TiXmlElement *const pelement) const
{
Spell_School work;
decode_school( work, pelement );
Expand All @@ -148,7 +148,7 @@ Xml_Spell_List::decode_school(const TiXmlElement *const pelement) const
* correctly.
*/
void
Xml_Spell_List::decode_school(Spell_School& school,
Xml_Spell_Access::decode_school(Spell_School& school,
const TiXmlElement *const pelement) const
{
std::string type;
Expand Down Expand Up @@ -186,7 +186,7 @@ Xml_Spell_List::decode_school(Spell_School& school,
* level
*/
Spell_Level
Xml_Spell_List::decode_level(const TiXmlElement *const pelement) const
Xml_Spell_Access::decode_level(const TiXmlElement *const pelement) const
{
Spell_Level work;
decode_level( work, pelement );
Expand All @@ -203,7 +203,7 @@ Xml_Spell_List::decode_level(const TiXmlElement *const pelement) const
* untouched.
*/
void
Xml_Spell_List::decode_level(Spell_Level& level,
Xml_Spell_Access::decode_level(Spell_Level& level,
const TiXmlElement *const pelement) const
{
std::string type;
Expand All @@ -225,7 +225,7 @@ Xml_Spell_List::decode_level(Spell_Level& level,
* @see decode_casting_time( Casting_Time&, const TiXmlElement *const )
*/
Spell_Casting_Time
Xml_Spell_List::decode_casting_time(const TiXmlElement *const pelement) const
Xml_Spell_Access::decode_casting_time(const TiXmlElement *const pelement) const
{
Spell_Casting_Time work;
decode_casting_time(work, pelement);
Expand All @@ -238,7 +238,7 @@ Xml_Spell_List::decode_casting_time(const TiXmlElement *const pelement) const
* @param pelement pointer to the casting time in the xml
*/
void
Xml_Spell_List::decode_casting_time(Spell_Casting_Time& time,
Xml_Spell_Access::decode_casting_time(Spell_Casting_Time& time,
const TiXmlElement *const pelement) const
{
std::string type;
Expand All @@ -260,7 +260,7 @@ Xml_Spell_List::decode_casting_time(Spell_Casting_Time& time,
* @see decode_component( Components&, const TiXmlElement *const )
*/
Spell_Components
Xml_Spell_List::decode_component(const TiXmlElement *const pelement) const
Xml_Spell_Access::decode_component(const TiXmlElement *const pelement) const
{
Spell_Components work;
decode_component( work, pelement );
Expand All @@ -279,7 +279,7 @@ Xml_Spell_List::decode_component(const TiXmlElement *const pelement) const
* @todo add support for M/DF (with description)
*/
void
Xml_Spell_List::decode_component(Spell_Components& components,
Xml_Spell_Access::decode_component(Spell_Components& components,
const TiXmlElement *const pelement) const
{
std::string type;
Expand Down Expand Up @@ -329,7 +329,7 @@ Xml_Spell_List::decode_component(Spell_Components& components,
* @see decode_range( Range&, const TiXmlElement *const )
*/
Spell_Range
Xml_Spell_List::decode_range(const TiXmlElement *const pelement) const
Xml_Spell_Access::decode_range(const TiXmlElement *const pelement) const
{
Spell_Range work;
decode_range( work, pelement );
Expand All @@ -342,7 +342,7 @@ Xml_Spell_List::decode_range(const TiXmlElement *const pelement) const
* @param pelement pointer to the range in the xml
*/
void
Xml_Spell_List::decode_range(Spell_Range& range,
Xml_Spell_Access::decode_range(Spell_Range& range,
const TiXmlElement *const pelement) const
{
std::string type;
Expand Down Expand Up @@ -370,7 +370,7 @@ Xml_Spell_List::decode_range(Spell_Range& range,
* @see decode_duration( Duration&, const TiXmlElement *const )
*/
Spell_Duration
Xml_Spell_List::decode_duration(const TiXmlElement *const pelement) const
Xml_Spell_Access::decode_duration(const TiXmlElement *const pelement) const
{
Spell_Duration work;
decode_duration( work, pelement );
Expand All @@ -383,7 +383,7 @@ Xml_Spell_List::decode_duration(const TiXmlElement *const pelement) const
* @param pelement pointer to the duration in the xml
*/
void
Xml_Spell_List::decode_duration(Spell_Duration& duration,
Xml_Spell_Access::decode_duration(Spell_Duration& duration,
const TiXmlElement *const pelement) const
{
std::string type;
Expand Down Expand Up @@ -417,7 +417,7 @@ Xml_Spell_List::decode_duration(Spell_Duration& duration,
* @see decode_saving_throw( Saving_Throw&, const TiXmlElement *const )
*/
Spell_Saving_Throw
Xml_Spell_List::decode_saving_throw(const TiXmlElement *const pelement) const
Xml_Spell_Access::decode_saving_throw(const TiXmlElement *const pelement) const
{
Spell_Saving_Throw result;
decode_saving_throw( result, pelement );
Expand All @@ -432,7 +432,7 @@ Xml_Spell_List::decode_saving_throw(const TiXmlElement *const pelement) const
* @todo add support for multiple types
*/
void
Xml_Spell_List::decode_saving_throw(Spell_Saving_Throw& saving_throw,
Xml_Spell_Access::decode_saving_throw(Spell_Saving_Throw& saving_throw,
const TiXmlElement *const pelement) const
{
std::string type;
Expand Down Expand Up @@ -467,7 +467,7 @@ Xml_Spell_List::decode_saving_throw(Spell_Saving_Throw& saving_throw,
* @see decode_spell_resistance( Spell_Resistance&, const TiXmlElement *const )
*/
Spell_Spell_Resistance
Xml_Spell_List::decode_spell_resistance
Xml_Spell_Access::decode_spell_resistance
(const TiXmlElement *const pelement) const
{
Spell_Spell_Resistance result;
Expand All @@ -481,7 +481,7 @@ Xml_Spell_List::decode_spell_resistance
* @param pelement pointer to the resistance in the xml
*/
void
Xml_Spell_List::decode_spell_resistance
Xml_Spell_Access::decode_spell_resistance
(Spell_Spell_Resistance& spell_resistance,
TiXmlElement const *const pelement) const
{
Expand All @@ -504,7 +504,7 @@ Xml_Spell_List::decode_spell_resistance
* @see decode_description( Description&, const TiXmlElement *const )
*/
std::string
Xml_Spell_List::decode_description(const TiXmlElement *const pelement) const
Xml_Spell_Access::decode_description(const TiXmlElement *const pelement) const
{
std::string result;
decode_description( result, pelement );
Expand All @@ -520,7 +520,7 @@ Xml_Spell_List::decode_description(const TiXmlElement *const pelement) const
* @todo implement language support
*/
void
Xml_Spell_List::decode_description(std::string& description,
Xml_Spell_Access::decode_description(std::string& description,
TiXmlElement const *const pelement) const
{
description = pelement->GetText();
Expand Down

0 comments on commit 49a034d

Please sign in to comment.