NNADK_TRACE Macro

The NNADK_TRACE macro enables you to insert statements into the nml file. NNSYAdapter39 must be run with the -trace option for these statements to appear.

NNADK_TRACE is based on the vprintf() function. It takes a format string and a variable list of arguments and outputs a formatted string to the nml file. The following is an example:

STL_STRING InFileName=config.getStringValue("Adapter.in_file_name");

NNADK_TRACE("Infile--%s\n", InFileName.c_str());

Assuming that the value of the Adapter.in_file_name key is "s.txt", the e-ADK would place the following string in the nml file:

"Infile--x.txt"

See a C or C++ reference for more information about vprintf().