#***
#*********************************************************************
#*************************************************************************
#***
#*** GizmoDaemon Config Script v3:0
#*** GizmoDaemon.py
#***
#*****************************************
#*****************************************
#***
############################
# Imports
##########################
from GizmoDaemon import *
############################
# Dispatcher Class definition
##########################
class GizmodDispatcher(GizmodEventHandler):
"""
Main class that handles all of the incoming events
"""
############################
# Public Functions
##########################
def getInitialized(self):
""" Gets whether or not the object has been initialized """
return self.initialized
def initialize(self):
"""
This python function gets called by GizmoDeamon and is intended to allow for
user specific initialization code to be executed during program startup.
"""
print "GizmoDaemon Config Script v" + Gizmod.getVersion() + " -- Initializing"
self.initialized = True
############################
# Private Functions
##########################
def __construct__(self):
"""
Default Constructor -- Use this rather than __init__
"""
self.initialized = False
############################
# Dispatcher class end
##########################
# To run user defined code post initializing, see User.py which is executed
# after this file is parsed, and:
#
# - An interface to the main C++ program core is availabe via the
# object "Gizmod"
# - An instantiation of the GizmodDispatcher is available as "Dispatcher"