diff --git a/Engine/source/Verve/Core/Persistence/VPersistence.h b/Engine/source/Verve/Core/Persistence/VPersistence.h index 6c357681d..e9ed1d54c 100644 --- a/Engine/source/Verve/Core/Persistence/VPersistence.h +++ b/Engine/source/Verve/Core/Persistence/VPersistence.h @@ -48,6 +48,8 @@ namespace VPersistence //------------------------------------------------------------------------- + template bool write( TiXmlElement *pElement, T *pObject ); + template bool writeFile( const char* pFileName, T *pObject ) { // Create Doc. @@ -73,7 +75,6 @@ namespace VPersistence return xmlDocument.SaveFile( pFileName ); }; - template bool write( TiXmlElement *pElement, T *pObject ); template bool writeProperties( TiXmlElement *pElement, T *pObject ) { @@ -141,7 +142,9 @@ namespace VPersistence } //------------------------------------------------------------------------- - + + template bool read( TiXmlElement *pElement, T *pObject ); + template bool readFile( const char* pFileName, T *pObject ) { TiXmlDocument xmlDocument; @@ -176,8 +179,6 @@ namespace VPersistence return true; }; - template bool read( TiXmlElement *pElement, T *pObject ); - template bool readProperties( TiXmlElement *pElement, T *pObject ) { TiXmlElement *propertyRoot = pElement->FirstChildElement( "Properties" ); @@ -283,4 +284,4 @@ namespace VPersistence //----------------------------------------------------------------------------- -#endif // _VT_VPERSISTENCE_H_ \ No newline at end of file +#endif // _VT_VPERSISTENCE_H_