-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathscriptnode.cc
50 lines (37 loc) · 1.52 KB
/
scriptnode.cc
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
39
40
41
42
43
44
45
46
47
48
#include "scriptnode.h"
namespace AdGraphAPI
{
ScriptNode::ScriptNode(std::string id,
std::string script_text,
bool is_eval_or_function) :
Node(id),
script_text_(script_text),
is_eval_or_function_(is_eval_or_function) {}
void ScriptNode::SetEvalOrFunction(bool has_eval_or_function){
has_eval_or_function_ = has_eval_or_function;
}
void ScriptNode::SetFingerprintingKeyword(bool has_fingerprinting_keyword){
has_fingerprinting_keyword_ = has_fingerprinting_keyword;
}
void ScriptNode::SetScriptPropertiesComputedStatus(bool are_script_properties_computed){
are_script_properties_computed_ = are_script_properties_computed;
}
bool ScriptNode::GetScriptPropertiesComputedStatus(){
return are_script_properties_computed_;
}
int ScriptNode::GetScriptLength(){
return script_text_.length();
}
std::string ScriptNode::GetScriptText(){
return script_text_;
}
bool ScriptNode::GetIsEvalOrFunction(){
return is_eval_or_function_;
}
bool ScriptNode::HasEvalOrFunction(){
return has_eval_or_function_;
}
bool ScriptNode::HasFingerprintingKeyword(){
return has_fingerprinting_keyword_;
}
} // namespace AdGraphAPI