Game Develop C++ Platform: XmlMacros.h File Reference

| Game Develop C++ Platform Platform for developing native games based on OpenGL and SFML with Game Develop

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
Macros
XmlMacros.h File Reference

Go to the source code of this file.

## Macros

#define | GD_CURRENT_ELEMENT_SAVE_ATTRIBUTE(name_, value_) elem->SetAttribute( name_, value_ );
#define | GD_CURRENT_ELEMENT_SAVE_ATTRIBUTE_FLOAT(name_, value_) elem->SetDoubleAttribute( name_, value_ );
#define | GD_CURRENT_ELEMENT_SAVE_ATTRIBUTE_DOUBLE(name_, value_) elem->SetDoubleAttribute( name_, value_ );
#define | GD_CURRENT_ELEMENT_SAVE_ATTRIBUTE_STRING(name_, value_) elem->SetAttribute( name_, value_.c_str() );
#define | GD_CURRENT_ELEMENT_SAVE_ATTRIBUTE_BOOL(name_, value_) if ( value_ ) elem->SetAttribute( name_, "true" ); else elem->SetAttribute( name_, "false" )
#define | GD_CURRENT_ELEMENT_LOAD_ATTRIBUTE_INT(name_, variable_) if ( elem->Attribute( name_ ) != NULL ) elem->QueryIntAttribute( name_, &variable_ );
#define | GD_CURRENT_ELEMENT_LOAD_ATTRIBUTE_FLOAT(name_, variable_) if ( elem->Attribute( name_ ) != NULL ) elem->QueryFloatAttribute( name_, &variable_ );
#define | GD_CURRENT_ELEMENT_LOAD_ATTRIBUTE_DOUBLE(name_, variable_) if ( elem->Attribute( name_ ) != NULL ) elem->QueryDoubleAttribute( name_, &variable_ );
#define | GD_CURRENT_ELEMENT_LOAD_ATTRIBUTE_STRING(name_, variable_) if ( elem->Attribute( name_ ) != NULL ) variable_ = elem->Attribute( name_ );
#define | GD_CURRENT_ELEMENT_LOAD_ATTRIBUTE_BOOL(name_, variable_) if ( elem->Attribute( name_ ) != NULL && strcmp( elem->Attribute( name_ ), "false" ) == 0 ) variable_ = false; else variable_ = true;
#define | GD_CURRENT_ELEMENT_GET_ATTRIBUTE_INT(name_, variable_) if ( elem->Attribute( name_ ) != NULL ) elem->QueryIntAttribute( name_, &variable_ );
#define | GD_CURRENT_ELEMENT_GET_ATTRIBUTE_FLOAT(name_, variable_) if ( elem->Attribute( name_ ) != NULL ) elem->QueryFloatAttribute( name_, &variable_ );
#define | GD_CURRENT_ELEMENT_GET_ATTRIBUTE_DOUBLE(name_, variable_) if ( elem->Attribute( name_ ) != NULL ) elem->QueryDoubleAttribute( name_, &variable_ );
#define | GD_CURRENT_ELEMENT_GET_ATTRIBUTE_STRING(name_, variable_) if ( elem->Attribute( name_ ) != NULL ) variable_ = elem->Attribute( name_ );
#define | GD_CURRENT_ELEMENT_GET_ATTRIBUTE_BOOL(name_, variable_) if ( elem->Attribute( name_ ) != NULL && strcmp( elem->Attribute( name_ ), "false" ) == 0 ) variable_ = false; else variable_ = true;

## Detailed Description

Game Develop 2008-2014 Florian Rival (Flori.nosp@m.an.R.nosp@m.ival@.nosp@m.gmai.nosp@m.l.com)