Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

DnsNull.h

00001 /* -*- Mode: C++; c-file-style: "stroustrup"; indent-tabs-mode: nil -*- */
00002 /*
00003  * DnsNull.h
00004  *   Empty DNS driver. For use when debugging or when using a DNS that reads
00005  *   directly from the backend database.
00006  *
00007  * $Id: DnsNull.h,v 1.6 2001/01/01 20:14:20 rex Exp $
00008  *
00009  * Copyright (c) 2000 Remi Lefebvre <remi@dhis.net>
00010  *
00011  * DDT comes with ABSOLUTELY NO WARRANTY and is licenced under the
00012  * GNU General Public License (version 2 or later). This license
00013  * can be retrieved from http://www.gnu.org/copyleft/gnu.html.
00014  *
00015  */
00016 
00017 #ifndef DNSNULL_H
00018 #define DNSNULL_H
00019 
00020 #ifdef HAVE_CONFIG_H
00021 #include "config.h"
00022 #endif
00023 
00024 #include "Dns.h"
00025 
00031 class DnsNull : public Dns
00032 {
00033   public:
00035     DnsNull(Logger *log) { }
00036 
00038     ~DnsNull() {}
00039 
00041     void addDnsRecord(int id, const char *dname,  DnsRecordType type,
00042                       const char *data) { }
00043 
00045     void delDnsRecords(char *dname) { }
00046 
00048     void delDnsRecord(int id, const char *dname, DnsRecordType type,
00049                       const char *data) { }
00050 
00051     void updateDnsRecord(int id, const char *dname, DnsRecordType type,
00052                          const char *data) { }
00053 
00054   private:
00056     DnsNull() { };
00057 
00058 
00059 };
00060 
00061 #endif // DNSNULL_H

Generated on Tue Sep 13 01:32:47 2005 for DDT Project by  doxygen 1.4.4