blob: 0b49255d634b5e5a439498f9460500d0e6df6c6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#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
virtual bool GetError(); // Get Error (No Write, Error is read only)
virtual bool IsValid(unsigned char* byte); // Check for byte validity
virtual unsigned int Arguments(); // Number of arguments taken
protected:
bool error; // Whether there's an error in parsing or not
};
#endif
|