Feature #415 » just_filename.patch
oflog/libsrc/patlay.cc | ||
---|---|---|
#define INCLUDE_UNISTD /* needed for declaration of getpid() */
|
||
#include "dcmtk/ofstd/ofstdinc.h"
|
||
#include "dcmtk/ofstd/ofstd.h"
|
||
#ifdef DCMTK_LOG4CPLUS_HAVE_SYS_TYPES_H
|
||
#include <sys/types.h>
|
||
#endif
|
||
... | ... | |
case FULL_LOCATION_CONVERTER:
|
||
{
|
||
tstring const & filename = event.getFile();
|
||
tstring const & filepath = event.getFile();
|
||
OFString filename;
|
||
OFStandard::getFilenameFromPath(filename, filepath);
|
||
if(! filename.empty ()) {
|
||
return filename
|
||
+ DCMTK_LOG4CPLUS_TEXT(":")
|