TotalDepth.util.plot.XMLCfg (XML Plot Description Low-level support)

Provides low level support for XML plot configurations

Created on Dec 13, 2011

exception TotalDepth.util.plot.XMLCfg.ExceptionXMLCfg

Exception class for this module.

exception TotalDepth.util.plot.XMLCfg.ExceptionXMLCfgWrongRootElem

Exception when the root element is wrong.

exception TotalDepth.util.plot.XMLCfg.ExceptionXMLCfgMissingElem

Exception when the is a missing mandatory element.

exception TotalDepth.util.plot.XMLCfg.ExceptionXMLCfgNoContent

Exception when the is missing content.

class TotalDepth.util.plot.XMLCfg.LgXMLBase

Base class for XML functionality that can be used by both FILM and PRES XML classes.

str(e, name, default=None)

Returns the text in a single child element or None.

bool(e, name, default=False)

Returns the text in a single child element converting 1/0 to True/False.

int(e, name, default=0)

Returns the text in a single child element as an integer defaulting to 0.

float(e, name, default=0.0)

Returns the text in a single child element as a float.

__weakref__

list of weak references to the object (if defined)