Deleting Logger Files
The Logger Control PDU, DtLgrDelFilePdu instructs the Logger to delete a Logger file. The file to be deleted must be a Logger file of the correct protocol, that is, the HLA Logger can delete only HLA files.
If the Logger receives a DtLgrDelFilePdu that specifies the filename foo.lgr, it searches for foo.lgr in its working directory. If the PDU specifies a relative pathname, such as ../logger_tapes/foo.lgr, the Logger searches for the file at that location relative to its working directory.
Diagnostic messages are sent to the logger.txt file.
To create a DtLgrDelFilePdu, use code similar to the following:
#include "lcDelFile.h"
...
DtLgrDelFilePdu deleteFile;
deleteFile.setFilename("logger_tape.lgr");
#ifDtHLA
DtLgrControlInteraction lcInter;
lcInter.setLcPdu(deleteFile);
exerciseConn.sendStamped(lcInter);
#else
exerciseConn.sendStamped(deletefile);
#endif