DCL 3.7.4
Loading...
Searching...
No Matches
FileWriter.cpp
Go to the documentation of this file.
1#include <dcl/Config.h>
2
3#ifdef __WINNT__
4#include <windows.h> // dcl/File.h in dcl/FileOutputStream.h
5#endif
6
7#include <dcl/FileWriter.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 __THIS_FILE__[] = __T("dcl/FileWriter.cpp");
17#endif
18
19__DCL_BEGIN_NAMESPACE
20
22
23#ifdef __DCL_DEBUG
24FileWriter::FileWriter(const String& _path, bool _truncate, CharsetEncoder* _pEncoder)
26 : OutputStreamWriter(new FileOutputStream(_path, _truncate), _pEncoder)
27{
28}
29
30FileWriter::FileWriter(File& __noclose__ _file, CharsetEncoder* _pEncoder)
32 : OutputStreamWriter(new FileOutputStream(_file), _pEncoder)
33{
34}
35
36FileWriter::FileWriter(File::HandleType __noclose__ _handle, CharsetEncoder* _pEncoder)
38 : OutputStreamWriter(new FileOutputStream(_handle), _pEncoder)
39{
40}
41#endif
42
43__DCL_END_NAMESPACE
#define __THIS_FILE__
Definition _trace.h:14
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