template.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // Copyright (C) 2011 Internet Systems Consortium, Inc. ("ISC")
  2. //
  3. // Permission to use, copy, modify, and/or distribute this software for any
  4. // purpose with or without fee is hereby granted, provided that the above
  5. // copyright notice and this permission notice appear in all copies.
  6. //
  7. // THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
  8. // REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  9. // AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
  10. // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  11. // LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  12. // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  13. // PERFORMANCE OF THIS SOFTWARE.
  14. // BEGIN_HEADER_GUARD
  15. #include <string>
  16. #include <dns/rdata.h>
  17. // BEGIN_ISC_NAMESPACE
  18. // BEGIN_COMMON_DECLARATIONS
  19. // END_COMMON_DECLARATIONS
  20. // BEGIN_RDATA_NAMESPACE
  21. // To add RDATA class definition of a new RR type (say "MyType"), copy this
  22. // file to an appropriate subdirectory (if it's class-independent type, it
  23. // should go to "generic/", if it's IN-class specific, it should be in
  24. // "in_1/", and so on). The copied file should be named as type_nn.h where
  25. // "type" is textual representation (all lower cased) of the RR type, and "nn"
  26. // is the 16-bit type code of the RR type.
  27. // Normally, you'll need to define some specific member variables in the
  28. // "RR-type specific members" space (please make them private). In addition,
  29. // you may want to define some specific member functions, either public or
  30. // private (or, though unlikely for a leaf class, protected).
  31. //
  32. // Note: do not remove the comment lines beginning with "BEGIN_" and "END_".
  33. // These are markers used by a script for auto-generating build-able source
  34. // files.
  35. class MyType : public Rdata {
  36. public:
  37. // BEGIN_COMMON_MEMBERS
  38. // Do not remove the BEGIN_xxx and END_xxx comment lines.
  39. // END_COMMON_MEMBERS
  40. private:
  41. // RR-type specific members are here.
  42. };
  43. // END_RDATA_NAMESPACE
  44. // END_ISC_NAMESPACE
  45. // END_HEADER_GUARD
  46. // Local Variables:
  47. // mode: c++
  48. // End: