TML Messaging Suite  1.1.5
Python Extension
 All Data Structures Namespaces Functions Variables Groups Pages
Public Member Functions | Data Fields
SDXDocument Class Reference

SIDEX document. More...

Inheritance diagram for SDXDocument:

Public Member Functions

def __init__
 Constructor. More...
 
def __del__
 Destructor of SDXDocument. More...
 
def __getitem__
 Access a parameter group by name. More...
 
def __setitem__
 Set a group of values. More...
 
def __delitem__
 Delete a group from the document. More...
 
def keys
 Get a list of group names. More...
 
def __len__
 Get the number of groups in the document. More...
 
def __str__
 Convert the document data into a SIDEX XML string. More...
 
def write_value
 Write a value to the document. More...
 
def read_value
 Read a value from the document. More...
 
def save_to_file
 Save content to file. More...
 
def load_from_file
 Load content from file. More...
 
def clear
 Delete all values from the document. More...
 
def has_key
 Check if a group with name exists. More...
 

Data Fields

 content
 [str] Accessing XML content of the document. More...
 
 shandle
 [None] SIDEX document handle More...
 
 document_name
 [str] document and root node name in XML data More...
 
 autocast
 [bool] automatically cast SDX variant objects to python. More...
 

Detailed Description

SIDEX document.

A SIDEX document can be converted to a SIDEX XML string to be saved as a file or to be send to as a message to another process or host. If a SIDEX file or string has to be parsed, it is simply loaded into a SIDEX document that enables type safe access and modification.