alert_observer.hpp
parent
4a67a2cc59
commit
035ad1cce0
|
@ -0,0 +1,8 @@
|
|||
from ..utils import Struct
|
||||
alert_observer = Struct({
|
||||
'alert_handler': None,
|
||||
'handle_alert': 0,
|
||||
'types': [],
|
||||
'num_types': 0,
|
||||
'flags': 0
|
||||
})
|
|
@ -1,4 +1,4 @@
|
|||
class AttrDict(dict):
|
||||
class Struct(dict):
|
||||
def __getattr__(self, attr):
|
||||
return self[attr]
|
||||
def __setattr__(self, attr, value):
|
||||
|
|
Loading…
Reference in New Issue