DCL 4.0
Loading...
Searching...
No Matches
FileWriter.cpp
Go to the documentation of this file.
1#include <dcl/Config.h>
2
3#if __DCL_WINDOWS
4#include <windows.h> // for 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_DEBUG
15#undef __THIS_FILE__
16static const char_t __THIS_FILE__[] = __T("dcl/FileWriter.cpp");
17#endif
18
19__DCL_BEGIN_NAMESPACE
20
22
23#if __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
42#endif
43
44__DCL_END_NAMESPACE
#define __THIS_FILE__
Definition _trace.h:14
wchar_t char_t
Definition Config.h:275
#define __noclose__
Definition Config.h:360
#define __DCL_THROWS1(e)
Definition Config.h:167
#define IMPLEMENT_CLASSINFO(class_name, base_class_name)
Definition Object.h:228
#define __T(str)
Definition Object.h:44
Definition File.h:38