-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathscriptnode.h
34 lines (27 loc) · 892 Bytes
/
scriptnode.h
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
#ifndef SCRIPTNODE
#define SCRIPTNODE
#include "node.h"
#include <string>
namespace AdGraphAPI
{
class ScriptNode : public Node {
public:
ScriptNode(std::string id, std::string script_text, bool is_eval_or_function);
void SetEvalOrFunction(bool has_eval_or_function);
void SetFingerprintingKeyword(bool has_fingerprinting_keyword);
void SetScriptPropertiesComputedStatus(bool are_script_properties_computed);
std::string GetScriptText();
bool GetScriptPropertiesComputedStatus();
int GetScriptLength();
bool GetIsEvalOrFunction();
bool HasEvalOrFunction();
bool HasFingerprintingKeyword();
private:
std::string script_text_;
bool is_eval_or_function_;
bool has_eval_or_function_;
bool has_fingerprinting_keyword_;
bool are_script_properties_computed_ = false;
};
} // namespace AdGraphAPI
#endif // SCRIPTNODE