BIND 10 trac2230, updated. 6febded786acd66e509faf6cc31f78a019609666 [2230] Added initial version of perfdhcp classes description doc.
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Sep 10 13:37:44 UTC 2012
The branch, trac2230 has been updated
via 6febded786acd66e509faf6cc31f78a019609666 (commit)
from 0ebd6dbbd9af7ea20543a9813a9d38cc7a227935 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 6febded786acd66e509faf6cc31f78a019609666
Author: Marcin Siodelski <marcin at isc.org>
Date: Mon Sep 10 15:37:23 2012 +0200
[2230] Added initial version of perfdhcp classes description doc.
-----------------------------------------------------------------------
Summary of changes:
tests/tools/perfdhcp/perfdhcp-classes.html | 29 ++++++++++
tests/tools/perfdhcp/perfdhcp-classes.xml | 81 ++++++++++++++++++++++++++++
2 files changed, 110 insertions(+)
create mode 100644 tests/tools/perfdhcp/perfdhcp-classes.html
create mode 100644 tests/tools/perfdhcp/perfdhcp-classes.xml
-----------------------------------------------------------------------
diff --git a/tests/tools/perfdhcp/perfdhcp-classes.html b/tests/tools/perfdhcp/perfdhcp-classes.html
new file mode 100644
index 0000000..599bf46
--- /dev/null
+++ b/tests/tools/perfdhcp/perfdhcp-classes.html
@@ -0,0 +1,29 @@
+<html><head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+ <title>perfdhcp objects breakdown</title><link rel="stylesheet" type="text/css" href="bind10-guide.css"><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"><meta name="description" content="This document briefly describes C++ classes being part of the perfdhcp tool."></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="book" title="perfdhcp objects breakdown"><div class="titlepage"><div><div><h1 class="title"><a name="d0e3"></a>perfdhcp objects breakdown</h1></div><div><div class="author"><h3 class="author"><span class="firstname">Marcin</span> <span class="surname">Siodelski</span></h3></div></div><div><p class="releaseinfo">This is a companion document for BIND 10 version
+ 20120712.</p></div><div><p class="copyright">Copyright © 2012 Internet Systems Consortium, Inc. ("ISC")</p></div><div><div class="abstract" title="Abstract"><p class="title"><b>Abstract</b></p><p>This document briefly describes C++ classes being part of the
+ perfdhcp tool. </p></div></div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="chapter"><a href="#perfdhcp-classes">1. Classes</a></span></dt><dd><dl><dt><span class="section"><a href="#command-options">CommandOptions (command_options (.h, cc)</a></span></dt></dl></dd></dl></div><div class="chapter" title="Chapter 1. Classes"><div class="titlepage"><div><div><h2 class="title"><a name="perfdhcp-classes"></a>Chapter 1. Classes</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#command-options">CommandOptions (command_options (.h, cc)</a></span></dt></dl></div><div class="section" title="CommandOptions (command_options (.h, cc)"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="command-options"></a>CommandOptions (command_options (.h, cc)</h2></div></div></div><p>
+ CommandOptions is a singleton class that parses perfdhcp command line
+ parameters and initializes its members accordingly. If parsed parameters
+ are invalid the parser function throws exception.
+ </p><pre class="screen">
+main(int argc, char* argv[]) {
+ try {
+ CommandOptions& command_options = CommandOptions::instance();
+ command_options.parse(argc, argv);
+ catch(const Exception& e) {
+ ...
+ }
+ ...
+}
+ </pre><p>
+ If argument parsing is successful than parsed values can be read from
+ CommandOptions singleton from any class or function in the program:
+ </p><pre class="screen">
+
+ ...
+ int rate = CommandOptions::instance().getRate();
+ ...
+
+ </pre><p>
+ </p></div></div></div></body></html>
\ No newline at end of file
diff --git a/tests/tools/perfdhcp/perfdhcp-classes.xml b/tests/tools/perfdhcp/perfdhcp-classes.xml
new file mode 100644
index 0000000..13da7c6
--- /dev/null
+++ b/tests/tools/perfdhcp/perfdhcp-classes.xml
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
+<!ENTITY mdash "—" >
+<!ENTITY % version SYSTEM "version.ent">
+%version;
+]>
+
+<!--
+ - Copyright (C) 2012 Internet Systems Consortium, Inc. ("ISC")
+ -
+ - Permission to use, copy, modify, and/or distribute this software for any
+ - purpose with or without fee is hereby granted, provided that the above
+ - copyright notice and this permission notice appear in all copies.
+ -
+ - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+ - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+ - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+ - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ - PERFORMANCE OF THIS SOFTWARE.
+-->
+
+<?xml-stylesheet href="bind10-guide.css" type="text/css"?>
+
+<book>
+ <bookinfo>
+ <title>perfdhcp objects breakdown</title>
+ <!-- <subtitle>perfdhcp objects breakdown</subtitle> -->
+
+ <copyright>
+ <year>2012</year>
+ <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
+ </copyright>
+ <author>
+ <firstname>Marcin</firstname>
+ <surname>Siodelski</surname>
+ </author>
+ <abstract>
+ <para>This document briefly describes C++ classes being part of the
+ perfdhcp tool. </para>
+ </abstract>
+
+ <releaseinfo>This is a companion document for BIND 10 version
+ &__VERSION__;.</releaseinfo>
+
+ </bookinfo>
+
+ <chapter id="perfdhcp-classes">
+ <title>Classes</title>
+ <section id="command-options">
+ <title>CommandOptions (command_options (.h, cc)</title>
+ <para>
+ CommandOptions is a singleton class that parses perfdhcp command line
+ parameters and initializes its members accordingly. If parsed parameters
+ are invalid the parser function throws exception.
+ <screen>
+<![CDATA[main(int argc, char* argv[]) {
+ try {
+ CommandOptions& command_options = CommandOptions::instance();
+ command_options.parse(argc, argv);
+ catch(const Exception& e) {
+ ...
+ }
+ ...
+}]]>
+ </screen>
+ If argument parsing is successful than parsed values can be read from
+ CommandOptions singleton from any class or function in the program:
+ <screen>
+<![CDATA[
+ ...
+ int rate = CommandOptions::instance().getRate();
+ ...
+]]>
+ </screen>
+ </para>
+ </section>
+ </chapter>
+</book>
More information about the bind10-changes
mailing list