DCL
3.7.4
Loading...
Searching...
No Matches
FileReader.cpp
Go to the documentation of this file.
1
#include <
dcl/Config.h
>
2
3
#ifdef __WINNT__
4
#include <windows.h>
// dcl/Files.h in dcl/FileInputStream.h
5
#endif
6
7
#include <
dcl/FileReader.h
>
8
9
#if __DCL_HAVE_ALLOC_DEBUG
10
#undef __DCL_ALLOC_LEVEL
11
#define __DCL_ALLOC_LEVEL __DCL_ALLOC_INTERNAL
12
#endif
13
14
#if __DCL_HAVE_THIS_FILE__
15
#undef __THIS_FILE__
16
static
const
char_t
__UNUSED__
__THIS_FILE__
[] =
__T
(
"dcl/FileReader.cpp"
);
17
#endif
18
19
__DCL_BEGIN_NAMESPACE
20
21
IMPLEMENT_CLASSINFO
(
FileReader
,
InputStreamReader
)
22
23
FileReader::FileReader(
24
const
String& _path,
25
CharsetDecoder
*
__destroy__
_pDecoder
// = NULL
26
)
__DCL_THROWS1
(
IOException
*)
27
:
InputStreamReader
(new
FileInputStream
(_path), _pDecoder)
28
{
29
}
30
31
FileReader::FileReader(
32
File
&
__noclose__
_file,
33
CharsetDecoder
*
__destroy__
_pDecoder
// = NULL
34
)
__DCL_THROWS1
(
IOException
*)
35
:
InputStreamReader
(new
FileInputStream
(_file), _pDecoder)
36
{
37
}
38
39
FileReader::FileReader(
40
File::HandleType
__noclose__
_handle,
41
CharsetDecoder
*
__destroy__
_pDecoder
// = NULL
42
)
__DCL_THROWS1
(
IOException
*)
43
:
InputStreamReader
(new
FileInputStream
(_handle), _pDecoder)
44
{
45
}
46
47
__DCL_END_NAMESPACE
__THIS_FILE__
#define __THIS_FILE__
Definition
_trace.h:14
Config.h
__destroy__
#define __destroy__
Definition
Config.h:334
__UNUSED__
#define __UNUSED__
Definition
Config.h:341
char_t
wchar_t char_t
Definition
Config.h:247
__noclose__
#define __noclose__
Definition
Config.h:331
__DCL_THROWS1
#define __DCL_THROWS1(e)
Definition
Config.h:152
FileReader.h
IMPLEMENT_CLASSINFO
#define IMPLEMENT_CLASSINFO(class_name, base_class_name)
Definition
Object.h:245
__T
#define __T(str)
Definition
Object.h:60
CharsetDecoder
Definition
Charset.h:114
File
Definition
File.h:42
FileInputStream
Definition
FileInputStream.h:23
FileReader
Definition
FileReader.h:24
IOException
Definition
Exception.h:93
InputStreamReader
Definition
InputStreamReader.h:26
src
DCLCore
FileReader.cpp
Generated by
1.14.0