GDCM
2.2.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
Source
Common
gdcmSHA1.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: GDCM (Grassroots DICOM). A DICOM library
4
5
Copyright (c) 2006-2011 Mathieu Malaterre
6
All rights reserved.
7
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9
This software is distributed WITHOUT ANY WARRANTY; without even
10
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11
PURPOSE. See the above copyright notice for more information.
12
13
=========================================================================*/
14
#ifndef GDCMSHA1_H
15
#define GDCMSHA1_H
16
17
#include "
gdcmTypes.h
"
18
19
namespace
gdcm
20
{
21
//-----------------------------------------------------------------------------
22
class
SHA1Internals;
32
class
GDCM_EXPORT
SHA1
33
{
34
public
:
35
SHA1
();
36
~
SHA1
();
37
38
static
bool
Compute(
const
char
*buffer,
unsigned
long
buf_len,
char
digest_str[20*2+1]);
39
40
static
bool
ComputeFile(
const
char
*filename,
char
digest_str[20*2+1]);
41
42
private
:
43
SHA1Internals *Internals;
44
private
:
45
SHA1
(
const
SHA1
&);
// Not implemented.
46
void
operator=(
const
SHA1
&);
// Not implemented.
47
};
48
}
// end namespace gdcm
49
//-----------------------------------------------------------------------------
50
#endif //GDCMSHA1_H
Generated on Wed Jun 13 2012 20:40:37 for GDCM by
1.8.1