DummyFile.h
Go to the documentation of this file.
/*
* steghide 0.5.1 - a steganography program
* Copyright (C) 1999-2003 Stefan Hetzl <shetzl@chello.at>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
#ifndef SH_DUMMYFILE_H
#define SH_DUMMYFILE_H
#include <vector>
#include <list>
class BitString ;
#include "CvrStgFile.h"
class Selector ;
#include "common.h"
class DummyFile : public CvrStgFile {
public:
DummyFile (UWORD16 s, std::vector<std::vector<bool> >* svam) ;
std::list<CvrStgFile::Property> getProperties (void) const ;
unsigned long getNumSamples (void) const ;
void replaceSample (const SamplePos pos, const SampleValue* s) ;
SampleValue* getSampleValue (const SamplePos pos) const ;
std::vector<std::vector<bool> >* getSampleValueAdjacencyMatrix() const
{ return SampleValueAdjacencyMatrix ; } ;
static void createGraph (std::vector<std::list<UWORD16> >& adjlist, BitString** bs, CvrStgFile** f, Selector** s) ;
private:
static const unsigned short SamplesPerVertex = 2 ;
static const EmbValue EmbValueModulus = 2 ;
std::vector<UWORD16> Samples ;
std::vector<std::vector<bool> >* SampleValueAdjacencyMatrix ;
} ;
#endif // ndef SH_DUMMYFILE_H
DummyFile::createGraph
static void createGraph(std::vector< std::list< UWORD16 > > &adjlist, BitString **bs, CvrStgFile **f, Selector **s)
Definition: DummyFile.cc:63
DummyFile::getProperties
std::list< CvrStgFile::Property > getProperties(void) const
Definition: DummyFile.cc:39
DummyFile::getSampleValueAdjacencyMatrix
std::vector< std::vector< bool > > * getSampleValueAdjacencyMatrix() const
Definition: DummyFile.h:53
CvrStgFile
a cover-/stego-file
Definition: CvrStgFile.h:46
DummyFile::replaceSample
void replaceSample(const SamplePos pos, const SampleValue *s)
Definition: DummyFile.cc:56
SamplePos
UWORD32 SamplePos
Definition: common.h:67
DummyFile::EmbValueModulus
static const EmbValue EmbValueModulus
Definition: DummyFile.h:77
DummyFile::Samples
std::vector< UWORD16 > Samples
Definition: DummyFile.h:79
DummyFile
a dummy CvrStgFile implementation to facilitate testing and debugging
Definition: DummyFile.h:36
SampleValue
the value of a sample in a CvrStgFile
Definition: SampleValue.h:61
UWORD16
unsigned short UWORD16
Definition: common.h:46
DummyFile::DummyFile
DummyFile(UWORD16 s, std::vector< std::vector< bool > > *svam)
Definition: DummyFile.cc:27
DummyFile::SamplesPerVertex
static const unsigned short SamplesPerVertex
Definition: DummyFile.h:76
Selector
a random permutation of a random combination
Definition: Selector.h:36
DummyFile::getSampleValue
SampleValue * getSampleValue(const SamplePos pos) const
Definition: DummyFile.cc:51
CvrStgFile.h
BitString
a string of bits
Definition: BitString.h:42
DummyFile::SampleValueAdjacencyMatrix
std::vector< std::vector< bool > > * SampleValueAdjacencyMatrix
Definition: DummyFile.h:80
common.h
EmbValue
BYTE EmbValue
Definition: common.h:66
DummyFile::getNumSamples
unsigned long getNumSamples(void) const
Definition: DummyFile.cc:46