Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
CellMLToNektar.utilities.NotifyHandler Class Reference
Inheritance diagram for CellMLToNektar.utilities.NotifyHandler:
Inheritance graph
[legend]
Collaboration diagram for CellMLToNektar.utilities.NotifyHandler:
Collaboration graph
[legend]

Public Member Functions

def __init__
 
def emit
 
def reset
 

Public Attributes

 messages
 

Detailed Description

A logging handler that just notes if any messages are logged.

Definition at line 79 of file utilities.py.

Constructor & Destructor Documentation

def CellMLToNektar.utilities.NotifyHandler.__init__ (   self,
  level = logging.NOTSET 
)

Definition at line 83 of file utilities.py.

References CellMLToNektar.utilities.NotifyHandler.reset().

83 
84  def __init__(self, level=logging.NOTSET):
85  logging.Handler.__init__(self, level=level)
86  self.reset()

Member Function Documentation

def CellMLToNektar.utilities.NotifyHandler.emit (   self,
  record 
)

Definition at line 87 of file utilities.py.

87 
88  def emit(self, record):
89  self.messages = True
def CellMLToNektar.utilities.NotifyHandler.reset (   self)
Reset the handler, as if no messages have occurred.

Definition at line 90 of file utilities.py.

References CellMLToNektar.utilities.NotifyHandler.messages.

Referenced by CellMLToNektar.utilities.NotifyHandler.__init__().

90 
91  def reset(self):
92  """Reset the handler, as if no messages have occurred."""
93  self.messages = False
94 

Member Data Documentation

CellMLToNektar.utilities.NotifyHandler.messages

Definition at line 88 of file utilities.py.

Referenced by CellMLToNektar.utilities.NotifyHandler.reset().