checkpoint
This commit is contained in:
parent
3c876211c2
commit
bfa4a8cd72
60 changed files with 239 additions and 87 deletions
|
|
@ -1,19 +1,28 @@
|
|||
#ifndef LOADER_H
|
||||
#define LOADER_H
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
class Machine;
|
||||
|
||||
class Loader
|
||||
{
|
||||
private:
|
||||
Machine* machine;
|
||||
|
||||
public:
|
||||
Loader();
|
||||
// Prebere niz dolžine len
|
||||
std::string readString(string &r, int len);
|
||||
std::string readString(std::istream &in, int len);
|
||||
|
||||
// Prebere en bajt (2 heksadecimalni znaka)
|
||||
int readByte(std::string &r);
|
||||
int readByte(std::istream &in);
|
||||
|
||||
// Prebere eno "besedo" (3 bajte = 6 heksadecimalnih znakov)
|
||||
int readWord(std::string &r);
|
||||
int readWord(std::istream &in);
|
||||
|
||||
bool loadSection(Machine& machine, std::istream& stream);
|
||||
|
||||
bool loadObj(Machine& machine, const std::string& filename);
|
||||
};
|
||||
|
||||
#endif // LOADER_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue