Home Libraries Author Links

SmartptrAids Test
[SmartptrAids: Smart Pointer Aids]

Collaboration diagram for SmartptrAids Test:

Detailed Description

Demonstration of the usage and tests of the implementation of the SysToMath Aids C++ Library module SmartptrAids.


Files

file  smartptrtest.cpp
 Implementation of a console program demostrating the usage and testing the implementation of the SysToMath Aids C++ Library module SmartptrAids.

Classes

struct  Xyz
class  Slot
class  Node
struct  Operation
struct  TestPtr< Policy >
struct  TestSet< Policy >

Variables

static const char * man []
 Man page.


Variable Documentation

const char* man[] [static]

Initial value:

{
"NAME                                                                         ",
"       smartptrtest - test classes and class templates of smartptraids.hpp   ",
"                                                                             ",
"SYNOPSIS                                                                     ",
"       smartptrtest [--load-only] [--type=<test-type>] [--mode=<test-mode>]  ",
"                    [--archive=<archive-type>] [--dir=<directory>]           ",
"       smartptrtest --help [<option-name>...]                                ",
"       smartptrtest --version                                                ",
"                                                                             ",
"DESCRIPTION                                                                  ",
"       The command 'smartptrtest' tests classes and class templates of the   "
"       SysToMath library 'libstmaids' declared in the C++ header file        "
"       'stm/smartptraids.hpp'.                                               ",
"       Unless option --load-only is used, at first boost serialization       "
"       archives of the types configured by option --archive containing       "
"       reference data of test types selected by option --type in the modes   "
"       given by option --mode are created.  Then these archives are loaded   "
"       and their contents are compared with the reference data used to create"
"       the archives.                                                         ",
"       The archive files are stored in the directory supplied by option --dir"
"       and are named 'test-<test-mode>_<test-type>.<archive-type>'.          ",
"       The test protocol is written to standard output.                      "
"                                                                             ",
"OPTIONS                                                                      ",
"       --help                                                                ",
"       -h     If no argument <option-name> follows, print the command man    "
"              page on standard output, else the description of the options   "
"              <option-name> and exit with exit code 2.  The arguments        "
"              <option-name> shall be stated without leading '-' or '--'.     ",
"                                                                             ",
"       --version                                                             ",
"       -V     Print version info on standard output and exit with exit code  "
"              2.                                                             ",
"                                                                             ",
"       --load-only                                                           ",
"       -l                                                                    ",
"              Do not create boost serialization archives before loading them."
"              Assume that the archives to be loaded already exist.           ",
"              By default all archives needed are created before loading them "
"              again.                                                         ",
"                                                                             ",
"       --type=<test-type>                                                    ",
"       -t test-type                                                          ",
"              Test type templates to be handled: <test-type> is one of the   "
"              following arguments:                                           ",
"              'ptr': TestPtr test type template                              ",
"              'set': TestSet test type template,                             ",
"              'all': all of the above test type templates (default).         ",
"                                                                             ",
"       --mode=<test-mode>                                                    ",
"       -m test-mode                                                          ",
"              Test modes to be handled: <test-mode> is one of the following  "
"              arguments:                                                     ",
"              'injective' or 'inj': injective_ptr based test mode,           ",
"              'bijective' or 'bij': bijective_ptr based test mode,           ",
"              'all': all of the above test modes (default).                  ",
"                                                                             ",
"       --archive=<archive-type>                                              ",
"       -a <archive-type>                                                     ",
"              Boost serialization archive types to be handled: <archive-type>"
"              is one of the following arguments:                             ",
"              'txt': text archive type                                       ",
"              'bin': binary archive type,                                    ",
"              'xml': XML archive type,                                       ",
"              'all': all of the above archive types (default).               ",
"                                                                             ",
"       --dir=<directory>                                                     ",
"       -d <directory>                                                        ",
"              Set <directory> as the directory where archive files are       "
"              created and loaded from.  By default this is the current       "
"              directory.                                                     "
}
Man page.

Definition at line 79 of file smartptrtest.cpp.


© Copyright Tom Michaelis 2002-2007

Distributed under the SysToMath Software License (See the accompanying file license.txt or a copy at www.SysToMath.com).