File: hash-dump.cc

package info (click to toggle)
libosl 0.8.0-4.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,328 kB
  • sloc: cpp: 114,345; ruby: 1,290; ansic: 915; makefile: 431; perl: 309; sh: 35
file content (16 lines) | stat: -rw-r--r-- 345 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* hash-dump.cc
 */
#include "osl/record/csaRecord.h"
#include "osl/hash/hashKey.h"
#include <iostream>

using namespace osl;
int main(int argc, char **argv)
{
    std::string filename(argv[1]);
    NumEffectState state=CsaFile(filename).getInitialState();
    HashKey key(state);
    key.dumpContents(std::cerr);
    std::cerr << std::endl;
}