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__
16static const char_t __UNUSED__ __THIS_FILE__[] = __T("dcl/FileReader.cpp");
17#endif
18
19__DCL_BEGIN_NAMESPACE
20
22
23FileReader::FileReader(
24 const String& _path,
25 CharsetDecoder* __destroy__ _pDecoder // = NULL
27 : InputStreamReader(new FileInputStream(_path), _pDecoder)
28{
29}
30
31FileReader::FileReader(
32 File& __noclose__ _file,
33 CharsetDecoder* __destroy__ _pDecoder // = NULL
35 : InputStreamReader(new FileInputStream(_file), _pDecoder)
36{
37}
38
39FileReader::FileReader(
40 File::HandleType __noclose__ _handle,
41 CharsetDecoder* __destroy__ _pDecoder // = NULL
43 : InputStreamReader(new FileInputStream(_handle), _pDecoder)
44{
45}
46
47__DCL_END_NAMESPACE
#define __THIS_FILE__
Definition _trace.h:14
#define __destroy__
Definition Config.h:334
#define __UNUSED__
Definition Config.h:341
wchar_t char_t
Definition Config.h:247
#define __noclose__
Definition Config.h:331
#define __DCL_THROWS1(e)
Definition Config.h:152
#define IMPLEMENT_CLASSINFO(class_name, base_class_name)
Definition Object.h:245
#define __T(str)
Definition Object.h:60
Definition File.h:42