aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/IGraphObservable.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/armnn/IGraphObservable.hpp')
-rw-r--r--src/armnn/IGraphObservable.hpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/armnn/IGraphObservable.hpp b/src/armnn/IGraphObservable.hpp
new file mode 100644
index 0000000000..f1779ec1da
--- /dev/null
+++ b/src/armnn/IGraphObservable.hpp
@@ -0,0 +1,28 @@
+//
+// Copyright © 2017 Arm Ltd. All rights reserved.
+// See LICENSE file in the project root for full license information.
+//
+#pragma once
+
+#include "Layer.hpp"
+
+namespace armnn
+{
+
+enum class GraphEvent
+{
+ LayerAdded,
+ LayerErased
+};
+
+class IGraphObservable
+{
+public:
+ virtual void Update(Layer* graphLayer) = 0;
+
+protected:
+ virtual ~IGraphObservable() = default;
+};
+
+} //namespace armnn
+