|
|
1.1 root 1: /*
1.1.1.6 root 2: Copyright (c) 2008 TrueCrypt Developers Association. All rights reserved.
1.1 root 3:
1.1.1.7 ! root 4: Governed by the TrueCrypt License 3.0 the full text of which is contained in
1.1.1.6 root 5: the file License.txt included in TrueCrypt binary and source code distribution
6: packages.
1.1 root 7: */
8:
9: #ifndef TC_HEADER_Platform_TextReader
10: #define TC_HEADER_Platform_TextReader
11:
12: #include "PlatformBase.h"
13: #include "FileStream.h"
14: #include "FilesystemPath.h"
15: #include "SharedPtr.h"
16: #include "Stream.h"
17:
18: namespace TrueCrypt
19: {
20: class TextReader
21: {
22: public:
23: TextReader (const FilePath &path);
24: TextReader (shared_ptr <Stream> stream) : InputStream (stream) { }
25: virtual ~TextReader () { }
26:
27: virtual bool ReadLine (string &outputString);
28:
29: protected:
30: shared_ptr <File> InputFile;
31: shared_ptr <Stream> InputStream;
32: };
33: }
34:
35: #endif // TC_HEADER_Platform_TextReader
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.