Panda3D
pandatool
src
flt
fltError.cxx
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file fltError.cxx
10
* @author drose
11
* @date 2000-08-24
12
*/
13
14
#include "
fltError.h
"
15
16
std::ostream &
17
operator << (std::ostream &out, FltError error) {
18
switch
(error) {
19
case
FE_ok:
20
return
out <<
"no error"
;
21
22
case
FE_could_not_open:
23
return
out <<
"could not open file"
;
24
25
case
FE_empty_file:
26
return
out <<
"empty file"
;
27
28
case
FE_end_of_file:
29
return
out <<
"unexpected end of file"
;
30
31
case
FE_read_error:
32
return
out <<
"read error on file"
;
33
34
case
FE_invalid_record:
35
return
out <<
"invalid record"
;
36
37
case
FE_extra_data:
38
return
out <<
"extra data at end of file"
;
39
40
case
FE_write_error:
41
return
out <<
"write error on file"
;
42
43
case
FE_bad_data:
44
return
out <<
"bad data"
;
45
46
case
FE_not_implemented:
47
return
out <<
"not implemented"
;
48
49
case
FE_internal:
50
return
out <<
"internal error"
;
51
52
default
:
53
return
out <<
"unknown error "
<< (int)error;
54
}
55
}
fltError.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Generated on Wed Jan 23 2019 21:40:19 for Panda3D by
1.8.15