DCMTK  Version 3.6.2
OFFIS DICOM Toolkit
ofstd: a library of general purpose classes

This module contains general purpose classes which are not specific to the DICOM standard. They are used extensively throughout the toolkit.

The main classes are (in alphabetical order):

Here are some further helper classes that are of interest:

Testing

This module also contains a simple test framework.

New tests can be written with the OF_TEST macro and checks can be implemented with the OF_CHECK, OF_CHECK_EQUAL and OF_FAIL macros. Each test then has to be registered with OF_TEST_REGISTER() in a source file calling OF_TEST_MAIN("name_of_module")

Here is an example which uses all these macros:

OF_TEST(ofstd_Example)
{
// If possible, use this. In case of errors, the error message
// will contain both values.
OF_CHECK_EQUAL(1, 2);
// The error message here will just say that "1 == 2" failed. If you are
// comparing variables, the values will be unknown.
OF_CHECK(1 == 2);
// This just prints a message of your choice.
if (1 != 2)
OF_FAIL("1 does not equal 2");
}


Generated on Mon Jul 17 2017 for DCMTK Version 3.6.2 by Doxygen 1.8.13