mirror of
				https://github.com/thornAvery/kep-hack.git
				synced 2025-10-31 19:00:58 +13:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			607 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			607 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #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 IsValid(unsigned char* byte); // Check for byte validity
 | |
|     virtual bool Parse(unsigned char* byte); // Parse Given Data
 | |
|     virtual unsigned int Arguments(); // Number of arguments taken
 | |
| 
 | |
|     virtual bool GetError(); // Get Error (No Write, Error is read only)
 | |
| 
 | |
| protected:
 | |
|     bool error; // Whether there's an error in parsing or not
 | |
| };
 | |
| 
 | |
| #endif |