File: //lib64/python2.7/site-packages/dns/rdataset.pyo
�
ҥ�Oc           @   s�   d  Z  d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l	 Z e j
 j Z d e j
 j f d �  �  YZ d e j
 j f d �  �  YZ d e j
 j f d �  �  YZ d	 �  Z d
 �  Z d �  Z d �  Z d S(
   sH   DNS rdatasets (an rdataset is a set of rdatas of a given type and class)i����Nt   DifferingCoversc           B   s   e  Z d  Z RS(   s�   Raised if an attempt is made to add a SIG/RRSIG whose covered type
    is not the same as that of the other rdatas in the rdataset.(   t   __name__t
   __module__t   __doc__(    (    (    s2   /usr/lib64/python2.7/site-packages/dns/rdataset.pyR       s   t   IncompatibleTypesc           B   s   e  Z d  Z RS(   sB   Raised if an attempt is made to add rdata of an incompatible type.(   R   R   R   (    (    (    s2   /usr/lib64/python2.7/site-packages/dns/rdataset.pyR   $   s   t   Rdatasetc           B   s�   e  Z d  Z d d d d g Z e j j d � Z d �  Z d �  Z	 d d � Z d	 �  Z d
 �  Z
 d �  Z d �  Z d
 �  Z d �  Z d �  Z d d e d d � Z d d d e d � Z d �  Z RS(   s�  A DNS rdataset.
    @ivar rdclass: The class of the rdataset
    @type rdclass: int
    @ivar rdtype: The type of the rdataset
    @type rdtype: int
    @ivar covers: The covered type.  Usually this value is
    dns.rdatatype.NONE, but if the rdtype is dns.rdatatype.SIG or
    dns.rdatatype.RRSIG, then the covers value will be the rdata
    type the SIG/RRSIG covers.  The library treats the SIG and RRSIG
    types as if they were a family of
    types, e.g. RRSIG(A), RRSIG(NS), RRSIG(SOA).  This makes RRSIGs much
    easier to work with than if RRSIGs covering different rdata
    types were aggregated into a single RRSIG rdataset.
    @type covers: int
    @ivar ttl: The DNS TTL (Time To Live) value
    @type ttl: int
    t   rdclasst   rdtypet   coverst   ttlc         C   s;   t  t |  � j �  | |  _ | |  _ | |  _ d |  _ d S(   s�   Create a new rdataset of the specified class and type.
        @see: the description of the class instance variables for the
        meaning of I{rdclass} and I{rdtype}i    N(   t   superR   t   __init__R   R   R   R	   (   t   selfR   R   R   (    (    s2   /usr/lib64/python2.7/site-packages/dns/rdataset.pyR   >