forked from kovacsv/VisualScriptEngineWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNE_Slot.hpp
More file actions
39 lines (29 loc) · 708 Bytes
/
NE_Slot.hpp
File metadata and controls
39 lines (29 loc) · 708 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
39
#ifndef NE_SLOT_HPP
#define NE_SLOT_HPP
#include "NE_NodeEngineTypes.hpp"
#include "NE_Serializable.hpp"
#include "NE_NodeId.hpp"
#include "NE_SlotId.hpp"
#include "NE_Value.hpp"
namespace NE
{
class Slot : public DynamicSerializable
{
SERIALIZABLE;
public:
Slot ();
Slot (const SlotId& slotId);
Slot (const Slot& src) = delete;
virtual ~Slot ();
const SlotId& GetId () const;
bool HasOwnerNode () const;
NodeId GetOwnerNodeId () const;
bool SetOwnerNode (Node* newOwnerNode);
virtual Stream::Status Read (InputStream& inputStream) override;
virtual Stream::Status Write (OutputStream& outputStream) const override;
protected:
SlotId slotId;
Node* ownerNode;
};
}
#endif