EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHmd5Value.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHmd5Value.h
1 #ifndef __PHMD5VALUE_H__
2 #define __PHMD5VALUE_H__
3 
22 #include "PHmd5Utils.h"
23 
24 #define PHMD5DIGESTLENGTH 16
25 #include "event_io.h"
26 
27 
28 #define WINDOWSEXPORT
29 
30 
31 #ifndef __CINT__
33 #else
34 class PHmd5Value {
35 #endif
36  public:
38  PHmd5Value();
39 
41  PHmd5Value(const PHmd5Value &);
42 
44  PHmd5Value(FILE *fp);
45 
47  PHmd5Value(const char *filename);
48 
49  // and the destructor
50  ~PHmd5Value();
51 
53  int Status() const;
54 
56  int operator== (const PHmd5Value &) const;
57 
59  int getMD5(unsigned char * digest) const;
60 
62  int setMD5(const unsigned char * digest);
63 
65  int setFileMD5(const char * filename);
66 
69  int FileSize() const;
70 
72  friend OSTREAM & operator<< ( OSTREAM &, const PHmd5Value &);
73 
74  protected:
75  unsigned char theDigest[PHMD5DIGESTLENGTH];
76  int isNotValid; // here we indicate that an actual value has been set alright (0);
77  int filesize;
78 };
79 
80 
81 
82 #endif /* __PHMD5VALUE_H__ */