MatchingAlgorithm.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_MATCHINGALGORITHM_H
#define SH_MATCHINGALGORITHM_H
class Graph ;
class Matching ;
class MatchingAlgorithm {
public:
MatchingAlgorithm (Graph* g, Matching* m, float goal) ;
virtual ~MatchingAlgorithm (void) {} ;
virtual void run (void) = 0 ;
Matching* getMatching (void) const
{ return TheMatching ; } ;
void setGoal (float goal) ;
virtual const char* getName (void) const = 0 ;
protected:
Graph* TheGraph ;
Matching* TheMatching ;
unsigned long CardinalityGoal ;
} ;
#endif // ndef SH_MATCHINGALGORITHM
MatchingAlgorithm::getName
virtual const char * getName(void) const =0
Graph
a graph constructed from a cover file and a message to be embedded
Definition: Graph.h:51
MatchingAlgorithm::TheGraph
Graph * TheGraph
Definition: MatchingAlgorithm.h:42
MatchingAlgorithm::getMatching
Matching * getMatching(void) const
Definition: MatchingAlgorithm.h:34
MatchingAlgorithm::TheMatching
Matching * TheMatching
Definition: MatchingAlgorithm.h:43
MatchingAlgorithm::~MatchingAlgorithm
virtual ~MatchingAlgorithm(void)
Definition: MatchingAlgorithm.h:30
Matching
represent a matching on a graph
Definition: Matching.h:41
MatchingAlgorithm::MatchingAlgorithm
MatchingAlgorithm(Graph *g, Matching *m, float goal)
Definition: MatchingAlgorithm.cc:24
MatchingAlgorithm
Definition: MatchingAlgorithm.h:27
MatchingAlgorithm::CardinalityGoal
unsigned long CardinalityGoal
Definition: MatchingAlgorithm.h:44
MatchingAlgorithm::run
virtual void run(void)=0
MatchingAlgorithm::setGoal
void setGoal(float goal)
Definition: MatchingAlgorithm.cc:30