def add_condition(self, name, cond_class):
<EOL>if name in self.conditions:<EOL><INDENT>self._log.warn('<STR_LIT>'.format(type=name))<EOL><DEDENT>if not issubclass(cond_class, ConditionType):<EOL><INDENT>self._log.error('<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'.format(type=name))<EOL>return<EOL><DEDENT>self.conditions[name] = cond_class(name)<EOL>
Add a new custom condition type parser
:param name: The name of the condition type
:type  name: str

:param cond_class: The Class
:return: