Package dns :: Package rdtypes :: Package ANY :: Module LOC :: Class LOC
[hide private]
[frames] | no frames]

Class LOC

source code

 object --+    
          |    
rdata.Rdata --+
              |
             LOC

LOC record


See Also: RFC 1876

Instance Methods [hide private]
 
__init__(self, rdclass, rdtype, latitude, longitude, altitude, size=100.0, hprec=1000000.0, vprec=1000.0)
Initialize a LOC record instance.
source code
 
to_text(self, origin=None, relativize=True, **kw)
Convert an rdata to text format.
source code
 
to_wire(self, file, compress=None, origin=None)
Convert an rdata to wire format.
source code
 
_get_float_latitude(self) source code
 
_set_float_latitude(self, value) source code
 
_get_float_longitude(self) source code
 
_set_float_longitude(self, value) source code

Inherited from rdata.Rdata: __eq__, __ge__, __gt__, __hash__, __le__, __lt__, __ne__, __repr__, __str__, choose_relativity, covers, extended_rdatatype, to_digestable, validate

Inherited from rdata.Rdata (private): _cmp

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]
 
from_text(cls, rdclass, rdtype, tok, origin=None, relativize=True) source code
 
from_wire(cls, rdclass, rdtype, wire, current, rdlen, origin=None) source code
Instance Variables [hide private]
float altitude
altitude
float horizontal_precision
horizontal precision
(int, int, int, int, sign) tuple specifying the degrees, minutes, seconds, milliseconds, and sign of the coordinate. latitude
latitude
(int, int, int, int, sign) tuple specifying the degrees, minutes, seconds, milliseconds, and sign of the coordinate. longitude
longitude
float size
size of the sphere
float vertical_precision
vertical precision
Properties [hide private]
  float_latitude
latitude as a floating point value
  float_longitude
longitude as a floating point value

Inherited from rdata.Rdata: rdclass, rdtype

Inherited from object: __class__

Method Details [hide private]

__init__(self, rdclass, rdtype, latitude, longitude, altitude, size=100.0, hprec=1000000.0, vprec=1000.0)
(Constructor)

source code 

Initialize a LOC record instance.

The parameters latitude and longitude may be either a 4-tuple of integers specifying (degrees, minutes, seconds, milliseconds), or they may be floating point values specifying the number of degrees. The other parameters are floats. Size, horizontal precision, and vertical precision are specified in centimeters.

Overrides: object.__init__

to_text(self, origin=None, relativize=True, **kw)

source code 

Convert an rdata to text format.

Returns a ``text``.

Overrides: rdata.Rdata.to_text
(inherited documentation)

from_text(cls, rdclass, rdtype, tok, origin=None, relativize=True)
Class Method

source code 
Overrides: rdata.Rdata.from_text

to_wire(self, file, compress=None, origin=None)

source code 

Convert an rdata to wire format.

Returns a ``binary``.

Overrides: rdata.Rdata.to_wire
(inherited documentation)

from_wire(cls, rdclass, rdtype, wire, current, rdlen, origin=None)
Class Method

source code 
Overrides: rdata.Rdata.from_wire

Property Details [hide private]

float_latitude

latitude as a floating point value

Get Method:
_get_float_latitude(self)
Set Method:
_set_float_latitude(self, value)

float_longitude

longitude as a floating point value

Get Method:
_get_float_longitude(self)
Set Method:
_set_float_longitude(self, value)