alert_observer.hpp

This commit is contained in:
gitadmin committed 2016-03-10 16:05:17 +03:00
1 parent 4a67a2cc59
commit 035ad1cce0
2 files changed
+9 -1

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
from ..utils import Struct
alert_observer = Struct({
'alert_handler': None,
'handle_alert': 0,
'types': [],
'num_types': 0,
'flags': 0
})
+1 -1
View File
@@ -1,4 +1,4 @@
class AttrDict(dict):
class Struct(dict):
def __getattr__(self, attr):
return self[attr]
def __setattr__(self, attr, value):