OFFIS DCMTK  Version 3.6.0
offname.h
1 /*
2  *
3  * Copyright (C) 1997-2010, OFFIS e.V.
4  * All rights reserved. See COPYRIGHT file for details.
5  *
6  * This software and supporting documentation were developed by
7  *
8  * OFFIS e.V.
9  * R&D Division Health
10  * Escherweg 2
11  * D-26121 Oldenburg, Germany
12  *
13  *
14  * Module: ofstd
15  *
16  * Author: Marco Eichelberg
17  *
18  * Purpose:
19  * classes: OFFilenameCreator
20  *
21  * Last Update: $Author: joergr $
22  * Update Date: $Date: 2010-10-14 13:15:50 $
23  * CVS/RCS Revision: $Revision: 1.9 $
24  * Status: $State: Exp $
25  *
26  * CVS/RCS Log at end of file
27  *
28  */
29 
30 #ifndef OFFNAME_H
31 #define OFFNAME_H
32 
33 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
34 #include "dcmtk/ofstd/oftypes.h"
35 #include "dcmtk/ofstd/ofstring.h"
36 
40 {
41 public:
44 
47 
49  virtual ~OFFilenameCreator();
50 
53 
62  OFBool makeFilename(unsigned int seed, const char *dir, const char *prefix, const char *postfix, OFString &filename);
63 
68  static unsigned int hashString(const char *str);
69 
77  static int myrand_r(unsigned int *seed);
78 
79 private:
80 
82  unsigned long creation_time;
83 
89  static void addLongToString(unsigned long l, OFString& s);
90 };
91 
92 #endif
93 
94 /*
95  * $Log: offname.h,v $
96  * Revision 1.9 2010-10-14 13:15:50 joergr
97  * Updated copyright header. Added reference to COPYRIGHT file.
98  *
99  * Revision 1.8 2005/12/08 16:05:56 meichel
100  * Changed include path schema for all DCMTK header files
101  *
102  * Revision 1.7 2003/12/05 10:37:41 joergr
103  * Removed leading underscore characters from preprocessor symbols (reserved
104  * symbols). Updated copyright date where appropriate.
105  *
106  * Revision 1.6 2003/06/12 13:15:59 joergr
107  * Fixed inconsistent API documentation reported by Doxygen.
108  *
109  * Revision 1.5 2001/06/01 15:51:34 meichel
110  * Updated copyright header
111  *
112  * Revision 1.4 2000/10/10 12:01:04 meichel
113  * Implemented thread safe random number generator, needed on systems
114  * where threads but no Posix rand_r function are available.
115  *
116  * Revision 1.3 2000/03/08 16:36:01 meichel
117  * Updated copyright header.
118  *
119  * Revision 1.2 1999/03/22 09:00:50 joergr
120  * Added/Changed comments.
121  *
122  * Revision 1.1 1999/03/03 13:58:04 meichel
123  * Implemented new class for automatically creating filenames.
124  *
125  *
126  */
127 


Generated on Thu Dec 20 2012 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.2