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>
|
2011-06-14 19:53:19 +02:00
|
|
|
#include <vector>
|
2010-09-17 18:15:18 +02:00
|
|
|
|
|
|
|
class HomebrewXML
|
|
|
|
{
|
2011-07-26 00:28:22 +02:00
|
|
|
public:
|
|
|
|
HomebrewXML() { };
|
|
|
|
HomebrewXML(const char* filename) { LoadHomebrewXMLData(filename); };
|
2010-09-24 02:48:03 +02:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
int LoadHomebrewXMLData(const char* filename);
|
2014-05-04 16:42:52 +02:00
|
|
|
int SaveHomebrewXMLData(const char* filename);
|
2010-09-24 02:48:03 +02:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
const char * GetName() const;
|
|
|
|
void SetName(char * newName);
|
|
|
|
const char * GetCoder() const;
|
|
|
|
const char * GetVersion() const;
|
2014-05-04 16:42:52 +02:00
|
|
|
void SetVersion(const char * newVer);
|
2011-07-26 00:28:22 +02:00
|
|
|
const char * GetReleasedate() const;
|
|
|
|
const char * GetShortDescription() const;
|
|
|
|
const char * GetLongDescription() const;
|
|
|
|
const std::vector<std::string> & GetArguments() const { return Arguments; };
|
2014-05-04 16:42:52 +02:00
|
|
|
void SetArgument(const char* argument);
|
2010-09-24 02:48:03 +02:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
protected:
|
|
|
|
std::string Name;
|
|
|
|
std::string Coder;
|
|
|
|
std::string Version;
|
|
|
|
std::string Releasedate;
|
|
|
|
std::string ShortDescription;
|
|
|
|
std::string LongDescription;
|
|
|
|
std::vector<std::string> Arguments;
|
2009-10-01 01:10:58 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|