-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScript.h
More file actions
38 lines (30 loc) · 734 Bytes
/
Script.h
File metadata and controls
38 lines (30 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// Script.h
// Tech1
//
// Created by Justin Hust on 12/22/13.
// Copyright (c) 2013 __MyCompanyName__. All rights reserved.
//
#ifndef Tech1_Script_h
#define Tech1_Script_h
#include "Environment.h"
#include "Token.h"
class ScriptInstance {
private:
// DATA
Environment _env;
ScriptToken * _tokCode;
System & _sys;
std::ostream & _os;
public:
// CREATORS
ScriptInstance(ScriptToken *tokCode, System &sys, std::ostream &os);
~ScriptInstance(void);
// MANIPULATORS
void set(const std::string &sField, Variant &val);
// ACCESSORS
void call(const std::string &sFuncName);
bool hasFunction(const std::string &sFuncName);
Variant get(const std::string &sField);
};
#endif