ChecksumFile.hh 1.21 KB
Newer Older
1 2 3 4 5 6 7 8 9
// (C) Copyright 2016 by Autodesk, Inc.
//
// The information contained herein is confidential, proprietary
// to Autodesk,  Inc.,  and considered a trade secret as defined
// in section 499C of the penal code of the State of California.
// Use of  this information  by  anyone  other  than  authorized
// employees of Autodesk, Inc.  is granted  only under a written
// non-disclosure agreement,  expressly  prescribing  the  scope
// and manner of such use.
10 11
#ifndef BASE_CHECKSUMFILE_HH_INCLUDE
#define BASE_CHECKSUMFILE_HH_INCLUDE
12

13 14 15
#ifdef TEST_ON

#include "ChecksumLogValueT.hh"
16 17

namespace Test {
18 19 20 21 22 23 24 25
namespace Checksum {

/*!
checksum for output files. It has a method record that add a file hash.
*/
class File : public LogValueT<std::string>
{
public:
26 27
  File(std::string _name); /*!<[in] Checksum name root. 
                              Checksum name will be _name + File::tag() */
28

29
  void record(const char* _flnm);
30 31 32 33 34 35 36 37 38

  virtual Severity compare(IStream& _str0, IStream& _str1, OStream& _os,
    const Path* _dir0, const Path* _dir1) const;

  static const char* tag() { return "-file"; }

private:
  std::string mod_chksm_name_;

39
};
40 41 42



43 44
}//namespace Checksum
}//namespace Test
45

46 47
#endif//TEST_ON
#endif//BASE_CHECKSUMFILE_HH_INCLUDE