2009-10-01 01:10:58 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* HomebrewXML Class
|
|
|
|
* for USB Loader GX
|
|
|
|
***************************************************************************/
|
|
|
|
#ifndef ___HOMEBREWXML_H_
|
|
|
|
#define ___HOMEBREWXML_H_
|
|
|
|
|
2010-09-17 18:15:18 +02:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class HomebrewXML
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
//!Constructor
|
|
|
|
//!\param path Path for the xml file
|
|
|
|
HomebrewXML() { };
|
|
|
|
//!Destructor
|
|
|
|
~HomebrewXML() { };
|
|
|
|
//!\param filename Filepath of the XML file
|
2010-09-19 01:16:05 +02:00
|
|
|
int LoadHomebrewXMLData( const char* filename );
|
2010-09-17 18:15:18 +02:00
|
|
|
//! Get name
|
|
|
|
const char * GetName() { return Name.c_str(); };
|
|
|
|
//! Get coder
|
|
|
|
const char * GetCoder() { return Coder.c_str(); };
|
|
|
|
//! Get version
|
|
|
|
const char * GetVersion() { return Version.c_str(); };
|
|
|
|
//! Get releasedate
|
|
|
|
const char * GetReleasedate() { return Releasedate.c_str(); };
|
|
|
|
//! Get shortdescription
|
|
|
|
const char * GetShortDescription() { return ShortDescription.c_str(); };
|
|
|
|
//! Get longdescription
|
|
|
|
const char * GetLongDescription() { return LongDescription.c_str(); };
|
|
|
|
//! Set Name
|
2010-09-19 01:16:05 +02:00
|
|
|
void SetName( char * newName ) { Name = newName; };
|
2010-09-17 18:15:18 +02:00
|
|
|
protected:
|
|
|
|
std::string Name;
|
|
|
|
std::string Coder;
|
|
|
|
std::string Version;
|
|
|
|
std::string Releasedate;
|
|
|
|
std::string ShortDescription;
|
|
|
|
std::string LongDescription;
|
2009-10-01 01:10:58 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|