ManaPlus
|
Data Structures | |
class | Document |
Functions | |
int | getProperty (const xmlNodePtr node, const char *const name, int def) |
int | getIntProperty (const xmlNodePtr node, const char *const name, int def, const int min, const int max) |
float | getFloatProperty (const xmlNodePtr node, const char *const name, float def) |
double | getDoubleProperty (const xmlNodePtr node, const char *const name, double def) |
std::string | getProperty (const xmlNodePtr node, const char *const name, const std::string &def) |
std::string | langProperty (const xmlNodePtr node, const char *const name, const std::string &def) |
bool | getBoolProperty (const xmlNodePtr node, const char *const name, const bool def) |
xmlNodePtr | findFirstChildByName (const xmlNode *const parent, const char *const name) |
void | initXML () |
void | cleanupXML () |
XML helper functions.
void XML::cleanupXML | ( | ) |
Definition at line 315 of file libxml.cpp.
Referenced by Client::gameClear().
xmlNodePtr XML::findFirstChildByName | ( | const xmlNode *const | parent, |
const char *const | name | ||
) |
Finds the first child node with the given name
Definition at line 289 of file libxml.cpp.
References for_each_xml_child_node.
Referenced by Particle::addEffect(), and ParticleEngine::addEffect().
bool XML::getBoolProperty | ( | const xmlNodePtr | node, |
const char *const | name, | ||
const bool | def | ||
) |
Gets a boolean property from an XmlNodePtr.
Definition at line 269 of file libxml.cpp.
Referenced by Particle::addEffect(), ParticleEngine::addEffect(), loadFields(), loadPermissions(), SkillDialog::loadSkill(), SkillDialog::loadSkillData(), GroupDb::loadXmlFile(), NPCDB::loadXmlFile(), NpcDialogDB::loadXmlFile(), PETDB::loadXmlFile(), SkillUnitDb::loadXmlFile(), TextDb::loadXmlFile(), ItemDB::loadXmlFile(), and ParticleEmitter::ParticleEmitter().
double XML::getDoubleProperty | ( | const xmlNodePtr | node, |
const char *const | name, | ||
double | def | ||
) |
Gets an double point property from an XmlNodePtr.
Definition at line 227 of file libxml.cpp.
Referenced by ParticleEmitter::readParticleEmitterProp().
float XML::getFloatProperty | ( | const xmlNodePtr | node, |
const char *const | name, | ||
float | def | ||
) |
Gets an floating point property from an XmlNodePtr.
Definition at line 211 of file libxml.cpp.
Referenced by Particle::addEffect(), ParticleEngine::addEffect(), SkillDialog::loadSkillData(), ItemDB::loadXmlFile(), and BeingCommon::readObjectNodes().
int XML::getIntProperty | ( | const xmlNodePtr | node, |
const char *const | name, | ||
int | def, | ||
const int | min, | ||
const int | max | ||
) |
Gets an integer property from an XmlNodePtr.
Definition at line 190 of file libxml.cpp.
Referenced by SimpleAnimation::initializeAnimation(), SpriteDef::loadAnimation(), loadNpcDialogInventory(), loadNpcDialogMenu(), loadQuest(), SkillDialog::loadSkill(), CommandsDB::loadXmlFile(), ItemDB::loadXmlFile(), and ParticleEmitter::ParticleEmitter().
std::string XML::getProperty | ( | const xmlNodePtr | node, |
const char *const | name, | ||
const std::string & | def | ||
) |
Gets a string property from an XmlNodePtr.
Definition at line 243 of file libxml.cpp.
int XML::getProperty | ( | const xmlNodePtr | node, |
const char *const | name, | ||
int | def | ||
) |
Gets an integer property from an XmlNodePtr.
Definition at line 174 of file libxml.cpp.
Referenced by Particle::addEffect(), ParticleEngine::addEffect(), addFieldByName(), MapReader::addLayerToList(), EquipmentWindow::fillBoxes(), ParticleEmitter::getImageSet(), SpriteDef::includeSprite(), ConfigurationObject::initFromXML(), SimpleAnimation::initializeAnimation(), langProperty(), CharDB::load(), SpriteDef::loadAction(), SpriteDef::loadAnimation(), loadBasicStats(), ColorDB::loadColorLists(), Theme::loadColors(), loadCommands(), loadCurrencies(), loadEffect(), loadFields(), loadFloorSprite(), ColorDB::loadHair(), SpriteDef::loadImageSet(), MapDB::loadInfo(), loadMenu(), CharDB::loadMinMax(), loadNpcDialogInventory(), loadNpcDialogMenu(), loadOffset(), loadOrderSprite(), loadPermissions(), EquipmentWindow::loadPlayerBox(), loadQuest(), MapDB::loadRemapXmlFile(), loadReplaceSprite(), loadRiderOffset(), ServerDialog::loadServers(), SkillDialog::loadSkill(), SkillDialog::loadSkillData(), EquipmentWindow::loadSlot(), loadSoundRef(), EmoteDB::loadSpecialXmlFile(), SpriteDef::loadSprite(), loadSpriteRef(), loadStats(), loadUnit(), loadXMLFile(), EffectManager::loadXmlFile(), SkillDialog::loadXmlFile(), AvatarDB::loadXmlFile(), ClanDb::loadXmlFile(), CommandsDB::loadXmlFile(), DeadDB::loadXmlFile(), ElementalDb::loadXmlFile(), EmoteDB::loadXmlFile(), GroupDb::loadXmlFile(), HomunculusDB::loadXmlFile(), HorseDB::loadXmlFile(), ItemFieldDb::loadXmlFile(), ItemOptionDb::loadXmlFile(), LanguageDb::loadXmlFile(), MercenaryDB::loadXmlFile(), ModDB::loadXmlFile(), MonsterDB::loadXmlFile(), NPCDB::loadXmlFile(), NpcDialogDB::loadXmlFile(), PETDB::loadXmlFile(), QuestDb::loadXmlFile(), SkillUnitDb::loadXmlFile(), SoundDB::loadXmlFile(), StatDb::loadXmlFile(), StatusEffectDB::loadXmlFile(), TextDb::loadXmlFile(), UnitsDb::loadXmlFile(), ItemDB::loadXmlFile(), ParticleEmitter::ParticleEmitter(), EquipmentWindow::prepareSlotNames(), BeingCommon::readAiAttributes(), MapDB::readAtlas(), BeingCommon::readBasicAttributes(), readField(), MapReader::readLayer(), MapDB::readMap(), BeingCommon::readObjectNodes(), ParticleEmitter::readParticleEmitterProp(), MapReader::readProperties(), Theme::readSkin(), MapReader::readTileset(), BeingCommon::readWalkingAttributes(), readXmlIntMap(), readXmlIntVector(), and readXmlStringMap().
void XML::initXML | ( | ) |
std::string XML::langProperty | ( | const xmlNodePtr | node, |
const char *const | name, | ||
const std::string & | def | ||
) |
Gets a translated string property from an XmlNodePtr.
Definition at line 258 of file libxml.cpp.
References getProperty(), PoDict::getStr(), and translator.
Referenced by ColorDB::loadColorLists(), loadFields(), ColorDB::loadHair(), loadHostsGroup(), loadMenu(), EquipmentWindow::loadPage(), loadQuest(), ServerDialog::loadServers(), loadServerSourcesList(), SkillDialog::loadSkill(), SkillDialog::loadSkillData(), EmoteDB::loadSpecialXmlFile(), AvatarDB::loadXmlFile(), ClanDb::loadXmlFile(), CommandsDB::loadXmlFile(), EmoteDB::loadXmlFile(), GroupDb::loadXmlFile(), HomunculusDB::loadXmlFile(), MercenaryDB::loadXmlFile(), ModDB::loadXmlFile(), MonsterDB::loadXmlFile(), NPCDB::loadXmlFile(), PETDB::loadXmlFile(), SkillUnitDb::loadXmlFile(), StatDb::loadXmlFile(), StatusEffectDB::loadXmlFile(), ItemDB::loadXmlFile(), and parseInherit().