git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More debugscript things, sanity fading fast
[ipdf/code.git]
/
src
/
debugscript.h
diff --git
a/src/debugscript.h
b/src/debugscript.h
index
3697201
..
8b62b5c
100644
(file)
--- a/
src/debugscript.h
+++ b/
src/debugscript.h
@@
-13,6
+13,8
@@
namespace IPDF
class DebugScript
{
public:
class DebugScript
{
public:
+ DebugScript() : inp(), currentAction(), m_actions(), m_labels(), m_index(0) {}
+ virtual ~DebugScript() {}
void Load(const char *filename)
{
inp.open(filename);
void Load(const char *filename)
{
inp.open(filename);
@@
-31,6
+33,9
@@
private:
AT_EnableLazyRendering,
AT_DisableLazyRendering,
AT_LoadSVG,
AT_EnableLazyRendering,
AT_DisableLazyRendering,
AT_LoadSVG,
+ AT_Label,
+ AT_Goto,
+ AT_Debug,
AT_Quit
};
AT_Quit
};
@@
-42,14
+47,16
@@
private:
Real z;
int iz;
int loops;
Real z;
int iz;
int loops;
- std::string
filename
;
- Action() : type(AT_WaitFrame), x(0), y(0), ix(0), iy(0), z(0), loops(0) {}
+ std::string
textargs
;
+ Action() : type(AT_WaitFrame), x(0), y(0), ix(0), iy(0), z(0), loops(0)
, textargs("")
{}
};
std::ifstream inp;
Action currentAction;
};
std::ifstream inp;
Action currentAction;
-
+ std::vector<Action> m_actions;
+ std::map<std::string, int> m_labels;
+ unsigned m_index;
void ParseAction();
};
void ParseAction();
};
UCC
git Repository :: git.ucc.asn.au