Trees | Index | Help |
|
---|
Module indiclient :: Class indiblob |
|
indiobject
--+ |indinamedobject
--+ |indielement
--+ | indiblob
Method Summary | |
---|---|
| |
StringType |
Return the plain binary version of its data |
StringType |
Return the format of the BLOB, possible extensions due to compression like .z are removed |
StringType |
Return size of the xml representation of the data. |
StringType |
Return the plain binary version of its data |
StringType |
Returns an XML representation of the object |
NoneType |
Loads a BLOB with data from a file. |
NoneType |
Loads a BLOB with data from a string. |
NoneType |
Return None |
NoneType |
Update this element with data received form the XML Parser. |
NoneType |
Encodes the value to be written into the BLOB it does the base64 encoding as well as zlib compression. |
StringType |
Decodes the value of the BLOB it does the base64 decoding as well as zlib decompression. |
Inherited from indielement | |
NoneType |
Return None |
NoneType |
Prints all parameters of the object |
BooleanType |
Return True if the objects XML data was changed since the last
_get_changed was called, False
otherwise. |
NoneType |
Sets the value variable of this object. |
Inherited from indiobject | |
BooleanType |
Checks whether the object is valid. |
NoneType |
Raises an exception if the object is not writable |
Instance Variable Summary | |
---|---|
StringType | format : A string describing the file-format/-extension (e.g
.fits ) |
Inherited from indielement | |
StringType | _old_value : The old value of the object, the value it had when _get_changed was called last time. |
StringType | _value : The value of the INDI object. |
Inherited from indinamedobject | |
StringType | label : label of the INDI object as given in the "label" XML
attribute |
StringType | name : name of the INDI object as given in the "name" XML
attribute |
Inherited from indiobject | |
indixmltag |
tag : The XML tag of the INDI object (see indixmltag ). |
Method Details |
---|
__init__(self,
attrs,
tag)
|
get_data(self)
|
get_plain_format(self)
|
get_size(self)
|
get_text(self)
|
get_xml(self, transfertype)Returns an XML representation of the object
|
set_from_file(self, filename)Loads a BLOB with data from a file. The extension of the file is used asformat attribute of the BLOB
|
set_from_string(self, text, format)Loads a BLOB with data from a string.
|
set_text(self, text)
|
update(self, attrs, tag)Update this element with data received form the XML Parser.
|
_encode_and_set_value(self, value, format)Encodes the value to be written into the BLOB it does the base64 encoding as well as zlib compression. Zlib compression is done only if the currentformat string ends with .z .
base64 encoding is always done.
|
_get_decoded_value(self)Decodes the value of the BLOB it does the base64 decoding as well as zlib decompression. zlib decompression is done only if the currentformat string ends with .z .
base64 decoding is always done.
|
Instance Variable Details |
---|
formatA string describing the file-format/-extension (e.g.fits )
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Sep 10 10:26:03 2005 | http://epydoc.sf.net |