-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOutput.cpp
executable file
·72 lines (60 loc) · 1.29 KB
/
Output.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// Output.cpp: implementation of the COutput class.
//
//////////////////////////////////////////////////////////////////////
#include "Output.h"
#include "stdio.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
COutput::COutput()
{
}
COutput::~COutput()
{
}
void COutput::Output(char *szMessage)
{
#ifdef _OUTPUT_SILENCE_
return;
#endif
printf("%s\n",szMessage);
}
void COutput::OutputFileOpenFailed(char *pszFile)
{
#ifdef _OUTPUT_SILENCE_
return;
#endif
char szBuffer[256];
sprintf(szBuffer,"%s open failed",pszFile);
printf("%s\n",szBuffer);
}
void COutput::OutputMemoryError()
{
#ifdef _OUTPUT_SILENCE_
return;
#endif
printf("Memory Error\n");
}
void COutput::OutputImageDriverCreatedFailed()
{
#ifdef _OUTPUT_SILENCE_
return;
#endif
printf("Image driver created failed\n");
}
void COutput::OutputPixelTypeError()
{
#ifdef _OUTPUT_SILENCE_
return;
#endif
printf("Can not support the pixel datatype\n");
}
void COutput::OutputFileDoesNotExist(char *pszFile)
{
#ifdef _OUTPUT_SILENCE_
return;
#endif
char szBuffer[256];
sprintf(szBuffer,"%s does not exist",pszFile);
printf("%s\n",szBuffer);
}