2012-01-23 07:41:05 +00:00
|
|
|
#ifndef ABSTRACTDATA_H
|
|
|
|
#define ABSTRACTDATA_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
// All information types inherit from here
|
|
|
|
class AbstractData
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
AbstractData();
|
|
|
|
|
|
|
|
virtual std::string GenAsm(); // Generate Assembly Output
|
|
|
|
virtual bool Parse(unsigned char* byte); // Parse Given Data
|
2012-01-26 12:22:29 +00:00
|
|
|
virtual bool GetError(); // Get Error (No Write, Error is read only)
|
2012-01-23 07:41:05 +00:00
|
|
|
|
2012-01-26 12:22:29 +00:00
|
|
|
virtual bool IsValid(unsigned char* byte); // Check for byte validity
|
|
|
|
virtual unsigned int Arguments(); // Number of arguments taken
|
2012-01-23 07:41:05 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
bool error; // Whether there's an error in parsing or not
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|