33 #include "dcmtk/config/osconfig.h"
34 #include "dcmtk/ofstd/oftypes.h"
35 #include "dcmtk/ofstd/ofstring.h"
62 OFBool
makeFilename(
unsigned int seed,
const char *dir,
const char *prefix,
const char *postfix,
OFString &filename);
68 static unsigned int hashString(
const char *str);
77 static int myrand_r(
unsigned int *seed);
virtual ~OFFilenameCreator()
destructor
OFFilenameCreator & operator=(const OFFilenameCreator ©)
assignment operator
OFFilenameCreator()
default constructor
OFBool makeFilename(unsigned int seed, const char *dir, const char *prefix, const char *postfix, OFString &filename)
creates a new unique filename.
static int myrand_r(unsigned int *seed)
simple but thread safe random number generator.
a simple string class that implements a subset of std::string.
A class for automatically creating unique pseudo-random filenames.
unsigned long creation_time
date/time of creation of this object
static void addLongToString(unsigned long l, OFString &s)
appends the lower 32 bit of the given number to the given string.
static unsigned int hashString(const char *str)
creates hash value.