#include <CvrStgFileTest.h>
Inheritance diagram for CvrStgFileTest:

Public Member Functions | |
| CvrStgFileTest (std::string n, TestSuite *s) | |
Protected Member Functions | |
| bool | genericTestReadWrite (const std::string &rfn, bool new_wfn=true) const |
| bool | genericTestReadEmbedExtract (const std::string &fn, BitString &emb) const |
| bool | genericTestReadExtractCompare (const std::string &fn, BitString &emb) const |
| bool | genericTestReadEmbedWriteReadExtract (const std::string &cvrfn, BitString &emb) const |
| bool | genericTestPosition (const CvrStgFile *f, const SamplePos pos, SampleValue *sv_r) const |
| bool | genericTestSVALCalculation (const CvrStgFile *f, const Graph *g) const |
| bool | genericTestEmbeddedValue (const CvrStgFile *f) const |
Private Member Functions | |
| bool | areEqual (const std::string &fn1, const std::string &fn2) const |
| void | removeFile (const std::string &fn) const |
| void | copyFile (const std::string &src, const std::string &dest) const |
| void | moveFile (const std::string &src, const std::string &dest) const |
| CvrStgFileTest::CvrStgFileTest | ( | std::string | n, | |
| TestSuite * | s | |||
| ) | [inline] |
| bool CvrStgFileTest::genericTestReadWrite | ( | const std::string & | rfn, | |
| bool | new_wfn = true | |||
| ) | const [protected] |
read the file rfn and write it again, return true iff write op created what was read by read op
| rfn | the file name of the file to read | |
| new_wfn | wether to write the data to another file or to rfn (a backup copy is done) |
| bool CvrStgFileTest::genericTestReadEmbedExtract | ( | const std::string & | fn, | |
| BitString & | emb | |||
| ) | const [protected] |
| bool CvrStgFileTest::genericTestReadExtractCompare | ( | const std::string & | fn, | |
| BitString & | emb | |||
| ) | const [protected] |
read fn and extract the first emb.getLength() bits, return true iff these equal emb
| bool CvrStgFileTest::genericTestReadEmbedWriteReadExtract | ( | const std::string & | cvrfn, | |
| BitString & | emb | |||
| ) | const [protected] |
| bool CvrStgFileTest::genericTestPosition | ( | const CvrStgFile * | f, | |
| const SamplePos | pos, | |||
| SampleValue * | sv_r | |||
| ) | const [protected] |
| bool CvrStgFileTest::genericTestSVALCalculation | ( | const CvrStgFile * | f, | |
| const Graph * | g | |||
| ) | const [protected] |
| bool CvrStgFileTest::genericTestEmbeddedValue | ( | const CvrStgFile * | f | ) | const [protected] |
for all sample positions, test if f->getEmbeddedValue(p) and f->getSampleValue(p)->getEmbeddedValue() return the same result
| bool CvrStgFileTest::areEqual | ( | const std::string & | fn1, | |
| const std::string & | fn2 | |||
| ) | const [private] |
| void CvrStgFileTest::removeFile | ( | const std::string & | fn | ) | const [private] |
| void CvrStgFileTest::copyFile | ( | const std::string & | src, | |
| const std::string & | dest | |||
| ) | const [private] |
| void CvrStgFileTest::moveFile | ( | const std::string & | src, | |
| const std::string & | dest | |||
| ) | const [private] |
1.5.1