forked from salamb/STPNC-MTConnect-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Exec.h
43 lines (40 loc) · 917 Bytes
/
Exec.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
35
36
37
38
39
40
41
42
43
using namespace System;
using namespace System::Net;
using namespace System::Collections::Generic;
using namespace System::IO;
using namespace System::Text;
#pragma once
#ifndef __EXEC__
#define __EXEC__
ref class WP;
ref class Exec
{
private:
String ^ name;
__int64 id;
__int64 index;
WP^ parent;
__int64 copyID;
bool typeWP;
public:
bool isWP(){return typeWP;};
//get name of Executable
String^ getName(){return name;};
// get stpnc id of Executable
__int64 getId(){return id;};
// index in list of enabled executalbes for an enabled parent WorkPlan
__int64 getIndex(){return index;};
__int64 getCopyID() { return copyID; }
void setCopyID(__int64 i) { copyID = i; }
bool copyCreated() { if (copyID == -1) { return false; } else { return true; } }
WP^ getParent();
Exec(String^ n,__int64 ID,__int64 in,WP^p,bool iswp){
name=n;
id=ID;
index=in;
parent=p;
typeWP=iswp;
copyID = -1;
}
};
#endif