1 //  ----------------------------------------------------------------------------
2 //  MODULE    : PImageFile
3 //  LANGUAGE  : C++
4 //  CREATOR   : Philippe BOSSUT
5 //  CREAT. DATE : Wednesday, March 13, 1996
6 //  DESCRIPTION :
7 //  COMMENTS  :
8 //  SCCSID      : @(#)pimgfile.cpp  1.1 11:46:41 18 Dec 1996
9 //  ----------------------------------------------------------------------------
10 //  Copyright (c) 1999 Digital Imaging Group, Inc.
11 //  For conditions of distribution and use, see copyright notice
12 //  in Flashpix.h
13 //  ----------------------------------------------------------------------------
14 
15 //  ----------------------------------------------------------------------------
16 
17 //  ----------------------------------------------------------------------------
18   #include "pimgfile.h"
19 //  ----------------------------------------------------------------------------
20 
21 //  Includes
22 //  --------
23 
24 //  Constants
25 //  ---------
26 
27   #define ERROR_FILE_ALERT      674
28   #define COMPRESSOR_ERROR_ALERT    681
29 
30 //  Variables
31 //  ---------
32 
33 //  ----------------------------------------------------------------------------
34 //  Internal Functions
35 //  ----------------------------------------------------------------------------
36 
37 //  ----------------------------------------------------------------------------
38 //  Member Functions
39 //  ----------------------------------------------------------------------------
40 
41 //  ----------------------------------------------------------------------------
42 //  Methods of the PImageFile class
43 //
44 //  Manage all access to an Image file.
45 //  ----------------------------------------------------------------------------
46 
PImageFile()47 PImageFile::PImageFile ()
48 {
49   nbErrors = 0;
50 }
51 
PImageFile(ref_FicNom fName)52 PImageFile::PImageFile (ref_FicNom fName)
53 {
54   fileName = fName;
55   nbErrors = 0;
56 }
57 
SignaleErreur()58 void PImageFile::SignaleErreur()
59 {
60   GtheSystemToolkit->AddErrorToList(ERROR_FILE_ALERT, GetError(), fileName);
61 }
62 
CompressionError()63 void PImageFile::CompressionError()
64 {
65   // We use codecErr to signal a Compressor Error
66   GtheSystemToolkit->AddErrorToList(COMPRESSOR_ERROR_ALERT, -1, fileName);
67 }
68 
DoNotCloseFileWhenDelete()69 void PImageFile::DoNotCloseFileWhenDelete()
70 {
71 }
72 
CloseFileWhenDelete()73 void PImageFile::CloseFileWhenDelete()
74 {
75 }
76 
GetFileSize()77 unsigned long PImageFile::GetFileSize()
78 {
79   return 0;
80 }
81 
82 //  ----------------------------------------------------------------------------
83 //  External Functions
84 //  ----------------------------------------------------------------------------
85 
86 
87 
88 //  - EOF ----------------------------------------------------------------------
89