steghide
0.5.1
Main Page
Classes
Files
File List
File Members
src
error.h
Go to the documentation of this file.
1
/*
2
* steghide 0.5.1 - a steganography program
3
* Copyright (C) 1999-2003 Stefan Hetzl <shetzl@chello.at>
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
*
19
*/
20
21
#ifndef SH_ERROR_H
22
#define SH_ERROR_H
23
24
#include <cstdio>
25
#include <string>
26
27
#include "
SteghideError.h
"
28
29
class
BinaryIO
;
30
31
class
ArgError
:
public
SteghideError
{
32
public
:
33
ArgError
(
const
char
*msgfmt, ...) ;
34
35
void
printMessage
(
void
)
const
;
36
} ;
37
38
class
BinaryInputError
:
public
SteghideError
{
39
public
:
40
enum
TYPE
{
FILE_ERR
,
FILE_EOF
,
STDIN_ERR
,
STDIN_EOF
} ;
41
42
BinaryInputError
(std::string fn, FILE* s) ;
43
44
TYPE
getType
(
void
) ;
45
46
protected
:
47
void
setType
(
TYPE
t) ;
48
49
private
:
50
TYPE
type
;
51
} ;
52
53
class
BinaryOutputError
:
public
SteghideError
{
54
public
:
55
enum
TYPE
{
FILE_ERR
,
STDOUT_ERR
} ;
56
57
BinaryOutputError
(std::string fn) ;
58
59
TYPE
getType
(
void
) ;
60
61
protected
:
62
void
setType
(
TYPE
t) ;
63
64
private
:
65
TYPE
type
;
66
} ;
67
68
class
UnSupFileFormat
:
public
SteghideError
{
69
public
:
70
UnSupFileFormat
(
BinaryIO
*io) ;
71
} ;
72
73
class
NotImplementedError
:
public
SteghideError
{
74
public
:
75
NotImplementedError
(
const
char
* msgfmt, ...) ;
76
77
void
printMessage
(
void
)
const
;
78
} ;
79
86
class
CorruptDataError
:
public
SteghideError
{
87
public
:
88
CorruptDataError
(
const
char
* msgfmt, ...) ;
89
90
void
printMessage
(
void
)
const
;
91
} ;
92
93
#endif
Generated on Mon Jan 14 2013 04:45:06 for steghide by
1.8.3